/* =============================================================================
   Homepage: Warmtefonds financing + btw card, and the Jaarnota 2027
   comparison (teaser + dialog / bottom sheet).
   Mobile first; uses the front-page tokens from style.css. The Warmtefonds
   card deliberately uses a warm amber accent to stand out from the blues.
   ============================================================================= */

/* ── Financing ── */
.fp-fin { padding: var(--gap) 0 0; }
.fp-fin__grid { display: grid; gap: 1rem; }
@media (min-width: 900px) {
	.fp-fin__grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
}

.fp-wf {
	--wf-ink: #7A3E06;
	--wf-accent: #E07A12;
	--wf-soft: #FFF4E5;
	--wf-line: #F6D3A6;
	padding: 1.25rem; border-radius: var(--r-lg);
	background: linear-gradient(160deg, #FFF8EE 0%, #FFEBD1 100%);
	border: 1px solid var(--wf-line);
	box-shadow: 0 8px 28px rgba(160, 82, 10, .10);
	color: var(--clr-text);
}
.fp-wf__eyebrow {
	margin: 0 0 .3rem; font-family: var(--font-head); font-size: .7rem; font-weight: 700;
	letter-spacing: .07em; text-transform: uppercase; color: var(--wf-ink);
}
.fp-wf__title {
	margin: 0 0 .35rem; font-family: var(--font-head); font-size: clamp(1.2rem, 2.6vw, 1.55rem);
	font-weight: 800; line-height: 1.2; letter-spacing: -.02em; color: var(--clr-navy);
}
.fp-wf__text { margin: 0 0 1rem; font-size: .92rem; line-height: 1.5; color: #5B4632; }

.fp-wf__calc {
	display: grid; gap: .5rem; padding: .85rem; border-radius: 14px;
	background: #fff; border: 1px solid var(--wf-line);
}
.fp-wf__line, .fp-wf__result {
	display: flex; align-items: baseline; justify-content: space-between; gap: .75rem;
}
.fp-wf__line span, .fp-wf__result span { font-size: .86rem; color: var(--clr-text); }
.fp-wf__line strong, .fp-wf__result strong {
	font-family: var(--font-head); font-size: 1.35rem; font-weight: 800; white-space: nowrap;
	color: var(--clr-navy); font-variant-numeric: tabular-nums;
}
.fp-wf__line small, .fp-wf__result small { font-family: var(--font-body); font-size: .75rem; font-weight: 600; color: var(--clr-muted); }
.fp-wf__line--plus strong { color: #15803D; }
.fp-wf__result {
	margin-top: .15rem; padding: .6rem .7rem; border-radius: 10px; background: #EEF9F1;
}
.fp-wf__result span { font-weight: 600; color: #14532D; }
.fp-wf__result strong { color: #15803D; font-size: 1.5rem; }
.fp-wf__fine { margin: .6rem 0 0; font-size: .74rem; line-height: 1.45; color: #7A6650; }

.fp-wf__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.1rem; margin-top: 1rem; }
.fp-wf__cta {
	min-height: 48px; justify-content: center; text-align: center;
	background: var(--wf-accent); color: #fff;
	box-shadow: 0 4px 14px rgba(224, 122, 18, .28);
}
.fp-wf__cta:hover { background: #C96A0C; color: #fff; transform: translateY(-1px); }
.fp-wf__cta:focus-visible, .fp-wf__talk:focus-visible, .fp-btw__link:focus-visible { outline: 2px solid var(--clr-blue); outline-offset: 2px; }
.fp-wf__cta svg { width: 15px; height: 15px; flex-shrink: 0; }
.fp-wf__talk { font-size: .85rem; font-weight: 600; color: var(--wf-ink); }

.fp-btw {
	display: flex; flex-direction: column; gap: .4rem;
	padding: 1.25rem; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--clr-border);
}
.fp-btw__title { margin: 0; font-family: var(--font-head); font-size: 1.05rem; font-weight: 800; color: var(--clr-navy); }
.fp-btw__text { margin: 0; font-size: .87rem; line-height: 1.5; color: var(--clr-muted); }
.fp-btw__link {
	display: inline-flex; align-items: center; gap: .3rem; min-height: 44px; margin-top: auto;
	font-family: var(--font-head); font-size: .84rem; font-weight: 700; color: var(--clr-blue); text-decoration: none;
}
.fp-btw__link svg { width: 13px; height: 13px; }

@media (max-width: 560px) {
	.fp-wf, .fp-btw { padding: 1.1rem 1rem; }
	.fp-wf__cta { width: 100%; }
	.fp-wf__talk { width: 100%; text-align: center; padding: .25rem 0; }
}

/* ── Jaarnota 2027 (original component) ── */
.fp-money { padding: var(--gap) 0 0; }
.fp-money__grid { display: grid; gap: 1rem; }

/* ── Teaser ── */
.fp-bill-teaser {
	display: flex; gap: 1rem; align-items: center;
	padding: 1.25rem; border-radius: var(--r-lg);
	background: linear-gradient(135deg, #F2F7FF 0%, #E8F1FD 100%);
	border: 1px solid #D6E5FA;
}
.fp-bill-teaser__visual { position: relative; flex: 0 0 76px; height: 92px; }
.fp-bill-teaser__sheet {
	position: absolute; width: 58px; height: 76px; padding: 9px 8px;
	display: flex; flex-direction: column; gap: 6px;
	background: #fff; border-radius: 7px; box-shadow: 0 4px 14px rgba(10,22,40,.10);
}
.fp-bill-teaser__sheet span { display: block; height: 4px; border-radius: 2px; background: #DDE3EC; }
.fp-bill-teaser__sheet span:nth-child(2) { width: 70%; }
.fp-bill-teaser__sheet b { display: block; height: 7px; width: 60%; margin-top: auto; margin-left: auto; border-radius: 3px; }
.fp-bill-teaser__sheet b.is-bad { background: #E5484D; }
.fp-bill-teaser__sheet b.is-good { background: #16A34A; }
.fp-bill-teaser__sheet--back { left: 0; top: 0; transform: rotate(-6deg); opacity: .9; }
.fp-bill-teaser__sheet--front { right: 0; bottom: 0; transform: rotate(4deg); }
.fp-bill-teaser__body { min-width: 0; }
.fp-bill-teaser__eyebrow {
	margin: 0 0 .3rem; font-family: var(--font-head); font-size: .68rem; font-weight: 700;
	letter-spacing: .07em; text-transform: uppercase; color: var(--clr-blue);
}
.fp-bill-teaser__title {
	margin: 0 0 .35rem; font-family: var(--font-head); font-size: clamp(1.1rem, 2.4vw, 1.4rem);
	font-weight: 800; line-height: 1.25; letter-spacing: -.02em; color: var(--clr-navy);
}
.fp-bill-teaser__text { margin: 0 0 .9rem; font-size: .9rem; line-height: 1.5; color: var(--clr-muted); }
.fp-bill-teaser__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.fp-bill-teaser__cta { min-height: 48px; }
.fp-bill-teaser__cta svg { width: 15px; height: 15px; }
.fp-bill-teaser__result { margin: 0; font-size: .85rem; color: var(--clr-text); }
.fp-bill-teaser__result strong { color: #15803D; }
@media (min-width: 900px) {
	.fp-bill-teaser { padding: 1.75rem 2rem; gap: 1.75rem; }
	.fp-bill-teaser__visual { flex-basis: 132px; height: 150px; }
	.fp-bill-teaser__sheet { width: 96px; height: 124px; padding: 14px 12px; gap: 9px; }
	.fp-bill-teaser__sheet span { height: 6px; }
	.fp-bill-teaser__sheet b { height: 10px; }
	.fp-bill-teaser__sheet--back { left: 6px; top: 4px; }
}
@media (max-width: 560px) {
	.fp-bill-teaser { flex-direction: column; align-items: flex-start; padding: 1.1rem 1rem; }
	.fp-bill-teaser__visual { display: none; }
	.fp-bill-teaser__actions { width: 100%; }
	.fp-bill-teaser__cta { width: 100%; justify-content: center; }
}

/* ── Dialog: bottom sheet on phones, centred panel on larger screens ── */
.sbk-bills {
	margin: auto 0 0; padding: 0; border: 0;
	width: 100%; max-width: 100%; max-height: 92dvh;
	border-radius: 20px 20px 0 0; background: var(--clr-bg); color: var(--clr-text);
	overflow: hidden;
}
.sbk-bills[open] { display: flex; }
.sbk-bills:focus, .sbk-bills:focus-visible { outline: none; }
.sbk-bills::backdrop { background: rgba(8,20,36,.55); }
@media (prefers-reduced-motion: no-preference) {
	.sbk-bills[open] { animation: sbk-bills-up 260ms cubic-bezier(.2,.8,.2,1); }
}
@keyframes sbk-bills-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sbk-bills__panel { display: flex; flex-direction: column; width: 100%; min-height: 0; }
.sbk-bills__top {
	position: relative; display: flex; align-items: center; justify-content: space-between; gap: .75rem;
	padding: 1.1rem 1rem .6rem; background: var(--clr-bg);
}
.sbk-bills__top::before { /* grab handle */
	content: ''; position: absolute; top: 6px; left: 50%; width: 38px; height: 4px; margin-left: -19px;
	border-radius: 2px; background: #C9D2DE;
}
.sbk-bills__title { margin: 0; font-family: var(--font-head); font-size: 1.02rem; font-weight: 800; line-height: 1.3; color: var(--clr-navy); }
.sbk-bills__title:focus { outline: none; }
.sbk-bills__close {
	flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--clr-border);
	background: #fff; color: var(--clr-navy); display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.sbk-bills__close svg { width: 18px; height: 18px; }
.sbk-bills__close:focus-visible, .sbk-bills__tab:focus-visible, .sbk-bills__method summary:focus-visible { outline: 2px solid var(--clr-blue); outline-offset: 2px; }
.sbk-bills__scroll { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 0 0 calc(1rem + env(safe-area-inset-bottom)); }

/* Switch: Zonder batterij → Met batterij */
.sbk-bills__switch { display: flex; align-items: center; gap: .35rem; margin: 0 1rem .75rem; padding: 4px; border-radius: 999px; background: #E4EAF2; }
.sbk-bills__tab {
	flex: 1 1 0; min-height: 40px; border: 0; border-radius: 999px; background: transparent; cursor: pointer;
	font-family: var(--font-head); font-size: .82rem; font-weight: 700; color: var(--clr-muted);
	transition: background-color 160ms, color 160ms, box-shadow 160ms;
}
.sbk-bills__tab[aria-pressed="true"] { background: #fff; color: var(--clr-navy); box-shadow: 0 1px 4px rgba(10,22,40,.12); }
.sbk-bills__tab[data-sbk-bill-go="1"][aria-pressed="true"] { color: #15803D; }
.sbk-bills__arrow { color: var(--clr-muted); font-size: .9rem; }

/* Swipe track: the second bill peeks in */
.sbk-bills__track {
	display: flex; gap: .75rem; overflow-x: auto; overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory; scroll-padding: 0 1rem; padding: 2px 1rem 6px;
	scrollbar-width: none;
}
.sbk-bills__track::-webkit-scrollbar { display: none; }
.sbk-bills__hint { margin: .35rem 1rem 0; font-size: .75rem; color: var(--clr-muted); text-align: right; }

/* ── The bill itself ── */
.sbk-bill {
	flex: 0 0 86%; scroll-snap-align: start;
	padding: 1rem; border-radius: 14px; background: #fff;
	box-shadow: 0 2px 10px rgba(10,22,40,.08); border: 1px solid #E6EBF2;
	font-variant-numeric: tabular-nums;
}
.sbk-bill__head { display: flex; align-items: center; gap: .5rem; margin-bottom: .75rem; }
.sbk-bill__logo { flex: 0 0 28px; }
.sbk-bill__logo svg { display: block; width: 28px; height: 28px; }
.sbk-bill__brand { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.sbk-bill__brand { font-family: var(--font-head); font-size: .8rem; white-space: nowrap; font-weight: 800; line-height: 1.15; color: var(--clr-navy); }
.sbk-bill__brand small { display: block; font-family: var(--font-body); font-size: .66rem; font-weight: 500; color: var(--clr-muted); }
.sbk-bill__badge {
	margin-left: auto; padding: .2rem .55rem; border-radius: 999px; white-space: nowrap;
	font-family: var(--font-head); font-size: .68rem; font-weight: 700;
	background: #FDECEC; color: #B42318;
}
.sbk-bill--with .sbk-bill__badge { background: #E7F6EC; color: #15803D; }
.sbk-bill__name { margin: 0; font-family: var(--font-head); font-size: 1.15rem; font-weight: 800; color: var(--clr-navy); }
.sbk-bill__meta { margin: .1rem 0 .6rem; font-size: .75rem; color: var(--clr-muted); }
.sbk-bill__group {
	margin: .55rem 0 .15rem; font-family: var(--font-head); font-size: .66rem; font-weight: 700;
	letter-spacing: .07em; text-transform: uppercase; color: var(--clr-muted);
}
.sbk-bill__rows { margin: 0; }
.sbk-bill__row {
	display: flex; justify-content: space-between; align-items: baseline; gap: .75rem;
	padding: .3rem 0; border-bottom: 1px dashed #E6EBF2; font-size: .83rem; line-height: 1.35;
}
.sbk-bill__row dt { color: var(--clr-text); min-width: 0; }
.sbk-bill__row dt small { color: var(--clr-muted); font-size: .7rem; }
.sbk-bill__row dd { margin: 0; font-weight: 600; white-space: nowrap; color: var(--clr-navy); }
.sbk-bill__row.is-bad dd, .sbk-bill__total.is-bad strong { color: #C2272D; }
.sbk-bill__row.is-good dd, .sbk-bill__total.is-good strong { color: #15803D; }
.sbk-bill__row.is-bad dd, .sbk-bill__row.is-good dd { padding: .05rem .4rem; margin-right: -.4rem; border-radius: 6px; }
.sbk-bill__row.is-bad dd { background: #FDECEC; }
.sbk-bill__row.is-good dd { background: #E7F6EC; }
.sbk-bill__total {
	display: flex; justify-content: space-between; align-items: baseline; gap: .75rem;
	margin-top: .7rem; padding: .65rem .75rem; border-radius: 10px; background: #F5F7FA;
	font-family: var(--font-head); font-size: .85rem; font-weight: 700; color: var(--clr-navy);
}
.sbk-bill__total strong { font-size: 1.2rem; font-weight: 800; white-space: nowrap; }
.sbk-bill__total.is-bad { background: #FDF1F1; }
.sbk-bill__total.is-good { background: #EEF9F1; }
.sbk-bill__delta { margin: .5rem 0 0; font-size: .8rem; font-weight: 700; color: #15803D; text-align: right; }
.sbk-bill__story { margin: .5rem 0 0; font-size: .78rem; line-height: 1.45; color: #9A2A2A; }

/* ── Result ── */
.sbk-bills__result { margin: 1rem 1rem 0; padding: 1rem; border-radius: 14px; background: #fff; border: 1px solid #E6EBF2; }
.sbk-bills__result-title { margin: 0; font-family: var(--font-head); font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--clr-muted); }
.sbk-bills__result-value { margin: .15rem 0 .6rem; font-family: var(--font-head); font-size: 1.7rem; font-weight: 800; line-height: 1.15; color: #15803D; }
.sbk-bills__result-value span { display: block; font-size: .85rem; font-weight: 600; color: var(--clr-text); }
.sbk-bills__breakdown { list-style: none; margin: 0; padding: 0; }
.sbk-bills__breakdown li { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; padding: .55rem 0; border-top: 1px solid #EEF2F7; }
.sbk-bills__part strong { display: block; font-size: .86rem; color: var(--clr-navy); }
.sbk-bills__part small { display: block; font-size: .75rem; line-height: 1.4; color: var(--clr-muted); }
.sbk-bills__part-value { font-weight: 700; font-size: .9rem; color: #15803D; white-space: nowrap; font-variant-numeric: tabular-nums; }

.sbk-bills__method { margin-top: .6rem; border-top: 1px solid #EEF2F7; padding-top: .5rem; }
.sbk-bills__method summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-size: .84rem; font-weight: 600; color: var(--clr-blue); }
.sbk-bills__method-body { font-size: .78rem; line-height: 1.5; color: var(--clr-muted); }
.sbk-bills__method-body p { margin: 0 0 .6rem; }
.sbk-bills__assumptions { margin: 0 0 .6rem; }
.sbk-bills__assumptions div { display: flex; justify-content: space-between; gap: .75rem; padding: .3rem 0; border-bottom: 1px solid #F1F4F8; }
.sbk-bills__assumptions dt { color: var(--clr-text); }
.sbk-bills__assumptions dd { margin: 0; text-align: right; }
.sbk-bills__formulas { margin: 0 0 .6rem; padding-left: 1.1rem; }
.sbk-bills__formulas li { margin-bottom: .25rem; }
@media (max-width: 559px) {
	.sbk-bills__assumptions div { display: block; }
	.sbk-bills__assumptions dd { text-align: left; color: var(--clr-text); font-weight: 600; }
}
.sbk-bills__footer { margin: 1rem 1rem 0; }
.sbk-bills__footer .fp-btn { width: 100%; justify-content: center; min-height: 48px; }

/* ── Larger screens: centred panel, both bills side by side ── */
@media (min-width: 880px) {
	.sbk-bills { margin: auto; width: min(960px, calc(100% - 3rem)); max-height: 90vh; border-radius: 20px; }
	.sbk-bills__top { padding: 1.25rem 1.5rem .75rem; }
	.sbk-bills__top::before { display: none; }
	.sbk-bills__title { font-size: 1.2rem; }
	.sbk-bills__switch, .sbk-bills__hint { display: none; }
	.sbk-bills__track { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; overflow: visible; padding: 2px 1.5rem 6px; }
	.sbk-bills__result { margin: 1rem 1.5rem 0; display: grid; grid-template-columns: 220px 1fr; gap: 0 1.5rem; }
	.sbk-bills__result-title, .sbk-bills__result-value { grid-column: 1; }
	.sbk-bills__breakdown { grid-column: 2; grid-row: 1 / span 3; }
	.sbk-bills__method { grid-column: 1 / -1; }
	.sbk-bills__footer { margin: 1rem 1.5rem 0; text-align: right; }
	.sbk-bills__footer .fp-btn { width: auto; }
}
