
:root{
  --brand:#173E76;
  --brand-2:#0f5ccf;
  --brand-3:#1677ee;
  --brand-soft:#eaf2ff;
  --surface:#ffffff;
  --surface-2:#f6f8fb;
  --text:#11233c;
  --muted:#53657c;
  --line:#e4e9f0;
  --success:#187343;
  --danger:#d9485f;
  --warning:#f2a526;
  --shadow:0 20px 55px rgba(17,35,60,.14);
  --radius:24px;
  --safe-top:max(18px, env(safe-area-inset-top));
  --safe-bottom:max(18px, env(safe-area-inset-bottom));
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;font-family:"Segoe UI",ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:#edf1f5;color:var(--text)}
button,input,textarea{font:inherit}
button{cursor:pointer}
body{min-height:100vh}

.desktop-shell{min-height:100dvh;display:flex;gap:72px;align-items:center;justify-content:center;padding:24px;}
.phone-shell{width:400px;height:min(852px,calc(100dvh - 48px));min-height:560px;flex-shrink:0;border-radius:40px;background:#13243a;padding:8px;box-shadow:0 24px 64px rgba(17,35,60,.16);position:relative;}
.phone-speaker{display:none;}
.app{
  height:100%;
  overflow:hidden;
  border-radius:35px;
  background:var(--surface-2);
  position:relative;
}

.demo-panel{width:300px;}
.demo-panel h1{font-size:40px;line-height:1.1;letter-spacing:-.035em;margin:0 0 20px;color:var(--brand);}
.demo-panel p{font-size:16px;line-height:1.7;color:var(--muted);margin:0 0 32px;}
.demo-badge{display:inline-flex;align-items:center;gap:8px;padding:0;color:var(--muted);font-size:12px;font-weight:600;}
.demo-card{display:flex;justify-content:space-between;align-items:center;padding:18px 0;border-top:1px solid var(--line);gap:20px;}
.demo-card span{font-size:13px;color:var(--muted)}
.demo-card strong{color:var(--brand)}
.ghost-wide{width:100%;min-height:48px;margin-top:24px;border:1px solid #a9b7c7;background:transparent;padding:12px 16px;border-radius:12px;color:var(--brand);font-weight:600;}

.screen{height:100%;display:flex;flex-direction:column;overflow:auto;scrollbar-width:thin;scrollbar-color:#a9b7c7 transparent;}
.scroll{overflow:auto;-webkit-overflow-scrolling:touch;scrollbar-width:thin}

.pad{padding:22px}
.pad-top{padding-top:calc(var(--safe-top) + 24px)}
.brand-bg{background:var(--brand);color:#fff;}
.status-spacer{height:18px}
.topbar{
  display:flex;align-items:center;justify-content:space-between;
  padding:calc(var(--safe-top) + 8px) 20px 12px;
}
.topbar.white{background:#fff}
.topbar-title{font-weight:800;font-size:18px}
.icon-btn{width:44px;height:44px;flex-shrink:0;border:0;border-radius:12px;display:grid;place-items:center;background:rgba(255,255,255,.12);color:inherit;}
.icon-btn.light{background:#f0f4f9;color:var(--brand)}
.logo-lockup{display:flex;align-items:center;gap:10px}
.logo-mark{width:39px;height:39px}
.logo-text{line-height:.98}
.logo-text b{display:block;font-size:19px;letter-spacing:.02em}
.logo-text span{font-size:15px}
.hero{padding:24px 26px 16px;flex:1;display:flex;flex-direction:column;}
.hero h1{font-size:44px;line-height:1.06;font-weight:650;margin:32px 0 16px;letter-spacing:-.035em;}
.hero p{font-size:16px;line-height:1.6;color:#d7e5f6;margin:0;max-width:32ch;}
.hero-visual{flex:1;min-height:192px;display:grid;place-items:center;position:relative;margin:12px 0;}
.globe{width:148px;height:148px;border:1px solid #7294bb;border-radius:50%;background:#244f83;position:relative;}
.globe:before,.globe:after{
  content:"";position:absolute;inset:16px;border:1px solid rgba(255,255,255,.22);border-radius:50%
}
.globe:after{inset:46px -18px;transform:rotate(90deg)}
.globe-logo{position:absolute;inset:0;display:grid;place-items:center}
.globe-logo svg{width:68px;height:68px;}
.float-chip{position:absolute;display:flex;align-items:center;gap:6px;padding:9px 12px;border-radius:10px;background:#fff;color:var(--brand);font-weight:600;font-size:12px;}
.fc1{left:0;top:24px;}.fc2{right:0;top:86px;}.fc3{left:24px;bottom:8px;}
.feature-row{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:8px 0 18px}
.feature{text-align:center;font-size:12px;color:rgba(255,255,255,.92)}
.feature i{display:grid;place-items:center;margin:0 auto 8px;color:#d7e5f6;height:26px;}
.cta-wrap{padding:0 24px calc(var(--safe-bottom) + 8px)}
.btn{width:100%;min-height:52px;border:0;border-radius:12px;padding:15px 18px;font-weight:650;background:var(--brand);color:#fff;transition:background .15s ease,transform .15s ease;}
.btn.white{background:#fff;color:var(--brand);box-shadow:none}
.btn.outline{background:transparent;border:1.5px solid #d8e1ed;color:var(--brand);box-shadow:none}
.btn:active{transform:translateY(1px)}
.link-btn{border:none;background:none;color:var(--brand-2);font-weight:700;padding:10px}

.onboard{background:#fff;padding:calc(var(--safe-top) + 12px) 24px var(--safe-bottom);}
.onboard .skip{align-self:flex-end}
.illustration{min-height:180px;flex:1;display:grid;place-items:center;padding:20px 0;}
.illustration-card{width:200px;height:200px;border-radius:50%;background:var(--brand-soft);display:grid;place-items:center;position:relative;}
.mock-phone{width:86px;height:156px;border:8px solid #173e76;border-radius:23px;background:linear-gradient(#216fc5,#173e76);box-shadow:0 18px 35px rgba(23,62,118,.2);transform:rotate(-7deg);position:relative}
.mock-phone:after{content:"";position:absolute;width:34px;height:5px;border-radius:5px;background:#0f2f5e;top:7px;left:50%;transform:translateX(-50%)}
.bubble{position:absolute;right:18px;top:28px;width:56px;height:56px;border-radius:50%;background:#1976ed;color:#fff;display:grid;place-items:center;font-weight:900;font-size:20px}
.shield{width:112px;height:132px;background:linear-gradient(#2e88ff,#0f5ccf);clip-path:polygon(50% 0,92% 18%,84% 72%,50% 100%,16% 72%,8% 18%);display:grid;place-items:center;color:#fff}
.world{width:140px;height:140px;border-radius:50%;background:linear-gradient(145deg,#2a85f4,#0d58a4);display:grid;place-items:center;color:#fff}
.onboard h2{text-align:left;font-size:30px;line-height:1.15;color:var(--text);margin:24px 0 12px;letter-spacing:-.025em;}
.onboard p{text-align:left;line-height:1.6;color:var(--muted);margin:0;max-width:34ch;}
.dots{display:flex;gap:7px;justify-content:center;margin:22px 0}
.dot{width:7px;height:7px;border-radius:999px;background:#d5deea}
.dot.active{width:24px;background:var(--brand-3)}

.form-screen{background:#fff}
.form-content{padding:26px 24px;overflow:auto;flex:1}
.form-title{font-size:30px;line-height:1.15;font-weight:650;color:var(--text);margin:12px 0;letter-spacing:-.025em;}
.form-sub{color:var(--muted);line-height:1.5;margin:0 0 24px}
.field{border:1px solid #a9b7c7;border-radius:12px;padding:13px 14px;margin-bottom:16px;background:#fff;}
.field:focus-within{border-color:#70a9f5;box-shadow:0 0 0 4px rgba(23,119,238,.08)}
.field label{display:block;font-size:13px;font-weight:500;color:var(--muted);margin-bottom:7px;}
.field input,.field textarea{
  border:0;outline:0;width:100%;font-size:16px;color:var(--text);background:transparent
}
.phone-field{display:flex;gap:10px;align-items:center}
.country-code{display:flex;align-items:center;gap:7px;font-weight:800;border-right:1px solid #dce4ee;padding-right:10px}
.flag{font-size:21px}
.helper{text-align:center;color:var(--muted);font-size:13px;margin-top:14px}
.otp-row{display:grid;grid-template-columns:repeat(6,1fr);gap:8px;margin:30px 0}
.otp-row input{width:100%;aspect-ratio:1/1.05;border:1.5px solid #dbe4ee;border-radius:12px;text-align:center;font-size:23px;font-weight:800;outline:none}
.otp-row input:focus{border-color:var(--brand-3);box-shadow:0 0 0 4px rgba(23,119,238,.08)}
.note-demo{background:#eff6ff;border:1px solid #d6e9ff;color:#31577f;padding:12px 14px;border-radius:14px;font-size:13px;margin:8px 0 18px}
.kyc-card{height:190px;border-radius:24px;background:linear-gradient(145deg,#eef5fd,#e0ecfb);display:grid;place-items:center;margin:20px 0}
.id-card{width:215px;height:126px;border-radius:18px;background:#fff;box-shadow:0 14px 35px rgba(23,62,118,.12);display:flex;gap:18px;align-items:center;padding:18px}
.avatar{width:60px;height:60px;border-radius:50%;background:#cbd7e6;position:relative}
.avatar:before{content:"";position:absolute;width:22px;height:22px;border-radius:50%;background:#7d90a8;left:19px;top:10px}
.avatar:after{content:"";position:absolute;width:38px;height:22px;border-radius:50% 50% 30% 30%;background:#7d90a8;left:11px;bottom:7px}
.lines{flex:1}.lines i{display:block;height:8px;border-radius:8px;background:#d9e2ee;margin:10px 0}.lines i:nth-child(2){width:76%}.lines i:nth-child(3){width:58%}
.checklist{display:grid;gap:11px;margin:18px 0 24px}
.check{display:flex;gap:10px;align-items:center;font-size:14px;color:#53677f}.check b{width:23px;height:23px;border-radius:50%;display:grid;place-items:center;background:#e8f2ff;color:var(--brand-2)}
.success-screen{background:#fff;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:32px;text-align:center}
.success-icon{width:88px;height:88px;flex-shrink:0;border-radius:50%;background:#e4f3eb;display:grid;place-items:center;color:var(--success);}
.success-screen h2{font-size:29px;color:var(--brand);margin:25px 0 8px}
.success-screen p{color:var(--muted);line-height:1.5;margin:0 0 28px}

.home{background:var(--surface-2);}
.home-head{color:var(--text);padding:var(--safe-top) 22px 24px;}
.greeting{display:flex;justify-content:space-between;align-items:center}
.greeting h2{font-size:26px;font-weight:650;letter-spacing:-.025em;margin:24px 0 4px;}.greeting p{margin:0;font-size:14px;color:var(--muted);}
.balance-card{margin-top:24px;padding:24px;border-radius:20px;background:var(--brand);color:#fff;}
.balance-card small{color:rgba(255,255,255,.85)}
.balance{font-size:40px;font-weight:600;margin:8px 0 22px;letter-spacing:-.03em;font-variant-numeric:tabular-nums;}
.currency-row{display:flex;justify-content:space-between;align-items:center;font-size:14px}
.actions{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:24px 0 0;}
.action{text-align:center;color:var(--brand);font-size:13px;font-weight:600;}
.action button{width:52px;height:52px;border-radius:16px;border:1px solid #c6d4e4;background:#fff;color:var(--brand);display:grid;place-items:center;margin:0 auto 8px;}
.panel{flex:1;min-height:180px;background:#fff;border-radius:24px 24px 0 0;padding:22px;overflow:visible;}
.panel-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.panel-title h3{margin:0;font-size:17px;font-weight:650;letter-spacing:-.015em;}
.panel-title button{border:0;background:none;color:var(--brand);font-weight:600;font-size:13px;min-height:44px;}
.tx-list{display:grid}
.tx{display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:10px;align-items:center;padding:16px 0;border-bottom:1px solid var(--line);}
.tx:last-child{border-bottom:none}
.tx-icon{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:#eaf2ff;color:var(--brand-2)}
.tx-icon.in{background:#e7f7ee;color:var(--success)}
.tx-icon.out{background:#edf3ff;color:#3976d9}
.tx-icon.pay{background:#fff2e8;color:#d36d1f}
.tx-main b{font-size:14px}.tx-main span{display:block;color:var(--muted);font-size:12px;margin-top:3px}
.tx-amount{font-weight:650;font-size:13px;font-variant-numeric:tabular-nums;white-space:nowrap;}.tx-amount.positive{color:var(--success)}
.bottom-nav{position:sticky;bottom:0;flex-shrink:0;left:0;right:0;min-height:calc(64px + env(safe-area-inset-bottom));background:#fff;display:grid;grid-template-columns:repeat(5,1fr);align-items:center;padding:8px 10px calc(8px + env(safe-area-inset-bottom));border-top:1px solid var(--line);z-index:9;}
.nav-item{min-height:48px;border:0;background:none;color:var(--muted);font-size:11px;display:grid;place-items:center;gap:4px;}
.nav-item.active{color:var(--brand-2);font-weight:800}
.nav-item.center{width:48px;height:48px;border-radius:14px;background:var(--brand);color:#fff;justify-self:center;}

.section{background:#fff;min-height:100%}
.amount-box{background:#f0f4f9;border-radius:18px;padding:18px;margin:16px 0}
.amount-label{font-size:12px;color:var(--muted)}
.amount-row{display:flex;align-items:center;gap:8px;margin-top:7px}
.amount-row input{border:0;outline:0;background:transparent;font-size:34px;font-weight:900;min-width:0;flex:1;color:var(--text)}
.amount-row strong{color:var(--brand)}
.contact-card{display:flex;align-items:center;gap:12px;padding:13px;border-radius:16px;border:1px solid #e0e7ef}
.contact-avatar{width:46px;height:46px;border-radius:50%;background:linear-gradient(145deg,#d6e9ff,#9dc7fb);display:grid;place-items:center;color:var(--brand);font-weight:900}
.contact-card small{display:block;color:var(--muted);margin-top:3px}
.summary{display:grid;gap:0;margin:18px 0;border:1px solid var(--line);border-radius:18px;overflow:hidden}
.summary-row{display:flex;justify-content:space-between;padding:14px 15px;border-bottom:1px solid var(--line);font-size:14px}
.summary-row:last-child{border-bottom:0}.summary-row strong{font-size:15px}
.receipt-card{width:100%;border-radius:16px;background:#fff;border:1px solid var(--line);padding:20px;text-align:left;}
.receipt-logo{display:flex;align-items:center;gap:10px;margin-bottom:20px;color:var(--brand)}
.receipt-line{display:flex;justify-content:space-between;padding:10px 0;border-bottom:1px solid #edf1f4;font-size:14px}
.receipt-line:last-child{border-bottom:0}
.qr-wrap{background:#fff;border:1px solid #e1e8f0;border-radius:24px;padding:24px;display:grid;place-items:center;margin-top:16px}
.qr{
  width:190px;height:190px;background:
    linear-gradient(90deg,#111 10px,transparent 10px) 0 0/24px 24px,
    linear-gradient(#111 10px,transparent 10px) 0 0/24px 24px,
    linear-gradient(90deg,transparent 14px,#111 14px 20px,transparent 20px) 0 0/31px 31px,
    linear-gradient(transparent 14px,#111 14px 20px,transparent 20px) 0 0/31px 31px,
    #fff;
  border:10px solid #fff;
  box-shadow:0 0 0 1px #d8e0ea;
  position:relative;
}
.qr:after{content:"R";position:absolute;inset:0;margin:auto;width:52px;height:52px;border-radius:14px;background:#fff;color:var(--brand-2);display:grid;place-items:center;font-size:31px;font-weight:950;box-shadow:0 4px 14px rgba(0,0,0,.14)}
.tabs{display:grid;grid-template-columns:repeat(3,1fr);background:#edf2f8;padding:4px;border-radius:14px;margin:14px 0}
.tab{border:0;background:none;border-radius:9px;padding:10px 6px;min-height:44px;font-size:13px;color:var(--muted);}
.tab.active{background:#fff;color:var(--brand);font-weight:800;box-shadow:0 3px 10px rgba(17,35,60,.06)}
.profile-card{text-align:center;padding:24px 18px}
.big-avatar{width:84px;height:84px;border-radius:50%;background:linear-gradient(145deg,#dbeaff,#9bc8ff);margin:auto;display:grid;place-items:center;color:var(--brand);font-size:28px;font-weight:900}
.verified{display:inline-flex;gap:6px;align-items:center;margin-top:10px;background:#e8f7ef;color:#207a48;padding:7px 10px;border-radius:999px;font-size:12px;font-weight:700}
.menu-list{display:grid;background:#fff;border-radius:20px;border:1px solid var(--line);overflow:hidden}
.menu-item{border:none;background:#fff;padding:15px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);color:var(--text);text-align:left}
.menu-item:last-child{border-bottom:0}.menu-item span{display:flex;align-items:center;gap:11px}.menu-item small{color:#93a0b0}
.toast{
  position:absolute;left:18px;right:18px;bottom:92px;background:#13253f;color:#fff;padding:13px 15px;border-radius:14px;
  box-shadow:0 14px 34px rgba(0,0,0,.22);font-size:13px;z-index:30;animation:toastIn .2s ease
}
@keyframes toastIn{from{transform:translateY(12px);opacity:0}}
.hidden{display:none!important}
[hidden]{display:none!important}
.institutional-image{display:block;width:220px;max-width:100%;height:auto;object-fit:contain;background:transparent;mix-blend-mode:multiply;margin-inline:auto}
.institutional-heading{margin:0 0 24px!important;line-height:0!important;text-align:center}
.demo-panel .institutional-image{width:300px}
.country-screen>.institutional-image{width:100%;align-self:center}
.mx-welcome>header .institutional-image{width:250px}
.mx-welcome>header .logo-lockup{max-width:100%}
.mx-welcome>header{flex-direction:column;align-items:center;text-align:center}
.mx-welcome>header .logo-lockup{justify-content:center;width:100%}
.mx-welcome>header .mx-country{align-self:center}
.mx-wallet-top .logo-lockup{min-width:0;flex:1}
.mx-wallet-top .institutional-image{width:220px}
.hero-brand .institutional-image{width:100%}
.hero-brand .logo-lockup{display:block}
.receipt-logo .institutional-image{width:240px}
.greeting>.logo-lockup{min-width:0;max-width:calc(100% - 56px)}
.country-screen{background:#f5f7fb;padding:32px 26px;color:var(--brand)}
.country-screen>.institutional-brand{align-self:flex-start}
.country-content{margin:auto 0;padding:36px 0}
.country-content h1{font-size:36px;line-height:1.12;letter-spacing:-.035em;margin:0 0 16px}
.country-content>p{font-size:15px;line-height:1.6;color:var(--muted);margin:0 0 32px}
.country-options{display:grid;gap:16px}
.country-options a{display:flex;align-items:center;gap:16px;padding:22px 18px;border:1px solid #c6d4e4;border-radius:16px;color:var(--brand);background:#fff;text-decoration:none}
.country-options strong{font-size:19px}.country-options small{display:block;font-size:12px;color:var(--muted);margin-top:6px}.country-options a>span:last-child{margin-left:auto}
.country-options a:hover{background:#edf4d4;border-color:#9caf66}
.country-options a:focus-visible,.country-switch:focus-visible{outline:3px solid #3775c4;outline-offset:3px}
.country-flag{width:40px;height:28px;border-radius:4px;flex-shrink:0;box-shadow:0 1px 3px #13243a25}
.flag-bo{background:linear-gradient(#c83b3b 0 33.33%,#f0cf4b 33.33% 66.66%,#308356 66.66%)}
.flag-mx{background:linear-gradient(90deg,#237653 0 33.33%,#fff 33.33% 66.66%,#c83b3b 66.66%)}
.country-note{font-size:12px;line-height:1.6;color:var(--muted);margin:0}
.has-country-switch .app{height:calc(100% - 40px)}
.country-switch{height:40px;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:600;color:var(--brand);background:#f5f7fb;text-underline-offset:3px;border-radius:0 0 24px 24px}
.institutional-brand{display:inline-flex;flex-direction:column;align-items:center;gap:4px;color:inherit;flex-shrink:0}
.institutional-line{display:flex;align-items:center;gap:6px;white-space:nowrap;font-size:21px;line-height:1;letter-spacing:-.045em}
.institutional-line b{font-weight:800}.institutional-line b span{font-weight:500;letter-spacing:-.03em}
.institutional-go{display:inline-flex;align-items:center;gap:0;margin-left:1px;isolation:isolate}
.institutional-go .institutional-symbol{width:31px;height:25px;margin-right:-5px;transform:translateY(-3px);z-index:-1}
.institutional-pay{font-weight:500;letter-spacing:-.03em;margin-left:2px}
.institutional-symbol{display:block;width:36px;height:28px;flex-shrink:0;background:currentColor;mask:url('../assets/rudi-wing.svg') center/contain no-repeat;-webkit-mask:url('../assets/rudi-wing.svg') center/contain no-repeat}
.institutional-brand small{font-size:11px;line-height:1.2;letter-spacing:.13em;font-weight:500}
.demo-panel .institutional-line{font-size:30px;gap:6px}.demo-panel .institutional-symbol{width:45px;height:34px}.demo-panel .institutional-brand small{font-size:14px}
.demo-panel .institutional-go .institutional-symbol{width:40px;height:32px;margin-right:-7px;transform:translateY(-4px)}
.globe-logo img{object-fit:contain;border-radius:16px}
@media(max-width:360px){.mx-wallet-top .institutional-line{font-size:18px;gap:4px}.mx-wallet-top .institutional-symbol{width:30px;height:24px}}
.globe-logo .institutional-symbol{width:80px;height:58px;color:#fff}

/* Mexico onboarding prototype. */
.mx-screen{background:#fff}
.mx-top{display:flex;align-items:center;justify-content:space-between;padding:18px 20px 10px;flex-shrink:0;gap:8px}
.mx-top>span{font-size:13px;color:var(--muted)}
.mx-top b{font-size:10px;margin-left:6px;background:#edf1f5;padding:4px 6px;border-radius:4px}
.mx-content{padding:12px 24px 28px;flex:1}
.mx-content h1{font-size:30px;font-weight:700;letter-spacing:-.035em;line-height:1.14;margin:18px 0 12px;outline:none}
.mx-content h2{font-size:19px;letter-spacing:-.02em;margin:24px 0 10px}
.mx-sub{font-size:15px;line-height:1.6;color:var(--muted);margin:0 0 24px}
.mx-content .btn{margin-top:16px}
.mx-progress{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;font-size:12px;color:var(--muted);margin:8px 0 28px}
.mx-progress>div{width:100%;height:4px;background:#e9eef4;border-radius:4px;overflow:hidden}
.mx-progress i{display:block;height:100%;background:var(--brand)}
.mx-save{display:grid;text-align:center;gap:0;padding:8px 20px 18px;border-top:1px solid var(--line);flex-shrink:0}
.mx-save span{font-size:11px;color:var(--muted)}
.mx-fact{padding:16px 0;border-bottom:1px solid var(--line);display:grid;gap:7px;overflow-wrap:anywhere}
.mx-fact>span{font-size:12px;color:var(--muted)}
.mx-fact strong{font-size:15px;font-weight:600;line-height:1.4}
.mx-checks{margin:24px 0}.mx-checks p{display:flex;gap:12px;align-items:center;font-size:14px;color:var(--muted);line-height:1.5}.mx-checks svg{flex-shrink:0;color:var(--brand)}
.mx-label{display:block;font-size:13px;font-weight:600;margin:22px 0 10px}
.mx-code{width:100%;border:1px solid #8b9caf;border-radius:12px;font:600 28px "Segoe UI",sans-serif;letter-spacing:.35em;text-align:center;padding:18px 8px;color:var(--brand)}
.mx-content select{width:100%;padding:15px 10px;border:1px solid #8b9caf;border-radius:12px;background:#fff;font:inherit;color:var(--text)}
.mx-content select:focus-visible,.mx-details summary:focus-visible{outline:3px solid #3775c4;outline-offset:3px}
.mx-details{border-bottom:1px solid var(--line);padding:16px 0;line-height:1.6;font-size:14px}
.mx-details summary{cursor:pointer;font-weight:600;min-height:28px}.mx-details p{color:var(--muted)}
.mx-consent{display:flex;align-items:flex-start;gap:12px;font-size:14px;line-height:1.6;margin-top:24px;cursor:pointer}
.mx-consent input{width:22px;height:22px;flex-shrink:0;accent-color:var(--brand)}
.mx-error{background:#fff0ef;color:#9c2936;border:1px solid #efc3c9;border-radius:12px;padding:14px;font-size:14px;line-height:1.5;margin:16px 0}
.mx-document{border-radius:18px;padding:22px;background:#e9eef5;border:1px solid #cad6e5;margin:24px 0}
.mx-document-top{display:flex;align-items:center;justify-content:space-between;font-size:10px;letter-spacing:.06em;color:var(--muted)}
.mx-document-body{display:flex;align-items:center;gap:16px;margin-top:24px;font-size:14px;font-weight:600}
.mx-document-body>svg{width:48px;height:48px;color:#52739d}.mx-document small{display:block;font-size:9px;letter-spacing:.06em;color:var(--muted);margin-top:8px}
.mx-captures{display:grid;gap:12px}.mx-captures button{display:flex;align-items:center;gap:14px;text-align:left;border:1px solid #b9c9dc;background:#fff;border-radius:12px;padding:16px;color:var(--brand)}
.mx-captures span{font-size:14px;font-weight:600}.mx-captures small{display:block;font-size:12px;color:var(--muted);font-weight:400;margin-top:4px}
.mx-face{height:208px;width:164px;border:2px dashed #7393b6;border-radius:48%;margin:24px auto;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#f2f6fb;gap:16px}
.mx-face svg{width:80px;height:80px;color:#7393b6}.mx-face span{font-size:11px;color:var(--muted)}
.mx-status{display:flex;flex-direction:column;align-items:center;text-align:center;gap:16px;padding:28px 18px;background:#f1f5fa;border-radius:20px;margin:24px 0}
.mx-status>svg{width:48px;height:48px;color:var(--brand)}.mx-status strong{font-size:17px;line-height:1.4}.mx-status span{font-size:13px;color:var(--muted);line-height:1.6}
.mx-approved{background:#edf5e5}.mx-approved>svg{color:#23693e}
.mx-scenarios>p{font-size:12px;color:var(--muted);margin-top:28px}
.mx-wallet-top{display:flex;justify-content:space-between;align-items:center;padding:24px 22px 8px;gap:8px}
.mx-country{font-size:11px;color:var(--muted);white-space:nowrap}
.mx-wallet-actions{display:flex;gap:16px;margin:22px 0}.mx-wallet-actions button{display:flex;align-items:center;justify-content:center;gap:10px;flex:1;background:#edf4d4;border:0;border-radius:14px;padding:16px 10px;font-weight:600;color:var(--brand)}
.mx-wallet-actions button+button{background:var(--brand);color:#fff}
.mx-first{padding:4px 0 20px}.mx-first p{font-size:14px;line-height:1.6;color:var(--muted)}
.mx-nav{position:sticky;bottom:0;display:flex;padding:10px 16px max(10px,env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--line);flex-shrink:0;margin-top:auto;z-index:3}
.mx-nav button{flex:1;display:grid;justify-items:center;gap:6px;padding:8px;background:none;border:0;color:var(--muted);font-size:11px}
.mx-nav [aria-current]{color:var(--brand);font-weight:700;background:#f0f4f9;border-radius:12px}
.mx-welcome{background:#f5f7fb}.mx-welcome>header{padding:26px 24px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}
.mx-welcome-body{padding:0 26px;flex:1}.mx-welcome h1{font-size:42px;line-height:1.06;letter-spacing:-.04em;font-weight:750;margin:18px 0;outline:none}
.mx-welcome h1 em{font-style:normal;color:var(--brand);text-decoration:underline;text-decoration-color:#cce667;text-underline-offset:7px;text-decoration-thickness:5px}
.mx-welcome-body>p{font-size:15px;color:var(--muted);line-height:1.6;margin:20px 0 26px}
.mx-pass{background:var(--brand);color:#fff;border-radius:20px;padding:20px 22px;margin-bottom:24px}
.mx-pass>div{display:flex;gap:10px;align-items:center;font-size:13px;color:#dfebf8;padding-bottom:16px;border-bottom:1px solid #ffffff35}
.mx-pass ol{padding:0;margin:18px 0 0;list-style:none;display:grid;gap:18px}
.mx-pass li{display:flex;align-items:center;gap:14px;font-size:14px}.mx-pass li>b{width:27px;height:27px;display:grid;place-items:center;border:1px solid #88a8ce;border-radius:50%;font-size:12px;color:#d9ef70}.mx-pass small{display:block;font-size:11px;color:#d3e0f1;margin-top:4px}
.mx-welcome-cta{padding:0 24px 20px;flex-shrink:0;text-align:center}.mx-welcome-cta .btn{background:#d9ef70;color:var(--brand)}.mx-welcome-cta p{font-size:11px;line-height:1.5;color:var(--muted);margin:12px 8px 0}
@media(max-height:740px){.mx-welcome>header{padding:18px 24px}.mx-welcome h1{font-size:36px;margin:10px 0}.mx-welcome-body>p{margin:14px 0 18px;font-size:14px}.mx-pass{padding:16px 20px;margin-bottom:18px}.mx-pass ol{gap:13px;margin-top:14px}.mx-welcome-cta{padding-bottom:12px}}
@media(max-width:360px){.mx-content{padding:10px 18px 24px}.mx-top{padding:16px 12px 8px}.mx-welcome h1{font-size:37px}.mx-wallet-top{padding:20px 16px 8px}.mx-wallet-top .logo-text b{font-size:19px}.mx-wallet-top .logo-mark{width:32px}}

@media(max-width:900px){
  body{background:#fff}
  .desktop-shell{padding:0;display:block}
  .phone-shell{width:100%;height:100dvh;min-height:0;border-radius:0;padding:0;background:#fff;box-shadow:none}
  .phone-speaker,.demo-panel{display:none}
  .app{border-radius:0}
}

/* Shared interaction and responsive refinements. */
::selection{background:#c8dcf6;color:#173e76}
input,textarea{caret-color:var(--brand)}
input::placeholder{color:var(--muted);opacity:1}
button:focus-visible,input:focus-visible{outline:3px solid #3775c4;outline-offset:3px}
.brand-bg button:focus-visible{outline-color:#fff}
button:disabled{opacity:.55;cursor:not-allowed}
@media(hover:hover){.btn:not(.white):not(.outline):hover{background:#24538f}.btn.white:hover{background:#eaf2ff}.ghost-wide:hover,.action button:hover,.icon-btn.light:hover{background:#e3ecf7}.link-btn:hover{text-decoration:underline;text-underline-offset:4px}}
.hero-brand{padding-top:12px}
.logo-lockup{gap:10px}
.logo-mark{width:42px;height:42px;flex-shrink:0}
.logo-dark{color:var(--brand)}.logo-light{color:#fff}
.logo-text{display:flex;align-items:center;gap:8px;line-height:1}
.logo-text b{font-size:22px;font-weight:800;letter-spacing:-.055em}
.logo-text span{display:inline-flex;align-items:center;font-size:13px;font-weight:650;letter-spacing:-.025em;padding:6px 8px;border-radius:8px;background:#d9ef70;color:#173e76}
.hero .logo-text b{font-size:24px}.hero .logo-text span{font-size:14px}
.float-chip svg{width:16px;height:16px}
.cta-wrap{flex-shrink:0}
.home-head .icon-btn{color:var(--brand);background:#e3ebf5}
.home-head .logo-lockup{color:var(--brand)}
.tx-main{min-width:0}.tx-main b{font-weight:600;line-height:1.4}.tx-main span{line-height:1.4}
.form-content{min-height:0;flex-shrink:0;overflow-wrap:anywhere}
.topbar{flex-shrink:0;gap:8px}.topbar-title{text-align:center;font-weight:650}
.screen:has(.bottom-nav)>.form-content{padding-bottom:24px!important}
.success-screen{gap:0;justify-content:flex-start;padding:32px 24px!important}
.success-screen>.success-icon{margin-top:24px}
.success-screen h2{font-size:28px;font-weight:650;letter-spacing:-.02em}
.success-screen .receipt-card{margin-bottom:24px}
.screen>.bottom-nav{margin-top:auto}
.demo-badge::before{content:"";width:7px;height:7px;border-radius:50%;background:#187343}
.demo-card strong{font-variant-numeric:tabular-nums;letter-spacing:.08em}
.form-screen .btn,.onboard .btn{flex-shrink:0}
.amount-row:focus-within{outline:2px solid #3775c4;outline-offset:6px;border-radius:4px}
.amount-row input{font-variant-numeric:tabular-nums}
/* Brand expression: angled routes echo the R mark. */
.balance-card{position:relative;isolation:isolate;overflow:hidden;background:linear-gradient(115deg,#102e5a,#173e76 65%,#255a94);box-shadow:0 14px 28px -18px #173e7680}
.balance-card::before,.balance-card::after{content:"";position:absolute;z-index:-1;pointer-events:none;width:100px;height:290px;border:1px solid #5d86b4;border-radius:60px;transform:rotate(34deg);right:-4px;top:-65px;opacity:.45}
.balance-card::after{right:43px;top:-50px;border-color:#9ab86a;opacity:.3}
.balance-card small{font-size:13px;color:#dce9fa}
.balance-card .currency-row{font-size:12px;color:#e0ebf8}
.balance{font-size:42px;letter-spacing:-.045em}
.actions .action:first-child button{background:var(--brand);border-color:var(--brand);color:#fff;box-shadow:0 8px 16px -10px #173e7680}
.actions .action:nth-child(2) button{background:#e7f2b8;border-color:#d3e39a}
.home-head{padding-bottom:22px}
.greeting h2{font-weight:700}
.panel{border-top:1px solid #e4e9f0}
.brand-bg{background:linear-gradient(155deg,#102e5a 0%,#173e76 70%,#255a94 100%)}
.brand-bg .btn.white{background:#d9ef70;color:#173e76}
.globe{width:156px;height:156px;background:#244f83;border-color:#90afcc;box-shadow:0 20px 45px -20px #05162f}
.globe::before{border-color:#9ab5d1}.globe::after{border-color:#b6cc85}
.float-chip.fc3{background:#d9ef70}
@media(hover:hover){.actions .action:first-child button:hover{background:#24538f}.actions .action:nth-child(2) button:hover{background:#d9ed95}.brand-bg .btn.white:hover{background:#e6f5a7}}
@media(min-width:601px) and (max-width:900px){.desktop-shell{display:flex;padding:24px}.phone-shell{width:420px;height:calc(100dvh - 48px);border-radius:32px;overflow:hidden;border:1px solid var(--line)}body{background:#edf1f5}}
@media(max-width:360px){.hero{padding:20px}.hero h1{font-size:40px}.form-content{padding:20px}.home-head{padding-left:16px;padding-right:16px}.panel{padding:16px}.tx{gap:8px;grid-template-columns:32px minmax(0,1fr) auto}.tx-icon{width:32px;height:32px}.tx-main b,.tx-amount{font-size:12px}.otp-row{gap:5px}}
@media(max-height:740px){.hero h1{font-size:38px;margin-top:24px}.hero-visual{min-height:170px}.feature-row{margin-bottom:6px}.hero-brand{padding-top:0}.illustration-card{width:160px;height:160px}.illustration{min-height:170px}.success-screen>.success-icon{margin-top:4px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
