/* Tracked onboarding (welcome.html, js/onboard.js). Phone first; on a big screen it sits in a phone-width column. */
html:has(.ob-body),.ob-body{height:100%;overflow:hidden;overscroll-behavior:none}
.ob{position:fixed;inset:0;z-index:1;overflow:hidden}
.ob-s{position:absolute;inset:0;margin:0 auto;max-width:480px;display:flex;flex-direction:column;
  padding:calc(env(safe-area-inset-top) + 10px) 22px calc(env(safe-area-inset-bottom) + 16px);
  transition:transform .44s cubic-bezier(.2,.8,.2,1),opacity .32s ease;will-change:transform}
.ob-s.from-r{transform:translateX(56px);opacity:0;transition:none}.ob-s.from-l{transform:translateX(-56px);opacity:0;transition:none}
.ob-s.to-l{transform:translateX(-56px);opacity:0;pointer-events:none}.ob-s.to-r{transform:translateX(56px);opacity:0;pointer-events:none}
.ob-leaving .ob{opacity:0;transform:scale(1.03);transition:opacity .35s,transform .35s}

/* top bar */
.ob-top{height:44px;flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:14px}
.ob-back{width:40px;height:40px;margin-left:-8px;border-radius:12px;border:0;background:none;color:var(--fg);display:grid;place-items:center;cursor:pointer}
.ob-back svg{width:24px;height:24px}
.ob-skip{border:0;background:none;color:var(--muted);font-weight:600;font-size:15px;padding:8px 4px;cursor:pointer}
.ob-prog{flex:1;display:flex;gap:5px}
.ob-prog i{flex:1;height:4px;border-radius:4px;background:var(--line2);overflow:hidden;position:relative}
.ob-prog i.on{background:var(--grad)}
.ob-stepn{font-size:13px;font-weight:650;color:var(--dim);min-width:28px;text-align:right;font-variant-numeric:tabular-nums}

/* middle: scrolls up and down only, when a screen runs long */
.ob-mid{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;display:flex;flex-direction:column;gap:18px;padding:8px 0 4px;-webkit-overflow-scrolling:touch}
.ob-s.intro .ob-mid{gap:26px}
.ob-s.intro .ob-mid>:first-child{margin-top:auto}
.ob-tx h1{margin:0;font-size:32px;line-height:1.08;letter-spacing:-.035em;font-weight:720}
.ob-tx p{margin:10px 0 0;font-size:16.5px;line-height:1.45;color:var(--muted);max-width:34ch}
.ob-tx.center{text-align:center}.ob-tx.center p{margin-left:auto;margin-right:auto}
.ob-tx.ob-tt{padding-top:10px}
.ob-big{font-size:44px!important;line-height:1.02!important;letter-spacing:-.045em!important}
.metal{background:linear-gradient(100deg,#8E959F 0%,#E9ECF0 30%,#FFFFFF 46%,#BCC2CA 64%,#7F8690 100%);-webkit-background-clip:text;background-clip:text;color:transparent}

/* footer */
.ob-foot{flex:0 0 auto;display:flex;flex-direction:column;align-items:center;gap:12px;padding-top:14px}
.ob-foot .btn.lg{width:100%;padding:16px 20px;font-size:16.5px;border-radius:16px}
.ob-go.quiet{background:var(--card2);color:var(--fg);box-shadow:inset 0 0 0 1px var(--line2)}
.ob-alt{border:0;background:none;color:var(--muted);font-weight:600;font-size:15px;padding:6px 10px;cursor:pointer}
.ob-dots{display:flex;gap:7px;margin-bottom:4px}
.ob-dots i{width:6px;height:6px;border-radius:6px;background:var(--line2);transition:width .3s,background .3s}
.ob-dots i.on{width:22px;background:var(--acc)}

/* intro pictures */
.ob-vis{flex:1;min-height:200px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;position:relative}
.ob-vis.ob-hero{min-height:240px}
.ob-hmark{position:relative;width:min(64vw,270px);aspect-ratio:1;animation:ob-float 6s ease-in-out infinite}
.ob-hmark img{width:100%;height:100%;display:block}
.ob-hmark .tks-sheen{animation:tks-sheen 1.4s cubic-bezier(.45,.05,.3,1) .5s both}
@keyframes ob-float{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-8px) rotate(-1deg)}}

