/* ==========================================================================
   Forside
   ========================================================================== */

/* Hero */
.c-hero { position: relative; min-height: 700px; display: flex; align-items: center; overflow: hidden; background: var(--tile); }
.c-hero__bg, .c-hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.c-hero__bg img { object-fit: cover; object-position: 65% center; }
.c-hero__veil { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(248, 244, 238, .97) 0%, rgba(248, 244, 238, .92) 34%, rgba(248, 244, 238, .55) 52%, rgba(248, 244, 238, 0) 68%); }
.c-hero__in { position: relative; width: 100%; padding-top: 80px; padding-bottom: 80px; }
.c-hero__text { max-width: 680px; display: flex; flex-direction: column; gap: 24px; }
.c-hero h1 { font-size: 60px; line-height: 1.04; letter-spacing: -0.02em; }
.c-hero__sub { margin: 0; font-size: 18px; line-height: 1.55; max-width: 600px; }
.c-hero__search {
	position: relative; display: flex; align-items: center; gap: 12px; height: 64px; margin-top: 8px; padding: 0 8px 0 20px;
	background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 1px 2px rgba(43, 33, 24, .06); transition: border-color var(--t-fast);
}
.c-hero__search:focus-within, .c-hero__search.is-open { border-color: var(--dark); }
.c-hero__search > .c-icon { color: var(--dark); }
.c-hero__search input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; outline: none; font-size: 18px; }
.c-hero__search input::-webkit-search-cancel-button { display: none; }
.c-hero__search .c-btn { height: 48px; padding: 0 28px; font-size: 16px; }
.c-hero__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.c-hero__chips > span { font-size: 13px; margin-right: 4px; }
.c-hero__links { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 4px; }

@media (max-width: 900px) {
	.c-hero__search { display: none; } /* Phones and small tablets search from the pinned header field. */
}
@media (max-width: 1023px) {
	.c-hero h1 { font-size: 48px; }
	.c-hero__veil { background: linear-gradient(90deg, rgba(248, 244, 238, .97) 0%, rgba(248, 244, 238, .9) 55%, rgba(248, 244, 238, .4) 100%); }
}
@media (max-width: 767px) {
	/* Phones: photo on top, text below on the page colour, so neither fights the other. */
	.c-hero { display: block; min-height: 0; background: var(--bg); }
	.c-hero__bg { position: relative; display: block; height: 280px; }
	.c-hero__bg img { object-position: center 35%; }
	.c-hero__veil { inset: auto 0 auto 0; top: 200px; height: 80px; background: linear-gradient(0deg, var(--bg) 0%, rgba(248, 244, 238, 0) 100%); }
	.c-hero__in { padding-top: 8px; padding-bottom: 32px; }
	.c-hero__text { gap: 16px; }
	.c-hero h1 { font-size: 34px; line-height: 1.08; }
	.c-hero__sub { font-size: 16px; }
	.c-hero__chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
	.c-hero__chips::-webkit-scrollbar { display: none; }
	.c-hero__chips .c-chip { flex: none; }
	.c-hero__links { gap: 20px; }
}

/* Proof strip */
.c-stats { background: #fff; border-bottom: 1px solid var(--line); }
.c-stats__in { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.c-stat { padding: 36px 32px; display: flex; flex-direction: column; gap: 4px; border-left: 1px solid var(--line); }
.c-stat:first-child { padding-left: 0; border-left: 0; }
.c-stat__value { display: flex; align-items: center; gap: 12px; font: 700 48px/1 var(--ff-display); letter-spacing: -0.02em; color: var(--dark); }
.c-stat__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); }
.c-stat__label { font-size: 15px; color: var(--muted); }
@media (max-width: 1100px) { .c-stats__in { grid-template-columns: repeat(2, 1fr); } .c-stat:nth-child(3) { padding-left: 0; border-left: 0; } .c-stat:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 767px) {
	.c-stat { padding: 20px 16px; }
	.c-stat:nth-child(odd) { padding-left: 0; }
	.c-stat__value { font-size: 30px; gap: 8px; }
	.c-stat__label { font-size: 13px; }
}

