/* Pure welcome layer. Every selector is scoped; existing authentication is untouched. */
.welcome-screen{position:fixed;inset:0;z-index:1000;isolation:isolate;display:flex;flex-direction:column;width:min(100%,440px);height:100%;height:100dvh;max-width:440px;margin:0 auto;padding:calc(26px + env(safe-area-inset-top)) 28px calc(22px + env(safe-area-inset-bottom));overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;box-sizing:border-box;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-weight:400;line-height:1.4;text-align:left;-webkit-font-smoothing:antialiased}
.welcome-screen *,.welcome-screen *:before,.welcome-screen *:after{box-sizing:border-box}
.welcome-screen :where(h1,p){margin:0}
.welcome-screen svg{display:block;width:100%;height:100%;flex-shrink:0}
.welcome-screen .welcome-masthead{position:relative;z-index:1;display:flex;align-items:center;flex-shrink:0;min-height:34px}
.welcome-screen .welcome-eyebrow{font-size:10px;line-height:1.5;font-weight:550;letter-spacing:2px;text-transform:uppercase}
.welcome-screen .welcome-description{font-size:14px;line-height:1.65;font-weight:400}
.welcome-screen .welcome-bottom{position:relative;z-index:1;flex-shrink:0;margin-top:auto;padding-top:27px}
.welcome-screen .welcome-actions{display:grid;gap:10px}
.welcome-screen .welcome-button{display:flex;align-items:center;justify-content:center;gap:12px;position:relative;appearance:none;width:100%;min-width:0;min-height:52px;margin:0;padding:13px 20px;border:1px solid transparent;border-radius:14px;font-family:inherit;font-size:15px;font-weight:600;line-height:1.35;text-decoration:none;cursor:pointer;transition:transform 160ms ease,background-color 160ms ease,border-color 160ms ease;-webkit-tap-highlight-color:transparent}
.welcome-screen .welcome-button svg{position:absolute;right:19px;top:50%;width:21px;height:21px;transform:translateY(-50%)}
.welcome-screen .welcome-button:active{transform:translateY(1px)}
.welcome-screen .welcome-button:focus-visible{outline:2px solid currentColor;outline-offset:4px}
.welcome-screen .welcome-button--secondary{font-weight:500}