.ob-stats{display:flex;flex-direction:column;gap:10px}
.ob-stat{display:flex;align-items:center;gap:14px;padding:14px 16px;border-radius:18px;background:var(--card);border:1px solid var(--line)}
.ob-stat b{display:block;font-size:30px;line-height:1.05;font-weight:750;letter-spacing:-.03em}
.ob-stat span:not(.ob-si):not(.ob-ph){display:block;font-size:14.5px;color:var(--muted);margin-top:2px}
.ob-si{width:42px;height:42px;flex:0 0 auto;border-radius:12px;display:grid;place-items:center;background:var(--card2);border:1px solid var(--line);color:var(--acc)}
.ob-si .oi{width:21px;height:21px}
.ob-ph{display:inline-grid;place-items:center;min-width:1.25em;padding:0 .18em;border:1.5px dashed var(--warn);border-radius:8px;color:var(--warn);-webkit-text-fill-color:var(--warn);font-size:.8em;line-height:1.2;vertical-align:.06em}
.ob-phnote{margin:2px 0 0;font-size:12.5px;color:var(--warn);text-align:center}

.ob-pane{width:100%;padding:18px;border-radius:22px;background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.02));border:1px solid var(--line2);box-shadow:var(--shadow)}
.ob-k{font-size:13px;color:var(--muted);font-weight:600}
.ob-nw{font-size:38px;font-weight:750;letter-spacing:-.04em;line-height:1.1}
.ob-up{color:var(--good);font-size:13.5px;font-weight:650}
.ob-spark{display:block;width:100%;height:70px;margin:10px 0 14px}
.ob-tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.ob-tiles div{padding:10px;border-radius:14px;background:var(--card2);border:1px solid var(--line);display:flex;flex-direction:column;gap:2px;min-width:0}
.ob-tiles .oi{width:18px;height:18px;color:var(--acc);margin-bottom:4px}
.ob-tiles span{font-size:12px;color:var(--muted)}.ob-tiles b{font-size:14.5px;white-space:nowrap}