/* Category tiles */
.c-cattiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.c-cattile { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: border-color var(--t-fast); }
.c-cattile:hover { border-color: var(--line-2); }
.c-cattile__media { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--tile); }
.c-cattile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t) ease-out; }
.c-cattile:hover .c-cattile__media img { transform: scale(1.03); }
.c-cattile__arrow {
	position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--ink);
	display: flex; align-items: center; justify-content: center; opacity: 0; transform: translateX(-6px); transition: opacity var(--t-fast), transform var(--t-fast);
}
.c-cattile:hover .c-cattile__arrow, .c-cattile__media:focus-visible .c-cattile__arrow { opacity: 1; transform: none; }
.c-cattile__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; }
.c-cattile__name { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; color: var(--ink); text-decoration: none; }
.c-cattile__name > span:first-child { font: 600 19px/1.25 var(--ff-display); }
.c-cattile__name:hover { color: var(--ink); }
.c-cattile__subs { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.c-cattile__subs a { font-size: 13px; color: var(--muted); text-decoration: none; }
.c-cattile__subs a:hover { color: var(--dark); text-decoration: underline; }
@media (max-width: 767px) {
	.c-cattiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.c-cattile__body { padding: 10px 12px 12px; gap: 6px; }
	.c-cattile__name { flex-direction: column; gap: 2px; }
	.c-cattile__name > span:first-child { font-size: 15px; }
	.c-cattile__subs { display: none; }
}

/* Segment finder band */
.c-band { background: var(--tile); margin-top: 96px; padding-bottom: 96px; }
.c-h2 { font-size: 36px; line-height: 1.15; }
.c-lede { margin: 0; font-size: 17px; }
.c-segtabs { display: flex; flex-wrap: wrap; gap: 8px; }
.c-segpanel { margin-top: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); }
.c-segpanel[hidden] { display: none; }
.c-segpanel__img { min-height: 520px; background: var(--tile); position: relative; }
.c-segpanel__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.c-segpanel__body { padding: 40px 44px; display: flex; flex-direction: column; gap: 20px; }
.c-segpanel__head { display: flex; flex-direction: column; gap: 8px; }
.c-segpanel__head h3 { font-size: 28px; line-height: 1.2; letter-spacing: -0.01em; }
.c-segpanel__head p { margin: 0; font-size: 16px; }
.c-checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.c-checklist a { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto 18px; gap: 12px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.c-checklist a:hover { background: var(--bg); color: var(--ink); }
.c-checklist a > .c-icon { color: var(--dark-2); }
.c-checklist__tick { width: 24px; height: 24px; border-radius: 50%; background: var(--accent-100); display: flex; align-items: center; justify-content: center; color: var(--dark-2); }
.c-checklist__name { font-size: 15px; font-weight: 600; }
.c-segpanel__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: auto; padding-top: 8px; }
@media (max-width: 767px) {
	.c-band { margin-top: 56px; padding-bottom: 56px; }
	.c-h2 { font-size: 26px; }
	.c-lede { font-size: 16px; }
	.c-segtabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
	.c-segtabs::-webkit-scrollbar { display: none; }
	.c-segtabs .c-chip { flex: none; }
	.c-segpanel { margin-top: 16px; }
	.c-segpanel__img { min-height: 200px; }
	.c-segpanel__body { padding: 20px 16px 24px; }
	.c-segpanel__head h3 { font-size: 22px; }
	.c-checklist a { grid-template-columns: 24px minmax(0, 1fr) auto; }
	.c-checklist a > .c-icon { display: none; }
}

