/* ══ Finbaa Home page template ══════════════════════════════════════════
   Ported from finbaa-app/src/app/home-new/home-new.scss so the blog landing
   page carries the same calls to action as the app home page. Loaded only on
   pages using page-templates/home.php. */

.fh {
	--fh-ink: #1B2559;
	--fh-ink-strong: #0B1440;
	--fh-muted: #5D6580;
	--fh-hero-navy: #14237E;
	--fh-hero-sub: #40538A;
	--fh-link: #2540D8;
	--fh-green: #12924F;
	--fh-border: #EDF0F6;
	--fh-r: 16px;
	padding-bottom: 8px;
}

/* Full width: drop the theme's 1380px cap on this template only (content,
   header and footer, so their edges line up). */
.page-template-home .fb-wrap,
.page-template-home .fb-topbar-inner { max-width: none; }

/* Section header */
.fh-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 30px 0 14px; }
.fh-title { margin: 0; font-size: 20px; font-weight: 700; color: var(--fh-ink); letter-spacing: -.015em; }
.fh-link { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; font-size: 14.5px; font-weight: 700; color: var(--fh-link); white-space: nowrap; transition: opacity .18s; }
.fh-link:hover { color: var(--fh-link); opacity: .72; }
.fh-link svg { width: 13px; height: 13px; margin-top: 1px; }

/* ══ ① Hero ══ */
.fh-hero { display: grid; grid-template-columns: minmax(0, 1.63fr) minmax(0, 1fr); gap: 18px; padding-top: 22px; }

.fh-greet {
	position: relative; display: flex; align-items: stretch;
	min-height: 224px; padding: 28px 0 26px 32px;
	border-radius: var(--fh-r); overflow: hidden;
	background:
		url('../images/home/hero-growth.svg') right bottom / auto 100% no-repeat,
		linear-gradient(115deg, #CFE3FC 0%, #D9E9FE 46%, #E9F3FE 100%);
}
.fh-greet-copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; width: 58%; }
.fh-greet-title { margin: 0; font-size: 27px; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; color: var(--fh-hero-navy); }
.fh-wave { display: inline-block; margin-left: 8px; animation: fh-wave 2.6s ease-in-out infinite; transform-origin: 70% 70%; }
.fh-greet-sub { margin: 11px 0 0; font-size: 15.5px; line-height: 1.5; color: var(--fh-hero-sub); }
.fh-greet-cta {
	display: inline-flex; align-items: center; gap: 10px;
	margin-top: auto; padding: 15px 26px; border-radius: 30px;
	background: linear-gradient(120deg, #16357F, #1E4AA8);
	color: #fff; font-size: 15px; font-weight: 600; white-space: nowrap;
	box-shadow: 0 6px 16px rgba(20, 45, 120, .3);
	transition: transform .18s, box-shadow .18s;
}
.fh-greet-cta:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(20, 45, 120, .36); }
.fh-greet-cta svg { width: 16px; height: 16px; }