.ob-note{width:100%;display:flex;gap:12px;align-items:flex-start;padding:13px 14px;border-radius:20px;background:rgba(40,43,49,.72);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border:1px solid var(--line2);box-shadow:0 20px 40px -20px rgba(0,0,0,.8);animation:ob-drop .6s cubic-bezier(.2,.8,.2,1) .25s both}
.ob-ni{width:38px;height:38px;flex:0 0 auto;border-radius:10px;background:#0A0B0D;overflow:hidden;display:grid;place-items:center;border:1px solid var(--line)}
.ob-ni img{width:130%;height:130%;object-fit:cover}
.ob-note>div{display:flex;flex-direction:column;gap:1px;min-width:0;font-size:14px;flex:1}
.ob-note>div>span{color:var(--muted)}
.ob-nh{display:flex;justify-content:space-between;font-size:11.5px;color:var(--dim);letter-spacing:.04em}
.ob-nh b{font-weight:650}
@keyframes ob-drop{from{opacity:0;transform:translateY(-16px) scale(.97)}}
.ob-ring{position:relative;width:170px;height:170px}
.ob-ring svg{width:100%;height:100%;transform:rotate(-90deg)}
.ob-ring circle{fill:none;stroke-width:9;stroke-linecap:round}
.ob-ring .tr{stroke:var(--line2)}.ob-ring .fl{stroke:url(#tk-g1);stroke:#D9DDE3;animation:ob-ring 1.2s cubic-bezier(.2,.8,.2,1) .3s both}
.ob-ring>div{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center}
.ob-ring b{font-size:34px;font-weight:750;letter-spacing:-.03em}.ob-ring span{font-size:13px;color:var(--muted)}
@keyframes ob-ring{from{stroke-dasharray:0 100}}

.ob-pane.list{padding:6px 14px}
.ob-row{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}
.ob-row:last-child{border-bottom:0}
.ob-row>div{flex:1;min-width:0;display:flex;flex-direction:column}
.ob-row b{font-size:15px}.ob-row span{font-size:13px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ob-row em{font-style:normal;font-weight:700;font-size:15px}.ob-row em.neg{color:var(--bad)}
.ob-lg{position:relative;width:38px;height:38px;flex:0 0 auto;border-radius:11px;background:#fff;display:grid;place-items:center;overflow:hidden}
.ob-lg img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:1}
.ob-lg b{font-size:16px;color:#111;font-weight:750}
.ob-lg.ic{background:var(--card2);border:1px solid var(--line);color:var(--acc)}.ob-lg.ic .oi{width:19px;height:19px}

.ob-fan{position:relative;width:100%;height:210px}
.ob-fan .awc{position:absolute;left:50%;top:50%;width:min(52vw,210px);padding:14px 16px;border-radius:15px;transform-origin:50% 140%;box-shadow:inset 0 1px 0 rgba(255,255,255,.45),inset 0 -1px 0 rgba(0,0,0,.3),0 20px 40px -14px rgba(0,0,0,.85)}
.ob-fan .awc .awc-mk{width:34px}
.ob-fan .stc-t{font-size:24px}
.ob-fan .f0,.ob-fan .f1{filter:brightness(.82)}
.ob-fan .f0 .stc-t,.ob-fan .f1 .stc-t{opacity:0}
.ob-fan .f0{transform:translate(-50%,-50%) rotate(-16deg) translateX(-14px)}
.ob-fan .f1{transform:translate(-50%,-50%) rotate(16deg) translateX(14px)}
.ob-fan .f2{transform:translate(-50%,-50%) translateY(-6px);z-index:2}
.s-rank.on .ob-fan .awc{animation:ob-deal .7s cubic-bezier(.2,.8,.2,1) both}
.s-rank.on .ob-fan .f1{animation-delay:.08s}.s-rank.on .ob-fan .f2{animation-delay:.16s}
@keyframes ob-deal{from{opacity:0;margin-top:30px}}
.ob-shared{width:100%;display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:16px;background:var(--card);border:1px solid var(--line)}
.ob-shared>div{flex:1;display:flex;flex-direction:column}.ob-shared b{font-size:15px}.ob-shared span{font-size:13px;color:var(--muted)}
.ob-shared em{font-style:normal;font-weight:700}
.ob-avs{display:flex}
.ob-avs i{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;font-style:normal;font-size:12px;font-weight:700;color:var(--ink);background:var(--grad);border:2px solid var(--bg);margin-left:-8px}
.ob-avs i:first-child{margin-left:0}

/* setup */
.ob-field{display:flex;flex-direction:column;gap:8px;font-size:13px;font-weight:600;color:var(--muted)}
.ob-field .in,.ob-inv .in,.ob-search .in{font-size:18px;padding:15px 16px;border-radius:14px}
.ob-goals{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.ob-goal{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:12px;padding:14px;border-radius:16px;border:1px solid var(--line2);background:var(--card);text-align:left;cursor:pointer;min-height:96px;transition:border-color .15s,background .15s,transform .12s}
.ob-goal:active,.ob-bank:active{transform:scale(.97)}
.ob-goal>.oi{width:22px;height:22px;color:var(--acc)}
.ob-goal span{font-size:14.5px;font-weight:620;line-height:1.25}
.ob-goal.on,.ob-bank.on{border-color:rgba(220,224,230,.7);background:rgba(255,255,255,.08)}
.ob-tick{position:absolute;top:10px;right:10px;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:var(--grad);color:var(--ink);opacity:0;transform:scale(.6);transition:opacity .15s,transform .2s}
.ob-tick .oi{width:14px;height:14px;stroke-width:3;color:var(--ink)}
.on>.ob-tick{opacity:1;transform:none}
.ob-search{position:relative;display:block}
.ob-search>.oi{position:absolute;left:14px;top:50%;width:19px;height:19px;transform:translateY(-50%);color:var(--dim);pointer-events:none}
.ob-search .in{padding-left:42px;font-size:16px}
.ob-banks{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.ob-bank{position:relative;display:flex;align-items:center;gap:10px;padding:12px;border-radius:16px;border:1px solid var(--line2);background:var(--card);text-align:left;cursor:pointer;min-width:0}
.ob-bank span{font-size:14px;font-weight:620;line-height:1.2;min-width:0}
.ob-bank .ob-lg{width:34px;height:34px;border-radius:10px}
.ob-bank .ob-tick{top:50%;right:10px;margin-top:-11px}
.ob-secure{display:flex;gap:8px;align-items:flex-start;margin:0;font-size:13px;color:var(--muted);line-height:1.45}
.ob-secure .oi{width:16px;height:16px;flex:0 0 auto;margin-top:2px;color:var(--good)}

.ob-amt{display:flex;align-items:center;justify-content:center;gap:22px;padding:22px 0 6px}
.ob-amt b{font-size:64px;font-weight:760;letter-spacing:-.05em;min-width:3.2ch;text-align:center;line-height:1}
.ob-pm{width:48px;height:48px;border-radius:50%;border:1px solid var(--line2);background:var(--card2);color:var(--fg);display:grid;place-items:center;cursor:pointer}
.ob-pm .oi{width:20px;height:20px}
.ob-range{-webkit-appearance:none;appearance:none;width:100%;height:6px;border-radius:6px;margin:12px 0 0;
  background:linear-gradient(90deg,#DCE0E6 var(--p,20%),var(--line2) var(--p,20%));outline:none}
.ob-range::-webkit-slider-thumb{-webkit-appearance:none;width:28px;height:28px;border-radius:50%;background:#fff;box-shadow:0 2px 10px rgba(0,0,0,.5);cursor:pointer}
.ob-range::-moz-range-thumb{width:28px;height:28px;border:0;border-radius:50%;background:#fff;box-shadow:0 2px 10px rgba(0,0,0,.5)}
.ob-rl{display:flex;justify-content:space-between;font-size:12.5px;color:var(--dim);margin-top:8px}
.ob-sw{display:flex;flex-direction:column;border-radius:18px;background:var(--card);border:1px solid var(--line);overflow:hidden;margin-top:6px}
.ob-swr{display:flex;align-items:center;gap:12px;padding:14px}
.ob-swr+.ob-swr{border-top:1px solid var(--line)}
.ob-swr>.oi{width:21px;height:21px;color:var(--acc);flex:0 0 auto}
.ob-swr>div{flex:1;min-width:0;display:flex;flex-direction:column}
.ob-swr b{font-size:15px}.ob-swr span{font-size:13px;color:var(--muted);line-height:1.35}

.ob-inv{display:flex;gap:8px}
.ob-inv .in{flex:1;min-width:0;font-size:16px}
.ob-inv .btn{padding:0 18px;border-radius:14px;font-size:15px}
.ob-ilist{display:flex;flex-direction:column;gap:8px}
.ob-ilist:empty{display:none}
.ob-irow{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:14px;background:var(--card);border:1px solid var(--line);animation:ob-drop .35s ease both}
.ob-irow>div{flex:1;min-width:0;display:flex;flex-direction:column}
.ob-irow b{font-size:14.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ob-irow span{font-size:12.5px;color:var(--good)}
.ob-av{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;font-weight:700;color:var(--ink);background:var(--grad);flex:0 0 auto}
.ob-rm{width:32px;height:32px;border-radius:10px;border:0;background:none;color:var(--dim);display:grid;place-items:center;cursor:pointer}
.ob-rm .oi{width:18px;height:18px}

/* the reveal */
.ob-s.s-card .ob-mid{justify-content:center;gap:26px}
.ob-reveal{perspective:1200px;display:flex;justify-content:center;padding-top:10px}
.ob-flip{position:relative;width:min(80vw,330px);aspect-ratio:1.586;transform-style:preserve-3d;animation:ob-flip 1.3s cubic-bezier(.3,.9,.25,1) .25s both}
.ob-face{position:absolute;inset:0;backface-visibility:hidden;-webkit-backface-visibility:hidden;border-radius:20px}
.ob-face.back{transform:rotateY(180deg);background:#121418;border:1px solid var(--line2);display:grid;place-items:center;overflow:hidden}
.ob-face.back img{width:55%}
.ob-face.front{padding:20px 22px}
.ob-face.front .awc-mk{width:58px}
.ob-shine{position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:linear-gradient(115deg,transparent 35%,rgba(255,255,255,.65) 50%,transparent 65%) 180% 0/300% 100% no-repeat;mix-blend-mode:overlay;animation:tks-sheen 1.1s ease 1.35s both}
@keyframes ob-flip{0%{transform:rotateY(180deg) translateY(30px) scale(.85);opacity:0}25%{opacity:1}100%{transform:none}}
.ob-lad{display:flex;flex-wrap:wrap;justify-content:center;gap:6px}
.ob-lad .awc-chip{font-size:9.5px;padding:4px 8px}
.ob-lad .awc-chip.off{opacity:.3;filter:saturate(.4)}
.ob-lad .awc-chip.nx{opacity:.8;box-shadow:0 0 0 1.5px rgba(237,239,242,.5)}

/* mock Plaid sheet */
.ob-sheet{position:fixed;inset:0;z-index:50;background:rgba(0,0,0,0);display:flex;align-items:flex-end;justify-content:center;transition:background .3s}
.ob-sheet.in{background:rgba(0,0,0,.55)}
.ob-sbox{width:100%;max-width:480px;background:#16181C;border:1px solid var(--line2);border-bottom:0;border-radius:24px 24px 0 0;padding:8px 22px calc(env(safe-area-inset-bottom) + 22px);transform:translateY(100%);transition:transform .38s cubic-bezier(.2,.8,.2,1)}
.ob-sheet.in .ob-sbox{transform:none}
.ob-sgrab{width:38px;height:5px;border-radius:5px;background:var(--line2);margin:0 auto 10px}
.ob-shd{display:flex;justify-content:space-between;align-items:center;font-weight:750;letter-spacing:.02em}
.ob-sx{width:34px;height:34px;border-radius:50%;border:0;background:var(--card2);color:var(--muted);display:grid;place-items:center;cursor:pointer}.ob-sx .oi{width:16px;height:16px}
.ob-sbody{display:flex;flex-direction:column;align-items:center;gap:12px;padding:22px 0 6px;text-align:center;min-height:260px}
.ob-sbody .ob-lg{width:56px;height:56px;border-radius:16px}
.ob-sbody>b{font-size:19px}
.ob-sbody p{margin:0;font-size:13.5px;color:var(--muted);max-width:30ch}
.ob-sbody ul{list-style:none;margin:0;padding:0;width:100%;display:flex;flex-direction:column;gap:6px}
.ob-sbody li{padding:11px 14px;border-radius:12px;background:var(--card2);text-align:left;font-size:14.5px;font-weight:600}
.ob-sbody .btn.lg{margin-top:6px}
.ob-spin{width:30px;height:30px;border-radius:50%;border:3px solid var(--line2);border-top-color:var(--fg);animation:ob-spin .8s linear infinite}
@keyframes ob-spin{to{transform:rotate(360deg)}}
.ob-ok{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:var(--good);color:#04130C;animation:ob-pop .4s cubic-bezier(.2,1.4,.4,1)}
.ob-ok .oi{width:22px;height:22px;stroke-width:3}
@keyframes ob-pop{from{transform:scale(.4);opacity:0}}

@media (max-height:700px){.ob-tx h1{font-size:28px}.ob-big{font-size:38px!important}.ob-vis{min-height:150px}.ob-fan{height:160px}.ob-ring{width:140px;height:140px}.ob-amt b{font-size:54px}.ob-goal{min-height:84px}}
@media (prefers-reduced-motion:reduce){.ob-s,.ob-s *{animation:none!important;transition:none!important}}
.ob{transition:opacity .6s ease}html.tk-splashing .ob{opacity:0}