/* Reusable sharp lockup for login and home; the parent owns its placement. */
.customer-brand{display:flex;align-items:center;justify-content:flex-start;gap:9px;max-width:100%;min-width:0;color:inherit;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.1;text-align:left}
.customer-brand .customer-brand__mark{display:block;width:42px;height:42px;flex:0 0 42px}
.customer-brand .customer-brand__mark svg{display:block;width:100%;height:100%}
.customer-brand .customer-brand__name{font-size:25px;letter-spacing:-.85px;font-weight:600;white-space:nowrap}
.customer-brand .customer-brand__name>span{font-weight:400}
.customer-brand[data-brand="amal"] .customer-brand__mark{color:#ddc993}
.customer-brand[data-brand="amal"] .customer-brand__name{font-weight:550;letter-spacing:-.55px}
.customer-brand[data-brand="ritm"] .customer-brand__name{font-size:24px;letter-spacing:-.4px;font-weight:550}
.customer-brand[data-brand="ritm"] .customer-brand__mark{color:#b4a3ff}
.customer-brand[data-brand="smile"] .customer-brand__mark{color:#f0c900}
.customer-brand[data-brand="smile"] .customer-brand__name{font-weight:650;letter-spacing:-.9px}
.welcome-screen .customer-brand .customer-brand__mark{width:33px;height:33px;flex-basis:33px}
.welcome-screen .customer-brand .customer-brand__name{font-size:22px}
.welcome-smile .customer-brand .customer-brand__mark{color:#1b2114}
.welcome-rhythm .customer-brand .customer-brand__name{font-size:21px;letter-spacing:.1px}
.welcome-rhythm .customer-brand .customer-brand__name>span{color:#a7b1d1}
.welcome-amal .customer-brand .customer-brand__name{font-size:23px}

/* Amal: a restrained coastal opening, warm typography, no card collage. */
.welcome-amal{color:#f9f3dc;background:#032219}
.welcome-amal .welcome-amal__landscape{position:absolute;z-index:-2;inset:0 0 auto;height:74%;max-height:680px;background:url('assets/amal-coast-welcome-v2.png') center 42%/cover no-repeat;opacity:.95}
.welcome-amal .welcome-amal__shade{position:absolute;z-index:-1;inset:0;background:linear-gradient(180deg,#00160b24 0%,#001d1238 26%,#032219b8 47%,#032219 71%)}
.welcome-amal .welcome-amal__masthead{gap:9px}
.welcome-amal .welcome-amal__story{position:relative;z-index:1;display:flex;flex-direction:column;justify-content:flex-end;flex:1;min-height:370px;padding-top:170px}
.welcome-amal .welcome-amal__rule{width:45px;height:1px;margin-bottom:19px;background:#cbb888}
.welcome-amal .welcome-eyebrow{color:#d8cca7;font-size:9px;letter-spacing:2.6px}
.welcome-amal h1{font-family:Georgia,"Times New Roman",serif;font-size:clamp(45px,13vw,58px);font-weight:400;line-height:1.04;letter-spacing:-2px;margin:13px 0 20px}
.welcome-amal .welcome-description{color:#c9d5c5;font-size:13px;line-height:1.7}
.welcome-amal .welcome-button--primary{color:#183c2c;background:linear-gradient(110deg,#eee4c9,#dfcc9e);border-color:#f5e8bd}
.welcome-amal .welcome-button--secondary{color:#eee7cf;background:#ffffff03;border-color:#b4be9e3b}
.welcome-amal .welcome-amal__signature{font-size:8px;font-weight:450;text-align:center;letter-spacing:1.6px;color:#809c88;margin-top:18px}

/* Rhythm: angular reflective R, precise blue/purple arcs and offset rhythm. */
.welcome-rhythm{color:#f5f5ff;background:#070a18}
.welcome-rhythm .welcome-rhythm__stage{position:relative;display:flex;flex-direction:column;justify-content:flex-end;flex:1;min-height:405px;padding-top:255px}
.welcome-rhythm .welcome-rhythm__monogram{position:absolute;right:2px;top:18px;width:min(77%,270px);height:265px;transform:rotate(-8deg);filter:drop-shadow(0 18px 22px #04040baa)}
.welcome-rhythm .welcome-rhythm__orbit{position:absolute;pointer-events:none;z-index:-1;border:1px solid #4e558a75;width:430px;height:230px;border-radius:50%;top:12px;left:-68px;transform:rotate(-38deg)}
.welcome-rhythm .welcome-rhythm__orbit--two{width:350px;height:210px;left:58px;top:78px;border-color:#62417a9c;transform:rotate(-38deg)}
.welcome-rhythm .welcome-eyebrow{color:#93a4d3;font-size:9px;letter-spacing:2.5px;margin-bottom:15px}
.welcome-rhythm h1{position:relative;font-size:clamp(38px,11.2vw,49px);font-weight:550;line-height:1.06;letter-spacing:-1.9px}
.welcome-rhythm h1>span{color:#b5bcff}
.welcome-rhythm .welcome-bottom{padding-top:23px}
.welcome-rhythm .welcome-description{color:#929ebd;font-size:12px;margin-bottom:22px}
.welcome-rhythm .welcome-button--primary{background:linear-gradient(105deg,#bc50ee 0%,#8474ff 52%,#52cbec 100%);color:#080d22;border-color:#b4aaff55}
.welcome-rhythm .welcome-button--secondary{background:#11172a;border-color:#2b3450;color:#d4daf0}

/* Smile: editorial ivory, playful clean symbol and one dimensional card. */
.welcome-smile{color:#171a14;background:#f6f4ec}
.welcome-smile .welcome-smile__masthead{justify-content:space-between}
.welcome-smile .welcome-smile__story{padding-top:38px;position:relative;z-index:1}
.welcome-smile .welcome-eyebrow{font-size:9px;letter-spacing:1.8px;color:#727363;margin-bottom:17px}
.welcome-smile h1{font-size:clamp(33px,9.7vw,42px);font-weight:550;line-height:1.13;letter-spacing:-1.5px}
.welcome-smile h1>span{position:relative;z-index:0}
.welcome-smile h1>span:after{position:absolute;z-index:-1;content:"";height:9px;bottom:3px;left:-3px;right:-4px;background:#f8d724;transform:rotate(-2deg)}
.welcome-smile .welcome-smile__stage{position:relative;display:grid;place-items:center;flex:1;min-height:260px;margin-top:12px}
.welcome-smile .welcome-smile__sun{position:absolute;width:220px;height:220px;border-radius:50%;background:#ffdc1b;top:22px;left:-43px}
.welcome-smile .welcome-smile__card{position:relative;width:min(100%,295px);aspect-ratio:1.58;border-radius:18px;color:#ffe229;background:radial-gradient(ellipse at 112% -12%,#767842 0%,#252a1c 35%,transparent 67%),linear-gradient(125deg,#282c20,#10140e 65%);border:1px solid #4c513b;box-shadow:0 2px 0 #7b826655,0 19px 30px #30322024;transform:rotate(-11deg) translate(7px,4px);overflow:hidden}
.welcome-smile .welcome-smile__card:after{content:"";position:absolute;inset:0;pointer-events:none;border-radius:inherit;background:linear-gradient(140deg,#ffffff0d,transparent 33%,#ffffff03 69%,transparent)}
.welcome-smile .welcome-smile__card-name{position:absolute;left:20px;top:17px;font-size:13px;font-weight:600;letter-spacing:-.25px;color:#f6f2d7}
.welcome-smile .welcome-smile__card-name>span{font-weight:400}
.welcome-smile .welcome-smile__card-symbol{position:absolute;width:85px;height:85px;left:50%;top:46%;transform:translate(-50%,-50%)}
.welcome-smile .welcome-smile__card-line{position:absolute;bottom:24px;left:20px;width:30px;height:1px;background:#dcc64b}
.welcome-smile .welcome-smile__card-note{position:absolute;right:18px;bottom:18px;font-size:6px;letter-spacing:1.6px;color:#c7cbaa}
.welcome-smile .welcome-smile__card-shadow{position:absolute;width:225px;height:35px;border-radius:50%;background:#3539201c;filter:blur(17px);transform:translateY(91px) rotate(-9deg)}
.welcome-smile .welcome-smile__spark{position:absolute;right:2px;top:28px;width:15px;height:15px;background:#1e2517;clip-path:polygon(50% 0,60% 40%,100% 50%,60% 60%,50% 100%,40% 60%,0 50%,40% 40%)}
.welcome-smile .welcome-bottom{padding-top:16px}
.welcome-smile .welcome-description{color:#77796a;font-size:12px;text-align:center;margin-bottom:20px}
.welcome-smile .welcome-button--primary{color:#171c0d;background:#ffda16;border-color:#f2ce13}
.welcome-smile .welcome-button--secondary{color:#262d1a;background:transparent;border-color:#d5d7ca}

@media(max-width:350px){.welcome-screen{padding-left:22px;padding-right:22px}.welcome-amal h1{font-size:46px}.welcome-rhythm .welcome-rhythm__monogram{width:220px;right:-5px}.welcome-rhythm h1{font-size:39px}.welcome-smile h1{font-size:34px}.welcome-smile .welcome-smile__card{width:254px}.welcome-smile .welcome-smile__spark{right:0}.welcome-screen .customer-brand .customer-brand__name{font-size:21px}}
@media(max-height:740px){.welcome-screen{padding-top:calc(19px + env(safe-area-inset-top));padding-bottom:calc(17px + env(safe-area-inset-bottom))}.welcome-amal .welcome-amal__story{min-height:325px;padding-top:130px}.welcome-amal h1{font-size:48px;margin-bottom:15px}.welcome-amal .welcome-amal__signature{margin-top:12px}.welcome-rhythm .welcome-rhythm__stage{min-height:350px;padding-top:209px}.welcome-rhythm .welcome-rhythm__monogram{height:225px;top:0}.welcome-rhythm .welcome-eyebrow{margin-bottom:10px}.welcome-rhythm h1{font-size:42px}.welcome-rhythm .welcome-description{margin-bottom:15px}.welcome-smile .welcome-smile__story{padding-top:27px}.welcome-smile .welcome-smile__stage{min-height:223px}.welcome-smile .welcome-smile__sun{height:188px;width:188px;top:13px}.welcome-smile .welcome-smile__card{width:min(93%,270px)}.welcome-screen .welcome-bottom{padding-top:18px}}
@media(prefers-reduced-motion:reduce){.welcome-screen *,.welcome-screen *:before,.welcome-screen *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
