/* Oefenstap: Taste-informed refinement of the existing identity. */
:root{--ref-ink:#193748;--ref-blue:#345ad8;--ref-line:#d8e3e8;--ref-focus:#315ee7}
html{scroll-padding-top:1.5rem;color-scheme:light}html[data-theme=dark]{color-scheme:dark;--ref-ink:#edf4fa;--ref-line:#35495c;--ref-focus:#ffd17a}
.home-page{color:var(--ref-ink);font-family:system-ui,-apple-system,"Segoe UI",Tahoma,sans-serif}
.home-page :is(h1,h2,h3),.portal :is(h1,h2){text-wrap:balance;overflow-wrap:break-word}
.home-page :is(p,a),.portal :is(p,a){overflow-wrap:break-word}
.oefen-skip{position:fixed;inset-inline-start:1rem;top:.7rem;z-index:1000;padding:.8rem 1.1rem;background:#fff;color:#17354b;border:3px solid #315ee7;border-radius:.65rem;transform:translateY(-180%);font-weight:700}
.oefen-skip:focus{transform:translateY(0)}
.home-nav{gap:1.1rem;min-height:80px}.home-nav .brand{flex-shrink:0}.home-nav .brand-logo{height:auto;width:154px}
.home-language select{min-height:46px;min-width:118px;background:#fff;color:#223c51;border-color:#b9cbd4;padding:.6rem .75rem}
.home-nav nav a,.home-login{min-height:44px;display:inline-flex;align-items:center}.home-nav nav a{text-underline-offset:.3em}
.home-nav nav a:hover{text-decoration:underline}.home-nav .home-login{border-radius:.7rem;border-color:#a8bfc9}
.home-three-routes .home-hero{background:#eff5fc;color:#193748;padding-block:3.7rem 1.7rem}
.home-three-routes .home-lead{gap:3rem;min-height:360px;align-items:center}.home-three-routes .home-lead h1{font-size:clamp(2.3rem,4.05vw,3.9rem);line-height:1.13;letter-spacing:-.035em;max-width:18ch}
.home-three-routes .home-lead p{font-size:1.12rem;line-height:1.65;max-width:48ch}
.home-three-routes .home-lead .home-free-status{display:inline-flex;width:auto;align-items:center;background:#d6eedf;color:#1b6546;border:1px solid #b6dbc4;border-radius:999px;font-weight:700;font-size:.9rem;padding:.45rem .85rem;margin:0 0 1.2rem;line-height:1.4}
.home-actions{gap:.75rem 1.4rem}.home-actions a{min-height:48px;display:inline-flex;align-items:center;justify-content:center;color:#225966}
.home-actions .home-cta{background:#345ad8;color:white;border-radius:.75rem;padding:.85rem 1.25rem;box-shadow:0 4px 12px #345ad820}
.home-actions a:hover{transform:translateY(-2px)}.home-actions a:active{transform:translateY(0)}
.home-world{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:center;align-items:center;gap:.4rem .7rem;min-height:340px}
.home-world .home-scene{position:static;inset:auto;display:block;width:100%;height:auto;transform:none;filter:drop-shadow(0 8px 10px #17344914);animation:ref-scene 6s ease-in-out infinite;will-change:auto}
.home-world .scene-0{grid-column:1/-1;justify-self:center;width:68%;animation-delay:0s}.home-world .scene-1{animation-delay:-2s}.home-world .scene-2{animation-delay:-4s}
@keyframes ref-scene{50%{translate:0 -5px}}
.home-benefits{margin-top:2.1rem;gap:.75rem}.home-benefits a{background:#fff;border:1px solid #d7e4ec;color:#264a5e;min-height:50px;border-radius:.8rem;padding:.8rem 1rem;font-size:1rem}
.route-section{padding-block:4rem 2.5rem}.route-card{border-radius:1.15rem;box-shadow:none;border-color:var(--ref-line);transition:transform .18s ease,box-shadow .18s ease}.route-card:hover{transform:translateY(-2px);box-shadow:0 12px 26px #1937480d}
.route-card>img{padding:1.1rem;aspect-ratio:1.65;max-height:230px}.route-copy h3{font-size:1.5rem;line-height:1.3}.route-copy>p:not(.route-range){line-height:1.65}.route-copy{padding:1.4rem}.route-start{border-radius:.7rem;min-height:48px}.route-heading button{border-radius:.7rem}
.home-section,.home-features{padding-block:2.7rem}.home-features{gap:4rem}.home-demo{border:1px solid var(--ref-line);box-shadow:none;background:#edf5f4;border-radius:1.1rem;min-height:215px}.home-demo div{box-shadow:none;border:1px solid #d3e3e4}
.home-footer{margin-top:2rem;padding-block:2rem 3.5rem}.home-footer .home-wrap{gap:1.5rem}
.home-page :is(a,button,select){touch-action:manipulation;transition:transform .18s ease,background-color .18s ease,border-color .18s ease,box-shadow .18s ease}
.home-page :is(a,button,select):focus-visible,.portal :is(a,button,input,select):focus-visible{outline:3px solid var(--ref-focus);outline-offset:4px}
/* Account forms stay compact and familiar; calm surfaces replace inset effects. */
body:has(.portal-layout)::before,body:has(.portal-layout)::after{display:none!important}
.portal .portal-auth{border:1px solid #cfdae5;background:#fff;border-radius:1.15rem;box-shadow:0 12px 38px #18364c0d;padding:1.7rem}
.portal-auth::before{box-shadow:none!important;animation:none!important;background-color:#eff4ff}
.portal .portal-auth :is(input,select){border-radius:.65rem;min-height:48px;background:#fff;border-color:#b6c6d5;box-shadow:none!important;font-size:1rem;line-height:1.4}
.portal-auth input:focus-visible,.portal-auth select:focus-visible{transform:none}
.portal .portal-auth label{font-size:.94rem;line-height:1.45;color:#324b62}.portal-auth form{gap:.55rem}
.portal-auth .primary-button{background:#345ad8;box-shadow:none;border-radius:.7rem;min-height:48px}.portal-auth .primary-button:hover{background:#284bc3;transform:translateY(-1px)}
.portal-auth .actions a,.portal-auth .text-button,.portal-auth .password-visibility{min-height:44px;padding:.55rem .4rem;line-height:1.4}.portal-auth h2{font-size:1.4rem}
.portal-introduction h1{font-size:clamp(2rem,4vw,3rem);line-height:1.15}.portal-introduction section{border-inline-start-color:#b5d7cb}
#portal-status:not(:empty){padding:1rem;border:1px solid #b8cbe0;border-radius:.7rem;background:#eef5ff;line-height:1.65;overflow-wrap:anywhere}
html[data-theme=dark] .home-three-routes .home-hero{background:#13283a;color:#eef6fd}
html[data-theme=dark] .home-header{background:#121d29;border-color:#304657}html[data-theme=dark] .home-nav :is(a,label){color:#e7f1f9}
html[data-theme=dark] .home-language select{background:#1b2a3b;color:#eff6fb;border-color:#526b80}
html[data-theme=dark] .home-benefits a{background:#1b3448;border-color:#3b566b;color:#ecf6fc}
html[data-theme=dark] .home-demo{background:#192f3b}html[data-theme=dark] .home-demo div{border-color:#476171}
html[data-theme=dark] .portal .portal-auth{background:#172536;border-color:#3d5369;box-shadow:0 12px 38px #0002}
html[data-theme=dark] .portal .portal-auth :is(input,select){background:#111f30;color:#edf4ff;border-color:#5b728d}
html[data-theme=dark] .portal .portal-auth label{color:#d4e1ef}html[data-theme=dark] #portal-status:not(:empty){background:#192d45;color:#e9f2ff;border-color:#536b87}
[dir=rtl] .home-lead h1,[dir=rtl] .portal-introduction h1{letter-spacing:0;line-height:1.3}
@media(max-width:900px){.home-nav nav{gap:.7rem}.home-nav{gap:.75rem}.home-three-routes .home-lead{gap:1.5rem}.home-three-routes .home-lead h1{font-size:2.5rem}.home-language label{font-size:.9rem}}
@media(max-width:650px){
 .home-wrap,.home-nav{width:calc(100% - 2rem)}.home-nav{display:grid;grid-template-columns:minmax(0,1fr) minmax(95px,118px) auto;gap:.5rem;min-height:72px;padding-block:.65rem}.home-nav .brand-logo{width:110px;max-width:100%}.home-nav nav{display:none!important}.home-language{min-width:0}.home-language label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.home-language select{min-width:0;width:100%;font-size:.88rem;padding:.5rem .35rem;min-height:44px}.home-nav .home-login{padding:.5rem .65rem;font-size:.88rem;justify-content:center;min-width:60px}
 .home-three-routes .home-hero{padding-block:2rem 1.2rem}.home-three-routes .home-lead{display:flex;flex-direction:column;align-items:stretch;gap:1.5rem;min-height:0}.home-three-routes .home-lead h1{font-size:clamp(2rem,8.5vw,2.5rem);max-width:19ch;line-height:1.16}.home-three-routes .home-lead p{font-size:1rem;line-height:1.6;margin-block:1rem 1.2rem}.home-three-routes .home-lead .home-free-status{margin:0 0 1rem;font-size:.85rem}
 .home-world{min-height:0;width:100%;max-width:380px;margin-inline:auto;gap:.4rem .6rem}.home-world .scene-0{width:64%}.home-actions{gap:.6rem}.home-actions a{flex:1 1 auto;min-height:48px;font-size:.94rem}.home-actions .home-cta{padding:.8rem 1rem}.home-benefits{grid-template-columns:1fr;gap:.5rem;margin-top:1.2rem}.home-benefits a{font-size:.95rem;min-height:46px;padding:.65rem .9rem}
 .route-section{padding-block:2.5rem 2rem}.route-grid{gap:1.1rem}.route-heading{gap:.8rem}.route-heading h2{font-size:1.9rem}.route-card>img{max-height:215px}.route-copy{padding:1.25rem}.route-copy h3{font-size:1.55rem}.home-section,.home-features{padding-block:2rem}.home-features{gap:2.5rem}.home-features section{gap:1rem}.home-footer .home-wrap{gap:1.3rem}
 .portal:has(.portal-layout){padding-inline:.75rem}.portal .portal-auth{padding:1.35rem 1.1rem;border-radius:1rem}.portal-layout{gap:1rem}.portal-introduction h1{font-size:2rem}
}
@media(max-width:350px){.home-nav{grid-template-columns:minmax(0,1fr) 100px auto;gap:.35rem}.home-nav .brand-logo{width:88px}.home-nav .home-login{font-size:.8rem;padding:.45rem;min-width:52px}.home-three-routes .home-lead h1{font-size:1.9rem}}
@media(prefers-reduced-motion:reduce){.home-world .home-scene{animation:none!important}.home-page :is(a,button,select),.portal :is(input,select,button){transition:none!important}.route-card:hover,.home-actions a:hover{transform:none}}
