/* Same geometry, icon artwork and reveal timing as the native app's theme switch. */
.home-brand-group{order:3;display:flex;direction:rtl;align-items:center;gap:20px;flex:0 0 auto}
.savings-home .home-brand-group .brand{order:0;margin:0}
.sheva-theme-switch{--switch-scale:.75;position:relative;flex:0 0 auto;width:calc(118px * var(--switch-scale));height:45px;min-height:44px;padding:0;border:0;background:transparent;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.sheva-theme-switch[hidden]{display:none}
.theme-switch-track{position:absolute;top:50%;left:0;width:100%;height:calc(60px * var(--switch-scale));margin-top:calc(-30px * var(--switch-scale));border:var(--site-stroke) solid #000;border-radius:30px;background:#ffe27a;pointer-events:none}
.theme-switch-rest,.theme-switch-thumb{position:absolute;top:calc(5px * var(--switch-scale));left:calc(5px * var(--switch-scale));width:calc(44px * var(--switch-scale));height:calc(44px * var(--switch-scale));border-radius:50%}
.theme-switch-rest{background:#ffffff1f}
.theme-switch-thumb{display:grid;place-items:center;background:#fff;transform:translateX(calc(58px * var(--switch-scale)));transition:transform 520ms cubic-bezier(.2,1.4,.4,1)}
.theme-switch-thumb svg{grid-area:1/1;width:calc(32px * var(--switch-scale));height:calc(32px * var(--switch-scale))}
.theme-switch-moon{display:none}
[data-theme="dark"] .theme-switch-track{background:#242428;border-color:#343238}
[data-theme="dark"] .theme-switch-rest{left:auto;right:calc(5px * var(--switch-scale));background:#2f2f34}
[data-theme="dark"] .theme-switch-thumb{background:#ffca28;transform:translateX(0)}
[data-theme="dark"] .theme-switch-sun{display:none}
[data-theme="dark"] .theme-switch-moon{display:block}
.sheva-theme-switch:active .theme-switch-track{translate:0 1px}

/* Keep the brand yellow prominent in both modes. Dark surfaces follow the app. */
[data-theme="dark"] .savings-home{--home-background:#09090b;--home-soft:#242428;--home-white:#19191c;--home-ink:#f8f7fc;--home-border:#4a4850;--home-muted:#aaa7b2;--home-yellow:#ffca28}
[data-theme="dark"] .savings-home .brand img,
[data-theme="dark"] .savings-home .sheva-menu-heading img{filter:invert(1)}
.savings-home .hero-start,.savings-home .home-app{color:#131214;border-color:#131214}
.savings-home .hero-primary,.savings-home .hero-sticker{background:#fffefb;color:#131214;border-color:#131214}
.savings-home .personal-copy .home-button,.savings-home .demo-action,.savings-home .calendar-mark>span{background:var(--home-yellow);color:#131214;border-color:#131214}
.savings-home .home-app .home-button,.savings-home .app-sticker{background:#fffefb;color:#131214;border-color:#131214}
.savings-home .home-app .app-orbit{border-color:#131214}
.savings-home .home-step-number{color:#131214;border-color:#131214}
.savings-home .category-electric{color:#131214;border-color:#131214}
.savings-home .category-electric .category-arrow{background:#fffefb;color:#131214;border-color:#131214}
.savings-home .category-electric:hover .category-arrow{background:#131214;color:#fff}
.savings-home .sheva-menu .sheva-menu-shortcut,.savings-home .sheva-menu .sheva-menu-download{background:var(--home-yellow);color:#131214;border-color:#131214}
.savings-home .sheva-menu-kicker{color:var(--home-muted)}
.savings-home .sheva-menu-rows{background:var(--home-white)}
.savings-home .sheva-menu a[aria-current="page"]{background:var(--home-soft)}
[data-theme="dark"] .savings-home .home-category:not(.category-electric){background:#242428}
[data-theme="dark"] .savings-home .sheva-menu-rows>span{color:var(--home-muted)}
[data-theme="dark"] .savings-home .sheva-menu-heading,
[data-theme="dark"] .savings-home .sheva-menu details,
[data-theme="dark"] .savings-home .sheva-menu-rows a,
[data-theme="dark"] .savings-home .sheva-menu-rows>span{border-color:var(--home-border)}
[data-theme="dark"] .savings-home :is(a,button,summary):focus-visible{outline-color:#ffca28}
[data-theme="dark"] .savings-home .hero-start :focus-visible,
[data-theme="dark"] .savings-home .home-app :focus-visible{outline-color:#131214}

/* An expanding circle reveals the new page from the click, in either direction. */
.sheva-theme-transition::view-transition-group(root){animation-duration:520ms}
.sheva-theme-transition::view-transition-old(root){animation:none;mix-blend-mode:normal;z-index:1}
.sheva-theme-transition::view-transition-new(root){animation:sheva-theme-reveal 520ms cubic-bezier(.22,1,.36,1) both;mix-blend-mode:normal;z-index:2}
@keyframes sheva-theme-reveal{from{clip-path:circle(0 at var(--theme-origin-x) var(--theme-origin-y))}to{clip-path:circle(var(--theme-reveal-radius) at var(--theme-origin-x) var(--theme-origin-y))}}
@media(max-width:1000px){.home-brand-group{margin-left:auto;gap:16px}}
@media(max-width:760px){.home-brand-group{gap:9px}.sheva-theme-switch{--switch-scale:.6}.savings-home .site-header .brand{width:64px}.savings-home .sheva-nav-trigger{font-size:0;gap:0;padding:0;min-width:42px;justify-content:center}.savings-home .site-header,.savings-home .site-header.sheva-nav-ready{gap:10px}.savings-home .sheva-account-link{font-size:14px;padding-inline:10px}}
@media(max-width:360px){.home-brand-group{gap:6px}.sheva-theme-switch{--switch-scale:.55}.savings-home .site-header .brand{width:54px}.savings-home .site-header,.savings-home .site-header.sheva-nav-ready{gap:6px}.savings-home .sheva-account-link{font-size:12px;padding-inline:7px}.savings-home .sheva-nav-trigger{min-width:36px}}
@media(prefers-reduced-motion:reduce){.theme-switch-thumb{transition:none}.sheva-theme-transition::view-transition-new(root){animation:none}}