.fh-score {
	display: flex; flex-direction: column; padding: 20px 20px 18px;
	border-radius: var(--fh-r); background: #fff; border: 1px solid var(--fh-border);
	box-shadow: 0 2px 10px rgba(15, 23, 42, .05);
}
.fh-score-head { font-size: 15px; font-weight: 700; color: var(--fh-ink); letter-spacing: -.01em; margin-bottom: 14px; }
.fh-score-body { display: flex; align-items: center; gap: 14px; flex: 1; }
.fh-gauge { position: relative; flex-shrink: 0; width: 124px; height: 124px; }
.fh-gauge svg { width: 100%; height: 100%; display: block; }
.fh-arc { transition: stroke-dashoffset .9s cubic-bezier(.4, 0, .2, 1); }
.fh-gauge-num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.fh-gauge-val { font-size: 36px; font-weight: 700; color: var(--fh-ink-strong); letter-spacing: -.03em; }
.fh-gauge-max { font-size: 13.5px; font-weight: 500; color: var(--fh-muted); margin-top: 5px; }
.fh-score-meta { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; flex: 1; }
.fh-score-delta { font-size: 25px; font-weight: 700; color: var(--fh-green); line-height: 1.1; }
.fh-score-delta small { display: block; margin-top: 4px; font-size: 13.5px; font-weight: 400; color: var(--fh-muted); }
.fh-score-delta.is-down { color: #DC2626; }
.fh-score-delta.is-flat { color: var(--fh-muted); }
.fh-score-empty { font-size: 13px; color: var(--fh-muted); line-height: 1.5; max-width: 16ch; }
.fh-score-link { display: inline-flex; align-items: center; gap: 3px; margin-top: 18px; font-size: 14.5px; font-weight: 600; color: var(--fh-link); }
.fh-score-link:hover { color: var(--fh-link); opacity: .72; }
.fh-score-link svg { width: 13px; height: 13px; }

/* ══ ② Intent tiles ══ */
.fh-intents { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px; }
.fh-intent {
	display: flex; flex-direction: column; align-items: center; gap: 22px;
	padding: 30px 8px 24px; border-radius: 18px; text-align: center;
	transition: transform .18s, box-shadow .18s;
}
.fh-intent:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(15, 23, 42, .09); }
.fh-intent-ico { display: flex; width: 62px; height: 62px; }
.fh-intent-ico svg { width: 100%; height: 100%; }
.fh-intent-lbl { font-size: 14px; font-weight: 700; line-height: 1.35; color: var(--fh-ink); letter-spacing: -.005em; }
.fh-t-blue   { background: #F2F5FE; }
.fh-t-indigo { background: #F4F7FE; }
.fh-t-green  { background: #F5FBF7; }
.fh-t-amber  { background: #FEFAF4; }
.fh-t-sky    { background: #F9FAFE; }
.fh-t-purple { background: #F9F7FD; }
.fh-t-teal   { background: #F1FAF8; }

/* ══ ③ Tools ══ */
.fh-tools {
	display: flex; align-items: stretch; padding: 22px 6px;
	background: #fff; border: 1px solid var(--fh-border); border-radius: 14px;
	box-shadow: 0 2px 10px rgba(15, 23, 42, .04);
}
.fh-tool {
	position: relative; flex: 1 1 0; min-width: 0;
	display: flex; flex-direction: column; align-items: center; gap: 10px;
	padding: 2px 4px; text-align: center;
}
.fh-tool + .fh-tool { border-left: 1px solid var(--fh-border); }
.fh-tool:hover .fh-tool-ico { transform: translateY(-3px); }
.fh-tool.is-soon { opacity: .6; cursor: default; }
.fh-tool.is-soon:hover .fh-tool-ico { transform: none; }
.fh-tool-ico {
	display: flex; align-items: center; justify-content: center;
	width: 62px; height: 62px; border-radius: 17px;
	transition: transform .22s cubic-bezier(.34, 1.56, .64, 1);
}
.fh-tool-ico svg { width: 40px; height: 40px; }
.fh-q-purple, .fh-q-violet { background: #F5EFFE; }
.fh-q-green { background: #EDF8F1; }
.fh-q-amber { background: #FFF6EA; }
.fh-q-blue  { background: #EDF4FD; }
.fh-q-teal  { background: #F1F9F4; }
.fh-tool-lbl { font-size: 14px; font-weight: 700; line-height: 1.35; color: var(--fh-ink); }
.fh-badge {
	position: absolute; top: -4px; left: 50%; transform: translateX(14px);
	font-size: 9px; font-weight: 700; letter-spacing: .04em;
	padding: 2px 6px; border-radius: 8px; background: #FFF3E0; color: #E65100;
}

/* ══ ④ Recent articles ══ */
.fh-pills { margin: 0 0 18px; }
.fh-posts { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* 8 posts are fetched: 4 a row on wide screens, otherwise the first 6 so rows stay full */
.fh-posts > :nth-child(n+7) { display: none; }
@media (min-width: 1440px) {
	.fh-posts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.fh-posts > :nth-child(n+7) { display: flex; }
}

/* ══ Shared dark banners (refer, associates, loan health) ══ */
.fh-refer, .fh-assoc, .fh-health { position: relative; display: block; margin-top: 30px; border-radius: var(--fh-r); overflow: hidden; }
.fh-glow { position: absolute; border-radius: 50%; pointer-events: none; }
.fh-glow-1 { top: -70px; right: 12%; width: 190px; height: 190px; background: rgba(255, 255, 255, .10); }
.fh-glow-2 { bottom: -80px; left: -30px; width: 170px; height: 170px; background: rgba(255, 255, 255, .06); }
.fh-banner-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 34px 32px; }
.fh-banner-copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.fh-pill {
	display: inline-flex; align-items: center; gap: 7px;
	font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
	padding: 5px 12px; border-radius: 20px; background: rgba(255, 255, 255, .2); color: #fff;
}
.fh-banner-title { display: block; margin: 12px 0 0; font-size: 26px; font-weight: 700; line-height: 1.26; letter-spacing: -.02em; color: #fff; }
.fh-banner-sub { display: block; margin: 9px 0 0; font-size: 14px; line-height: 1.6; max-width: 56ch; color: rgba(255, 255, 255, .82); }
.fh-banner-cta {
	display: inline-flex; align-items: center; gap: 8px;
	margin-top: 18px; padding: 14px 24px; border-radius: 30px;
	background: #fff; font-size: 14.5px; font-weight: 700;
	box-shadow: 0 6px 16px rgba(0, 0, 0, .18); transition: transform .18s;
}
.fh-banner-cta svg { width: 16px; height: 16px; }
.fh-banner-cta:hover, .fh-refer:hover .fh-banner-cta { transform: translateY(-2px); }
.fh-c-refer  { color: #2A3BC4; }
.fh-c-assoc, .fh-c-assoc:hover { color: #0B6280; }
.fh-c-health, .fh-c-health:hover { color: #0F766E; }

/* Refer & Earn */
.fh-refer {
	background: linear-gradient(120deg, #16357F 0%, #3B49C7 52%, #6D28D9 100%);
	box-shadow: 0 12px 28px rgba(37, 64, 216, .24); transition: transform .2s, box-shadow .2s;
}
.fh-refer:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(37, 64, 216, .3); }
.fh-steps { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 15px; }
.fh-step { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .92); }
.fh-step b { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(255, 255, 255, .22); font-size: 10.5px; }
.fh-dash { width: 20px; height: 1.5px; border-radius: 1px; background: rgba(255, 255, 255, .28); }
.fh-refer-art { position: relative; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.fh-gift { display: block; width: 128px; height: 128px; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .28)); animation: fh-float 3.4s ease-in-out infinite; }
.fh-gift svg { width: 100%; height: 100%; }
.fh-refer-badge {
	display: flex; flex-direction: column; align-items: center; gap: 1px;
	padding: 8px 16px; border-radius: 14px; white-space: nowrap;
	background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .24);
}
.fh-refer-badge span { font-size: 10px; font-weight: 600; color: rgba(255, 255, 255, .75); letter-spacing: .04em; }
.fh-refer-badge strong { font-size: 20px; font-weight: 700; color: #fff; letter-spacing: -.02em; }

/* Associates */
.fh-assoc {
	display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 32px 30px;
	background: linear-gradient(120deg, #06304F 0%, #0B6280 40%, #0E8C93 72%, #16C0A6 100%);
	box-shadow: 0 12px 28px rgba(13, 122, 130, .28);
}
.fh-assoc::before, .fh-assoc::after { content: ''; position: absolute; border-radius: 50%; pointer-events: none; }
.fh-assoc::before { top: -70px; left: 14%; width: 190px; height: 190px; background: rgba(94, 234, 212, .20); }
.fh-assoc::after { bottom: -80px; right: -30px; width: 170px; height: 170px; background: rgba(255, 255, 255, .10); }
.fh-assoc-title { font-size: 24px; max-width: 24ch; }
.fh-assoc-art { position: relative; z-index: 1; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.fh-map { position: relative; width: 200px; height: 156px; }
.fh-ring { position: absolute; top: 50%; left: 50%; border-radius: 50%; border: 1.5px dashed rgba(255, 255, 255, .34); transform: translate(-50%, -50%); }
.fh-ring-1 { width: 92px; height: 92px; }
.fh-ring-2 { width: 140px; height: 140px; border-color: rgba(255, 255, 255, .18); }
.fh-pin { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -58%); }
.fh-pin svg { width: 44px; height: 44px; display: block; filter: drop-shadow(0 6px 14px rgba(56, 189, 248, .45)); }
.fh-av {
	position: absolute; display: flex; align-items: center; justify-content: center;
	width: 34px; height: 34px; border-radius: 50%; font-size: 10.5px; font-weight: 700; color: #fff;
	border: 2.5px solid rgba(255, 255, 255, .92); box-shadow: 0 4px 12px rgba(4, 28, 40, .35);
}
.fh-av-1 { top: 2px; left: 6px; background: linear-gradient(135deg, #2563EB, #4F46E5); }
.fh-av-2 { top: 12px; right: 2px; background: linear-gradient(135deg, #10B981, #059669); }
.fh-av-3 { bottom: 6px; left: 0; background: linear-gradient(135deg, #8B5CF6, #7C3AED); }
.fh-av-4 { bottom: 0; right: 12px; background: linear-gradient(135deg, #F59E0B, #EA580C); }
.fh-chip {
	padding: 6px 14px; border-radius: 20px; white-space: nowrap;
	background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .24);
	font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .9);
}

/* Loan health */
.fh-health { background: linear-gradient(120deg, #065F46 0%, #0D9488 48%, #0E7490 100%); box-shadow: 0 12px 28px rgba(13, 148, 136, .24); }
.fh-health .fh-glow-1 { top: -80px; right: 16%; width: 200px; height: 200px; }
.fh-pulse { width: 7px; height: 7px; border-radius: 50%; background: #6EE7B7; animation: fh-pulse 1.9s infinite; }
.fh-points { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 15px; }
.fh-point {
	display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 20px;
	background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .2);
	font-size: 12.5px; font-weight: 600; color: #fff;
}
.fh-point i { font-style: normal; font-size: 10px; font-weight: 700; color: #6EE7B7; }
.fh-health-art { flex-shrink: 0; width: 190px; }
.fh-health-art svg { display: block; width: 100%; height: auto; }

/* ══ Grow with FINBAA ══ */
.fh-with { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.fh-pw { display: flex; flex-direction: column; border-radius: var(--fh-r); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.fh-pw:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(15, 23, 42, .12); }
.fh-pw-head { display: block; padding: 22px 20px 10px; }
.fh-pw-name { display: block; font-size: 20px; font-weight: 700; line-height: 1.24; letter-spacing: -.02em; }
.fh-pw-tag { display: block; margin-top: 8px; font-size: 13.5px; line-height: 1.45; color: var(--fh-muted); }
.fh-pw-art { width: 100%; height: auto; aspect-ratio: 560 / 230; max-height: 230px; object-fit: cover; object-position: center bottom; margin-top: -4px; }
.fh-pw-foot {
	display: flex; align-items: center; gap: 8px; margin: 0 10px 12px; padding: 11px 13px;
	border-radius: 10px; background: #fff; box-shadow: 0 1px 3px rgba(15, 23, 42, .07);
	transition: transform .14s, box-shadow .18s;
}
.fh-pw:hover .fh-pw-foot { transform: translateX(2px); box-shadow: 0 4px 10px rgba(15, 23, 42, .12); }
.fh-pw-cta { flex: 1; font-size: 14px; font-weight: 700; color: var(--fh-ink); }
.fh-pw-arr { display: flex; }
.fh-pw-arr svg { width: 16px; height: 16px; }
.fh-pw-partner { background: linear-gradient(180deg, #E7E3FB 0%, #F1EEFD 55%, #FCFBFE 100%); }
.fh-pw-partner .fh-pw-name { color: #3B1F8F; }
.fh-pw-partner .fh-pw-arr { color: #6D28D9; }
.fh-pw-work { background: linear-gradient(180deg, #D9F0EA 0%, #EAF7F4 55%, #FBFEFD 100%); }
.fh-pw-work .fh-pw-name { color: #0B4E5F; }
.fh-pw-work .fh-pw-arr { color: #0E8C93; }

.fh-content { margin-top: 36px; }

/* ══ Discover Properties ══
   Port of finbaa-app discover-properties + property-ui (discover.jpeg). */
.dp {
	--dp-ink: #0B1A4A; --dp-ink-mid: #3A4468; --dp-muted: #5E6784;
	--dp-blue: #1E3FD0; --dp-blue-deep: #1433B8; --dp-price: #E4570F; --dp-line: #E6EAF3;
	padding-top: 34px;
}
.dp-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.dp-head-sm { align-items: center; margin: 26px 0 14px; }
.dp-title { margin: 0; font-size: 30px; font-weight: 800; color: var(--dp-ink); letter-spacing: -.02em; line-height: 1.2; }
.dp-title span { color: var(--dp-blue); }
.dp-sub { margin: 6px 0 0; font-size: 15px; color: var(--dp-muted); line-height: 1.5; }
.dp-title-sm { margin: 0; font-size: 22px; font-weight: 700; color: var(--dp-ink); letter-spacing: -.015em; }
.dp-link { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; margin-top: 4px; font-size: 14px; font-weight: 700; color: var(--dp-blue); }
.dp-link:hover { color: var(--dp-blue); }
.dp-link svg { width: 16px; height: 16px; transition: transform .15s; }
.dp-link:hover svg { transform: translateX(3px); }

/* Location picker */
.dp-loc { position: relative; z-index: 5; margin-top: 18px; }
.dp-loc-btn {
	width: 100%; display: flex; align-items: center; gap: 16px;
	padding: 13px 22px; border: 1px solid var(--dp-line); border-radius: 22px;
	background: linear-gradient(180deg, #FFFFFF 0%, #F7F9FD 100%);
	box-shadow: 0 4px 14px rgba(20, 35, 90, .05); cursor: pointer; text-align: left;
	transition: border-color .15s, box-shadow .15s;
}
.dp-loc-btn:hover { border-color: #CBD4EA; }
.dp-loc.open .dp-loc-btn { border-color: var(--dp-blue); box-shadow: 0 0 0 3px rgba(30, 63, 208, .1); }
.dp-loc-pin { width: 26px; height: 26px; color: var(--dp-ink); }
.dp-loc-copy { flex: 1; display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.dp-loc-lbl { font-size: 12.5px; color: var(--dp-muted); }
.dp-loc-val { font-size: 16.5px; font-weight: 700; color: var(--dp-ink); }
.dp-loc-chev { width: 20px; height: 20px; color: var(--dp-ink-mid); transition: transform .2s; }
.dp-loc.open .dp-loc-chev { transform: rotate(180deg); }
.dp-menu {
	position: absolute; top: calc(100% + 8px); left: 0; right: 0;
	max-height: 290px; overflow-y: auto; margin: 0; padding: 6px; list-style: none;
	background: #fff; border: 1px solid var(--dp-line); border-radius: 16px;
	box-shadow: 0 16px 40px rgba(20, 35, 90, .16);
}
.dp-menu button {
	width: 100%; display: flex; justify-content: space-between; align-items: center;
	padding: 11px 14px; border: 0; border-radius: 10px; background: none; cursor: pointer;
	font-size: 14px; font-weight: 500; color: var(--dp-ink); text-align: left;
}
.dp-menu button:hover { background: #F3F6FD; }
.dp-menu button.active { background: #EAF0FF; color: var(--dp-blue); font-weight: 700; }
.dp-menu-n { min-width: 26px; padding: 2px 8px; border-radius: 20px; background: #EEF1F8; font-size: 11.5px; font-weight: 600; color: var(--dp-muted); text-align: center; }

/* Filter tiles */
.dp-filters {
	display: grid; grid-template-columns: repeat(5, minmax(92px, 1fr)); gap: 18px;
	margin: 6px -16px 0; padding: 12px 16px 4px; overflow-x: auto; scrollbar-width: none;
}
.dp-filters::-webkit-scrollbar { display: none; }
.dp-tile {
	position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
	min-height: 132px; padding: 16px 8px 14px; border: 1.5px solid transparent; border-radius: 18px;
	cursor: pointer; text-align: center; transition: transform .15s, box-shadow .15s, border-color .15s;
}
.dp-tile:hover { transform: translateY(-2px); }
.dp-tile.active { border-color: currentColor; box-shadow: 0 8px 20px -8px currentColor; }
.dp-tile-ico { width: 38px; height: 38px; }
.dp-tile-ico svg { width: 100%; height: 100%; }
.dp-tile-lbl { font-size: 14px; font-weight: 600; color: var(--dp-ink); line-height: 1.3; }
.dp-tile-badge {
	position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
	padding: 2px 10px; border-radius: 20px; background: #1FB257; color: #fff;
	font-size: 11px; font-weight: 700; letter-spacing: .04em;
}
.dp-t-all   { background: #EEF3FF; color: #2A56E0; }
.dp-t-ready { background: #FFF3E8; color: #F26A1B; }
.dp-t-uc    { background: #F4EEFF; color: #8B3FD9; }
.dp-t-new   { background: #EAF8EE; color: #1FA64A; }
.dp-t-ultra { background: #FFEEF2; color: #EE3A68; }

/* Card strip — scrolls sideways; cards per view grow with the screen */
.dp-cards {
	--per-view: 1.2; --gap: 16px;
	display: grid; grid-auto-flow: column;
	grid-auto-columns: calc((100% - (var(--per-view) - 1) * var(--gap)) / var(--per-view));
	gap: var(--gap); margin: 0 -16px; padding: 4px 16px 18px; scroll-padding: 0 16px;
	overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.dp-cards > * { scroll-snap-align: start; }
.dp-skel {
	min-height: 420px; border-radius: 16px;
	background: linear-gradient(100deg, #F1F4FA 30%, #F9FAFD 50%, #F1F4FA 70%) 0 0 / 300% 100%;
	animation: dp-shimmer 1.3s linear infinite;
}
@keyframes dp-shimmer { to { background-position: -150% 0; } }
.dp-empty { padding: 28px 20px; margin-bottom: 18px; border: 1.5px dashed #D7DDEB; border-radius: 16px; text-align: center; font-size: 14px; color: var(--dp-muted); }
.dp-empty button { display: block; margin: 10px auto 0; padding: 0; border: 0; background: none; cursor: pointer; font-size: 14px; font-weight: 700; color: var(--dp-blue); }

.dp-card {
	height: 100%; display: flex; flex-direction: column; min-width: 0;
	background: #fff; border: 1px solid #EEF1F7; border-radius: 16px; overflow: hidden;
	box-shadow: 0 6px 22px rgba(20, 35, 90, .08); color: inherit;
	transition: transform .18s, box-shadow .18s;
}
.dp-card:hover { color: inherit; transform: translateY(-3px); box-shadow: 0 14px 32px rgba(20, 35, 90, .13); }
.dp-photo { position: relative; aspect-ratio: 4 / 2.3; background: #E8EDF7; overflow: hidden; }
.dp-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.dp-card:hover .dp-photo img { transform: scale(1.04); }
.dp-photo-ph { width: 100%; height: 100%; display: grid; place-items: center; color: #B7C3DF; background: linear-gradient(160deg, #DDE6F7 0%, #EEF2FA 100%); }
.dp-photo-ph svg { width: 30%; height: auto; }
.dp-status { position: absolute; top: 12px; left: 12px; padding: 6px 14px; border-radius: 20px; font-size: 12.5px; font-weight: 600; line-height: 1.2; }
.dp-s-ready { background: #FDE7B0; color: #4A3000; }
.dp-s-uc    { background: #ECDDFD; color: #2B1650; }
.dp-s-new   { background: #CFF5DA; color: #0F3D20; }
.dp-body { flex: 1; display: flex; flex-direction: column; padding: 18px; }
.dp-name { margin: 0; font-size: 18px; font-weight: 700; color: var(--dp-ink); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-place { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; font-size: 13.5px; color: var(--dp-muted); }
.dp-place svg { width: 15px; height: 15px; color: var(--dp-ink-mid); }
.dp-place span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-price { margin-top: 14px; font-size: 22px; font-weight: 800; color: var(--dp-price); letter-spacing: -.01em; line-height: 1.3; }
.dp-price-na { font-size: 16px; }
.dp-onwards { font-size: 13px; color: var(--dp-muted); }
.dp-specs { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--dp-line); }
.dp-spec { display: inline-flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--dp-ink-mid); line-height: 1.45; }
.dp-spec svg { width: 18px; height: 18px; margin-top: 1px; }
.dp-body > :nth-last-child(2) { margin-bottom: 20px; }
.dp-cta {
	display: flex; align-items: center; justify-content: center; gap: 8px;
	margin-top: auto; padding: 12px 16px; border: 1.5px solid var(--dp-blue); border-radius: 10px;
	background: #fff; font-size: 14.5px; font-weight: 700; color: var(--dp-blue);
	transition: background .15s, color .15s;
}
.dp-cta svg { width: 17px; height: 17px; }
.dp-card:hover .dp-cta { background: var(--dp-blue); color: #fff; }

/* Assistance banner + trust row */
.dp-help {
	display: flex; align-items: center; gap: 18px; margin-top: 16px;
	padding: 22px 26px; border-radius: 16px;
	background: linear-gradient(100deg, #E3EBFF 0%, #EEF2FF 55%, #F4EEFF 100%);
}
.dp-help-ico { display: flex; width: 54px; height: 54px; flex-shrink: 0; }
.dp-help-ico svg { width: 100%; height: 100%; }
.dp-help-copy { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.dp-help-copy strong { font-size: 18px; font-weight: 700; color: var(--dp-ink); }
.dp-help-copy span { font-size: 13.5px; color: var(--dp-muted); line-height: 1.5; }
.dp-help-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex-shrink: 0;
	padding: 14px 26px; border-radius: 30px; color: #fff; font-size: 15px; font-weight: 700;
	background: linear-gradient(180deg, var(--dp-blue) 0%, var(--dp-blue-deep) 100%);
	box-shadow: 0 8px 18px -6px rgba(30, 63, 208, .55); transition: transform .15s;
}
.dp-help-btn:hover { color: #fff; transform: translateY(-1px); }
.dp-help-btn svg { width: 17px; height: 17px; }
.dp-trust { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 22px; padding: 6px 0; }
.dp-trust-item { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 6px 10px; font-size: 14.5px; color: var(--dp-ink); line-height: 1.4; }
.dp-trust-item svg { width: 38px; height: 38px; }
.dp-trust-item + .dp-trust-item { border-left: 1px solid var(--dp-line); }

@media (min-width: 560px) { .dp-cards { --per-view: 2.1; } }
@media (min-width: 820px) { .dp-cards { --per-view: 3; } }
@media (min-width: 760px) { .dp-filters, .dp-cards { margin-left: -28px; margin-right: -28px; padding-left: 28px; padding-right: 28px; } .dp-cards { scroll-padding: 0 28px; } }
@media (min-width: 1100px) {
	.dp-cards { --per-view: 4; --gap: 20px; }
	.dp-filters, .dp-cards { margin-left: -40px; margin-right: -40px; padding-left: 40px; padding-right: 40px; }
	.dp-cards { scroll-padding: 0 40px; }
}
@media (min-width: 1500px) { .dp-cards { --per-view: 5; } }
@media (max-width: 640px) {
	.dp-head:not(.dp-head-sm) { flex-direction: column; gap: 10px; }
	.dp-link { margin-top: 0; }
	.dp-title { font-size: 22px; }
	.dp-sub { font-size: 13.5px; }
	.dp-title-sm { font-size: 16.5px; }
	.dp-filters { gap: 10px; grid-template-columns: repeat(5, minmax(86px, 1fr)); }
	.dp-tile { min-height: 104px; padding: 14px 6px 12px; gap: 8px; border-radius: 16px; }
	.dp-tile-ico { width: 32px; height: 32px; }
	.dp-tile-lbl { font-size: 12.5px; }
	.dp-help { flex-wrap: wrap; padding: 18px; gap: 14px; }
	.dp-help-ico { width: 44px; height: 44px; }
	.dp-help-copy strong { font-size: 16px; }
	.dp-help-btn { width: 100%; }
	.dp-trust { grid-template-columns: repeat(2, 1fr); row-gap: 14px; }
	.dp-trust-item { justify-content: flex-start; font-size: 13.5px; }
	.dp-trust-item + .dp-trust-item { border-left: 0; }
	.dp-trust-item:nth-child(even) { border-left: 1px solid var(--dp-line); }
}

/* ══ Testimonials ══ */
.fh-head-stack { align-items: flex-end; }
.fh-subtitle { margin: 6px 0 0; font-size: 13.5px; color: var(--fh-muted); line-height: 1.6; max-width: 52ch; }
button.fh-link { padding: 0; border: 0; background: none; cursor: pointer; }
.fh-testi { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tm-card {
	position: relative; display: flex; flex-direction: column; gap: 10px;
	padding: 24px 22px 20px; background: #fff; border: 1px solid var(--fh-border); border-radius: var(--fh-r);
	box-shadow: 0 2px 10px rgba(15, 23, 42, .05); overflow: hidden;
}
.tm-quote { position: absolute; top: -14px; right: 12px; font-size: 70px; font-weight: 700; line-height: 1; color: rgba(37, 64, 216, .07); pointer-events: none; }
.tm-stars { font-size: 15px; color: #F59E0B; letter-spacing: 1px; }
.tm-text { margin: 0; flex: 1; font-size: 14px; line-height: 1.65; color: var(--fh-muted); white-space: pre-line; }
.tm-author { display: flex; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px solid var(--fh-border); }
.tm-avatar {
	display: flex; align-items: center; justify-content: center; flex-shrink: 0;
	width: 38px; height: 38px; border-radius: 50%; font-size: 12px; font-weight: 700; color: #fff;
	background: linear-gradient(135deg, #2563EB, #4F46E5);
}
.tm-green  { background: linear-gradient(135deg, #10B981, #059669); }
.tm-purple { background: linear-gradient(135deg, #8B5CF6, #7C3AED); }
.tm-amber  { background: linear-gradient(135deg, #F59E0B, #EA580C); }
.tm-teal   { background: linear-gradient(135deg, #14B8A6, #0D9488); }
.tm-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; line-height: 1.35; }
.tm-name { font-size: 14px; font-weight: 700; color: var(--fh-ink); }
.tm-role { font-size: 12px; color: #94A3B8; }
@media (max-width: 1099px) { .fh-testi { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
	.fh-head-stack { flex-direction: column; align-items: flex-start; gap: 10px; }
	.fh-testi {
		display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
		margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none;
	}
	.fh-testi::-webkit-scrollbar { display: none; }
	.tm-card { flex: 0 0 272px; scroll-snap-align: start; padding: 18px 16px 15px; }
	.tm-text { font-size: 13px; }
	.fh-testi.expanded { display: grid; grid-template-columns: minmax(0, 1fr); overflow: visible; margin: 0; padding: 0; }
}

/* ══ Motion ══ */
@keyframes fh-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fh-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes fh-wave { 0%, 60%, 100% { transform: rotate(0); } 15% { transform: rotate(16deg); } 30% { transform: rotate(-8deg); } 45% { transform: rotate(12deg); } }
@keyframes fh-pulse {
	0% { box-shadow: 0 0 0 0 rgba(110, 231, 183, .7); }
	70% { box-shadow: 0 0 0 9px rgba(110, 231, 183, 0); }
	100% { box-shadow: 0 0 0 0 rgba(110, 231, 183, 0); }
}
.fh-an { animation: fh-up .45s ease-out both; }
.fh-an:nth-child(2) { animation-delay: .05s; }
.fh-an:nth-child(3) { animation-delay: .1s; }
.fh-an:nth-child(4) { animation-delay: .15s; }
.fh-an:nth-child(n+5) { animation-delay: .2s; }

/* ══ Laptop ══ */
@media (max-width: 1099px) {
	.fh-intents { gap: 10px; }
	.fh-intent { padding: 24px 6px 20px; gap: 18px; border-radius: 16px; }
	.fh-intent-ico { width: 52px; height: 52px; }
	.fh-intent-lbl, .fh-tool-lbl { font-size: 12.5px; }
	.fh-tool-ico { width: 52px; height: 52px; border-radius: 14px; }
	.fh-tool-ico svg { width: 34px; height: 34px; }
	.fh-greet { min-height: 190px; padding: 22px 0 20px 24px; }
	.fh-greet-title { font-size: 23px; }
	.fh-greet-sub { font-size: 14px; }
	.fh-greet-cta { font-size: 14px; padding: 13px 22px; }
	.fh-gauge { width: 104px; height: 104px; }
	.fh-gauge-val { font-size: 30px; }
	.fh-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ══ Tablet ══ */
@media (max-width: 780px) {
	.fh-hero { grid-template-columns: minmax(0, 1fr); }
	.fh-intents { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ══ Phone ══ */
@media (max-width: 620px) {
	.fh-head { padding: 22px 0 10px; }
	.fh-title { font-size: 17px; }
	.fh-link { font-size: 12.5px; }

	.fh-hero { padding-top: 16px; gap: 12px; }
	.fh-greet { min-height: 150px; padding: 18px 0 16px 18px; }
	.fh-greet-copy { width: 60%; }
	.fh-greet-title { font-size: 18px; }
	.fh-greet-sub { font-size: 12.5px; margin-top: 7px; }
	.fh-greet-cta { margin-top: 14px; padding: 11px 16px; font-size: 12.5px; gap: 7px; white-space: normal; }
	.fh-score { padding: 14px; }
	.fh-score-head { font-size: 13px; margin-bottom: 8px; }
	.fh-gauge { width: 76px; height: 76px; }
	.fh-gauge-val { font-size: 22px; }
	.fh-gauge-max { font-size: 10px; margin-top: 2px; }
	.fh-score-delta { font-size: 18px; }
	.fh-score-link { margin-top: 10px; font-size: 13px; }

	.fh-intents { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
	.fh-intent:last-child:nth-child(3n + 1) { grid-column: 2; }
	.fh-intent { padding: 16px 4px 13px; gap: 11px; border-radius: 14px; }
	.fh-intent-ico { width: 38px; height: 38px; }
	.fh-intent-lbl { font-size: 11.5px; }

	.fh-tools { flex-wrap: wrap; gap: 16px 0; padding: 16px 4px; }
	.fh-tool { flex: 0 0 33.333%; }
	.fh-tool + .fh-tool { border-left: 0; }
	.fh-tool-ico { width: 46px; height: 46px; }
	.fh-tool-ico svg { width: 30px; height: 30px; }
	.fh-tool-lbl { font-size: 11.5px; }

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

	.fh-refer, .fh-assoc, .fh-health { margin-top: 22px; }
	.fh-banner-inner { flex-direction: column; align-items: flex-start; gap: 18px; padding: 22px 18px; }
	.fh-banner-title { font-size: 19px; }
	.fh-assoc-title { font-size: 18px; max-width: none; }
	.fh-banner-sub { font-size: 13px; }
	.fh-banner-cta { font-size: 13.5px; padding: 12px 20px; }
	.fh-refer-art { flex-direction: row; align-self: stretch; justify-content: space-between; gap: 14px; }
	.fh-gift { width: 76px; height: 76px; }
	.fh-assoc { flex-direction: column; align-items: flex-start; gap: 18px; padding: 22px 18px; }
	.fh-assoc-art { align-self: center; }
	.fh-map { width: 152px; height: 118px; }
	.fh-health-art { align-self: center; width: 128px; }

	.fh-with { grid-template-columns: minmax(0, 1fr); gap: 12px; }
	.fh-pw-head { padding: 16px 14px 6px; }
	.fh-pw-name { font-size: 16px; }
	.fh-pw-tag { font-size: 12px; }
	.fh-pw-cta { font-size: 13px; }
}