/* Tools */
.c-tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.c-tool { display: flex; flex-direction: column; gap: 16px; padding: 16px 16px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); color: var(--ink); text-decoration: none; transition: border-color var(--t-fast); }
.c-tool:hover { border-color: var(--dark); color: var(--ink); }
.c-tool__vis { height: 150px; border-radius: var(--r-md); background: var(--tile); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.c-tool__text { padding: 0 8px; display: flex; flex-direction: column; gap: 6px; }
.c-tool__title { font: 600 18px/1.3 var(--ff-display); }
.c-tool__desc { font-size: 15px; color: var(--muted); }
.c-tool__dims { display: flex; gap: 8px; }
.c-tool__dims span { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.c-tool__dims b { font-size: 11px; font-weight: 600; color: var(--dark-2); }
.c-tool__dims i { font-style: normal; width: 64px; height: 34px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); display: flex; align-items: center; justify-content: center; font: 500 13px var(--ff-mono); }
.c-tool__ok { font-size: 12px; font-weight: 600; color: var(--ok); background: #fff; border-radius: 999px; padding: 4px 10px; }
.c-tool__vis--energy { align-items: stretch; padding: 0 28px; gap: 10px; }
.c-tool__kwh { display: flex; align-items: baseline; gap: 8px; }
.c-tool__kwh b { font: 700 30px/1 var(--ff-display); }
.c-tool__kwh span { font-size: 13px; }
.c-tool__bar { height: 8px; border-radius: 999px; background: #fff; overflow: hidden; }
.c-tool__bar span { display: block; height: 100%; background: var(--dark-2); border-radius: 999px; }
.c-tool__calc { font-size: 12px; color: var(--dark-2); }
.c-tool__stack { position: relative; width: 180px; height: 100px; }
.c-tool__stack > span { position: absolute; width: 76px; height: 90px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.c-tool__stack > span:nth-child(1) { left: 0; top: 10px; }
.c-tool__stack > span:nth-child(2) { left: 52px; top: 5px; }
.c-tool__stack > span:nth-child(3) { left: 104px; top: 0; border-color: var(--line-2); padding: 10px 8px; display: flex; flex-direction: column; gap: 6px; }
.c-tool__stack i { display: block; height: 6px; border-radius: 3px; background: var(--tile); }
.c-tool__stack i.is-hl { height: 12px; background: var(--accent-100); border: 1px solid var(--accent); }
.c-tool__stack i:last-child { width: 60%; }
.c-tool__vis--quote { flex-direction: row; gap: 16px; }
.c-tool__pdf span { width: 78px; height: 100px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 10px; display: flex; flex-direction: column; gap: 6px; }
.c-tool__pdf i { display: block; height: 4px; border-radius: 2px; background: var(--line); }
.c-tool__pdf i.is-head { height: 6px; width: 50%; background: var(--dark); margin-bottom: 6px; }
.c-tool__pdf i.is-tot { width: 60%; margin-left: auto; margin-top: auto; }
.c-tool__pdfname { font-size: 12px; color: var(--dark-2); line-height: 1.6; }
@media (max-width: 767px) {
	.c-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.c-tool { padding: 10px 10px 16px; gap: 10px; }
	.c-tool__vis { height: 100px; transform: none; overflow: hidden; }
	.c-tool__vis > * { transform: scale(.72); }
	.c-tool__text { padding: 0 4px; }
	.c-tool__title { font-size: 15px; }
	.c-tool__desc { font-size: 13px; }
}

/* Brand strip */
.c-brandstrip { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px 48px; padding: 32px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.c-brandstrip__name { font: 700 28px var(--ff-display); letter-spacing: -0.01em; color: var(--muted); text-decoration: none; transition: color var(--t-fast); }
.c-brandstrip__name:hover { color: var(--ink); }
.c-brandstrip__name img { max-height: 36px; width: auto; filter: grayscale(1); opacity: .75; }
@media (max-width: 767px) { .c-brandstrip { gap: 16px 28px; justify-content: flex-start; } .c-brandstrip__name { font-size: 22px; } .c-brandstrip .c-label { width: 100%; } }

/* About teaser */
.c-about { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 64px; align-items: center; }
.c-about__text { display: flex; flex-direction: column; gap: 20px; }
.c-about__text h2 { font-size: 40px; line-height: 1.1; }
.c-about__text p { margin: 0; font-size: 17px; max-width: 560px; }
.c-about__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--line); }
.c-about__facts div { display: flex; flex-direction: column; gap: 4px; }
.c-about__facts b { font: 700 24px var(--ff-display); color: var(--dark-2); }
.c-about__facts span { font-size: 14px; }
.c-about__img { aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; background: var(--tile); }
.c-about__img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 767px) { .c-about { gap: 28px; } .c-about__text h2 { font-size: 28px; } .c-about__facts b { font-size: 20px; } .c-about__facts span { font-size: 13px; } }

/* Guides + FAQ + SEO */
.c-guidegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
@media (max-width: 767px) { .c-guidegrid { grid-template-columns: 1fr; gap: 16px; } }
.c-faqsplit { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: 48px 64px; }
.c-faqsplit__head { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.c-faqsplit__head h2 { font-size: 36px; }
.c-faqsplit__head p { margin: 0; font-size: 17px; max-width: 420px; }
@media (max-width: 767px) { .c-faqsplit__head h2 { font-size: 26px; } .c-acc__btn { font-size: 16px; padding: 16px 0; } }
.c-seo-wrap { border-top: 1px solid var(--line); padding-top: 40px; }
.c-seo-title { font: 600 18px/1.3 var(--ff-display); margin: 0 0 16px; letter-spacing: 0; }
.c-seo--plain { border-top: 0; padding-top: 0; }
