/* Closing call to action: flip the switch and the house lights up. */
.pf-lights { position: relative; overflow: hidden; padding: clamp(90px, 11vw, 150px) 24px; transition: background-color 1s; }
.pf-lights::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 75% 70%, rgba(255, 190, 61, 0.55), rgba(255, 190, 61, 0.12) 45%, transparent 70%); opacity: 0; transition: opacity 1.2s var(--pf-ease); pointer-events: none; }
.pf-lights.on::before { opacity: 1; }
.pf-lights .pf-lights__in { position: relative; width: min(1280px, 100%); max-width: none; margin-inline: auto; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center; }
.pf-lights h2.pf-d { color: #fff; font-size: clamp(2.4rem, 5.2vw, 4.6rem); max-width: 13ch; }
.pf-lights .pf-lights__swap { display: grid; }
.pf-lights .pf-lights__swap > * { grid-area: 1 / 1; transition: opacity 0.35s, transform 0.6s var(--pf-ease); }
.pf-lights.on .pf-lights__swap .pf-lights__b { transition-delay: 0.3s; }
.pf-lights:not(.on) .pf-lights__swap .pf-lights__a { transition-delay: 0.3s; }
.pf-lights .pf-lights__swap .pf-lights__b { opacity: 0; transform: translateY(20px); }
.pf-lights.on .pf-lights__swap .pf-lights__a { opacity: 0; transform: translateY(-20px); }
.pf-lights.on .pf-lights__swap .pf-lights__b { opacity: 1; transform: none; }
.pf-lights .pf-lights__text { color: var(--pf-muted-d); margin-top: 18px; max-width: 46ch; font-size: 1.1rem; }
.pf-lights .pf-lights__switch { display: flex; align-items: center; gap: 16px; margin-top: 34px; font-weight: 700; }
.pf-lights .pf-lights__switch-btn { position: relative; width: 84px; height: 46px; flex: none; padding: 0; border-radius: 999px; background: rgba(202, 219, 255, 0.18); border: 1.5px solid rgba(202, 219, 255, 0.4); cursor: pointer; transition: background-color 0.5s, border-color 0.5s; }
.pf-lights .pf-lights__switch-btn::after { content: ""; position: absolute; left: 5px; top: 5px; width: 33px; height: 33px; border-radius: 50%; background: #fff; transition: transform 0.6s cubic-bezier(0.3, 1.5, 0.5, 1), background-color 0.4s, box-shadow 0.4s; }
.pf-lights .pf-lights__switch-btn[aria-checked="true"] { background: var(--pf-amber); border-color: var(--pf-amber); }
.pf-lights .pf-lights__switch-btn[aria-checked="true"]::after { transform: translateX(38px); box-shadow: 0 0 18px rgba(255, 255, 255, 0.9); }
.pf-lights .pf-lights__switch-label { font-family: var(--pf-hand); font-size: 1.15rem; color: #fff; }
.pf-lights .pf-lights__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.pf-lights .pf-lights__house { width: 100%; max-width: 480px; justify-self: end; }
.pf-lights .pf-lights__house .lw { fill: #1b2a55; transition: fill 0.8s, filter 0.8s; }
.pf-lights.on .pf-lights__house .lw { fill: var(--pf-amber); filter: drop-shadow(0 0 14px rgba(255, 190, 61, 0.95)); }
.pf-lights.on .pf-lights__house .lw:nth-of-type(2) { transition-delay: 0.12s; }
.pf-lights.on .pf-lights__house .lw:nth-of-type(3) { transition-delay: 0.24s; }
.pf-lights.on .pf-lights__house .lw:nth-of-type(4) { transition-delay: 0.36s; }
.pf-lights .pf-lights__house .cross { fill: #2b3a66; transition: fill 0.8s, filter 0.8s; }
.pf-lights.on .pf-lights__house .cross { fill: var(--pf-go); filter: drop-shadow(0 0 10px rgba(24, 168, 116, 0.9)); }
@media (max-width: 900px) { .pf-lights .pf-lights__in { grid-template-columns: 1fr; } .pf-lights .pf-lights__house { justify-self: center; max-width: 340px; } }
.pf-lights .pf-lights__in > * { margin-inline: 0 !important; }
