/* Shared palette keeps pages, forms, menus and prototype controls in sync. */
:root{color-scheme:light;--ink:#0a0a0a;--surface:#fafafa;--text-secondary:#444;--muted:#555;--focus:#777;--border-strong:#888;--border-medium:#999;--border:#aaa;--border-soft:#bbb;--shade:#ccc;--hover:#ddd;--error-surface:#e8e8e8;--subtle:#eee}
:root[data-theme="dark"]{color-scheme:dark;--ink:#f2f2f2;--surface:#111;--text-secondary:#d5d5d5;--muted:#b5b5b5;--focus:#aaa;--border-strong:#888;--border-medium:#777;--border:#666;--border-soft:#555;--shade:#444;--hover:#333;--error-surface:#292929;--subtle:#222}
*{box-sizing:border-box}html{scroll-padding-top:20px}body{margin:0;background:var(--surface);color:var(--ink);font:16px/1.55 Arial,Helvetica,sans-serif}a{color:inherit;text-underline-offset:4px}button,input,select,textarea{font:inherit;color:inherit}button,summary{cursor:pointer}button,a,input,select,textarea,summary{touch-action:manipulation}button{border:1px solid var(--ink);background:var(--ink);color:var(--surface);padding:12px 18px;min-height:46px}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid var(--focus);outline-offset:4px}button:hover,.button:hover{opacity:.8}button:disabled{opacity:.45;cursor:default}.secondary,.quiet{background:transparent;color:var(--ink)}.quiet{border-color:var(--border)}.button{display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--ink);min-height:46px;padding:12px 18px;text-decoration:none;background:var(--ink);color:var(--surface);text-align:center}.button.secondary{background:transparent;color:var(--ink)}.skip{position:absolute;top:-100px;background:var(--surface);padding:15px;z-index:99}.skip:focus{top:0}.site-header{padding:25px 4%;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;align-items:center;gap:20px}.brand{font-size:28px;letter-spacing:-1.8px;text-decoration:none;font-weight:bold;white-space:nowrap}.brand span{margin-left:10px}.desktop-menu{display:flex;gap:30px;font-size:14px}.desktop-menu a{text-decoration:none}.desktop-menu a[aria-current]{text-decoration:underline}.quick-links{display:flex;gap:25px;flex-wrap:wrap;padding:12px 4%;border-bottom:1px solid var(--border-soft);font-size:12px}.mobile-menu{display:none}main{max-width:1200px;min-height:65vh;margin:auto;padding:60px 32px 80px}h1{font-size:clamp(36px,5.6vw,72px);line-height:1.05;letter-spacing:-.055em;font-weight:500;margin:12px 0 24px;max-width:850px}h2{font-size:27px;line-height:1.2;letter-spacing:-.025em;margin:0 0 18px;font-weight:500}h3{font-size:19px;margin:0 0 14px}p{max-width:72ch}.eyebrow,.tag,.kicker{font:11px/1.5 monospace;text-transform:uppercase;letter-spacing:.07em}.lead{font-size:19px;max-width:620px;color:var(--text-secondary)}.muted,small,.small{color:var(--muted);font-size:13px}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin-top:32px}.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(250px,1fr);gap:35px;margin-top:30px}.panel{border:1px solid var(--border);padding:28px;min-width:0}.panel.dark{background:var(--ink);color:var(--surface)}.panel.dark .muted,.panel.dark small{color:var(--shade)}.panel.dark .button{background:var(--surface);color:var(--ink)}.panel.dark .button.secondary{color:var(--surface);background:transparent;border-color:var(--border-strong)}.panel>p:last-child{margin-bottom:0}.panel h2{font-size:25px}.price,.balance{font-size:46px;line-height:1.15;letter-spacing:-.04em;margin:15px 0}.price small{font-size:14px;letter-spacing:0}.actions{display:flex;flex-wrap:wrap;gap:12px;margin:24px 0 0}.actions>*{flex:1 1 auto}.stack{display:grid;gap:10px}.row{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap}.rule{border-top:1px solid var(--border-soft);margin:23px 0;padding-top:20px}.data-list{margin:20px 0}.data-list div{display:flex;justify-content:space-between;gap:15px;padding:13px 0;border-bottom:1px solid var(--shade)}.data-list dd{margin:0;text-align:right}.data-list dt{color:var(--muted)}label{display:block;font-size:14px;font-weight:bold;margin:20px 0 8px}input:not([type=checkbox]),select,textarea{width:100%;min-width:0;border:1px solid var(--border-strong);background:var(--surface);padding:12px;border-radius:0}input[type=checkbox]{width:20px;height:20px;vertical-align:middle;margin-right:8px}textarea{min-height:120px;resize:vertical}.hint{margin:8px 0;font-size:12px;color:var(--muted)}.status{padding:16px 20px;background:var(--subtle);border-left:3px solid var(--ink);margin:22px 0}.error{color:var(--ink);border-left:4px solid var(--ink);padding:10px 14px;background:var(--error-surface);margin:15px 0}.error:empty{display:none}.notice{border:1px dashed var(--border-strong);padding:20px;margin:25px 0}.tag{display:inline-block;border:1px solid var(--border-medium);padding:5px 9px}.breadcrumb{font-size:13px;margin:0 0 26px;display:flex;gap:14px;flex-wrap:wrap}.subnav{display:flex;gap:8px;overflow-x:auto;padding:0 0 16px;border-bottom:1px solid var(--border);margin:28px 0}.subnav a{flex-shrink:0;text-decoration:none;padding:9px 14px;border:1px solid var(--border);font-size:13px}.subnav a[aria-current]{background:var(--ink);color:var(--surface)}details{border-top:1px solid var(--border-soft);padding:16px 0}summary{padding:4px 0;font-size:14px}details p{font-size:14px}.device-switch{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}.device-switch button{flex:1;padding:10px;min-height:44px;background:transparent;color:var(--ink);font-size:13px}.device-switch button[aria-pressed=true]{background:var(--ink);color:var(--surface)}.qr{margin:22px auto;width:170px;height:170px;border:2px dashed var(--focus);display:grid;place-items:center;text-align:center;font:12px monospace;background:repeating-linear-gradient(45deg,var(--subtle),var(--subtle) 5px,var(--surface) 5px,var(--surface) 10px)}.steps{padding-left:24px}.steps li{margin:16px 0}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;min-width:400px;font-size:14px}td,th{padding:14px;border-bottom:1px solid var(--border);text-align:left}th{font-size:12px}.site-footer{border-top:1px solid var(--border);padding:25px 4% 90px;display:flex;flex-wrap:wrap;justify-content:space-between;gap:20px;font-size:12px}.prototype-tools{position:fixed;bottom:14px;right:18px;z-index:10;background:var(--surface);border:1px solid var(--ink);box-shadow:3px 3px 0 var(--shade);width:300px;max-width:calc(100vw - 36px)}.prototype-tools details{padding:0;border:0}.prototype-tools summary{padding:13px 18px;font:12px monospace}.tools-body{padding:0 18px 18px;max-height:65vh;overflow:auto;font-size:12px}.tools-body button{font-size:12px;padding:8px}.tools-body select{font-size:13px}.tools-body a{display:block;margin-top:15px}dialog{padding:28px;max-width:min(560px,calc(100% - 32px));max-height:90svh;border:1px solid var(--ink);background:var(--surface);color:var(--ink)}dialog::backdrop{background:#0008}dialog h2{margin-top:8px}dialog button{margin-top:10px}#close-modal{margin-top:24px;width:100%}#toast{position:fixed;bottom:80px;left:50%;transform:translateX(-50%);max-width:calc(100vw - 32px);width:max-content;background:var(--ink);color:var(--surface);font-size:14px;padding:14px 20px;z-index:20}#toast:empty{display:none}.storage-notice{margin:0;max-width:none;background:var(--subtle);padding:14px 4%;font-size:13px}.home-icon{width:70px;height:70px;border:1px solid;border-radius:16px;display:grid;place-items:center;font:bold 23px monospace;margin-bottom:18px}progress{width:100%;height:15px;accent-color:var(--ink)}.radio-card{display:block;border:1px solid var(--border);padding:18px;margin:12px 0}.radio-card input{width:auto!important;margin-right:10px}.radio-card:has(input:checked){border:2px solid var(--ink);padding:17px}code{overflow-wrap:anywhere}#main:focus{outline:none}[hidden]{display:none!important}@media(max-width:760px){.desktop-menu{display:none}.mobile-menu{display:block;border:0;padding:0}.mobile-menu nav{display:grid;gap:14px;padding:18px 0}.site-header{align-items:start}.mobile-menu[open]{width:60%}.quick-links{gap:16px}.grid,.grid.three,.layout{grid-template-columns:1fr;gap:18px}main{padding:35px 20px 65px}.panel{padding:22px}.lead{font-size:17px}.site-header{padding:20px}.price,.balance{font-size:39px}.actions>*{flex-basis:100%}.prototype-tools .actions>*{flex-basis:auto}h1{font-size:44px}.data-list div{font-size:14px}.breadcrumb{font-size:12px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

.panel.dark button{color:var(--surface);background:transparent;border-color:var(--border)}.panel.dark input{color:var(--ink)}input[type=radio],input[type=checkbox]{accent-color:var(--ink)}

/* Compact task layouts: natural scrolling remains available for expanded content. */
body{font-size:15px;line-height:1.45;min-height:100svh;display:flex;flex-direction:column}

.site-header{padding-block:13px}
.brand{font-size:25px}
.quick-links{padding-block:8px}
main{width:100%;max-width:none;min-height:0;flex:1;padding:26px clamp(20px,3vw,64px) 30px}
h1{font-size:clamp(30px,3.2vw,44px);line-height:1.08;margin:8px 0 14px;max-width:none}
h2,.panel h2{font-size:22px;margin-bottom:12px}
h3{font-size:17px;margin-bottom:8px}
p{margin:10px 0}
.eyebrow,.kicker{margin:6px 0}
.lead{font-size:16px;max-width:78ch;margin:10px 0 16px}
.layout,.grid{margin-top:20px;gap:22px;align-items:start}
.panel{padding:20px}
.panel-gap{margin-top:16px}
.price,.balance{font-size:38px;margin:10px 0}
.actions{margin-top:16px;gap:10px}
button,.button{min-height:44px;padding:10px 14px;font-size:14px}
.stack{gap:8px}
label{margin:12px 0 6px}
input:not([type=checkbox]),select,textarea{padding:10px;min-height:44px}
input[type=radio]{min-height:0}
textarea{min-height:90px}
.data-list{margin:12px 0}
.data-list div{padding:8px 0}
.rule{margin:16px 0;padding-top:14px}
.status{margin:14px 0;padding:12px 16px}
.notice{margin:16px 0;padding:16px}
.hint{margin:6px 0}
.details,details{padding:10px 0}
.device-switch{margin:14px 0}
.qr{width:130px;height:130px;margin:14px auto}
.steps li{margin:10px 0}
.home-icon{width:42px;height:42px;border-radius:10px;font-size:18px;margin-bottom:10px}
.site-footer{padding:14px 4%;padding-right:225px;font-size:11px;gap:12px}
.prototype-tools{width:auto;bottom:8px;right:12px;box-shadow:2px 2px 0 var(--shade)}
.prototype-tools summary{padding:12px;font-size:11px}
.prototype-tools:has(details[open]){width:300px}
.prototype-tools details{padding:0}
#toast{bottom:65px}
.order-context{display:flex;align-items:center;gap:8px 18px;flex-wrap:wrap;margin-bottom:16px}
.order-context .breadcrumb{margin:0;font-size:12px}
.order-context>.muted,.order-context>.kicker{margin:0;font-size:12px}
.order-context .subnav{width:100%;margin:4px 0 0;padding:0 0 10px}
.subnav a{padding:8px 12px;min-height:36px}
.purchase-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:clamp(30px,5vw,80px);align-items:center;padding:10px 0}
.purchase-intro h1{font-size:clamp(38px,4.7vw,64px);letter-spacing:-.05em}
.purchase-intro .lead{font-size:19px;max-width:32ch}
.purchase-links{font-size:14px}
.plan-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.radio-card{margin:0;padding:13px;font-weight:400}
.radio-card:has(input:checked){padding:12px}
.radio-card>span{display:block}
.radio-card>span:first-child{font-weight:bold}
.radio-card input{padding:0;min-height:0}
.radio-card .hint{margin-bottom:0}
.purchase-total{display:grid;grid-template-columns:minmax(0,1fr);gap:0}
.purchase-total div{font-size:13px}
.payment-methods{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:14px}
.payment-methods button{padding:10px 8px;font-size:13px}
@media(min-width:761px) and (max-height:800px){
  main{padding-top:18px;padding-bottom:20px}
  .panel{padding:16px}
  .layout,.grid{margin-top:16px;gap:18px}
  h1{font-size:34px;margin-bottom:10px}
  .order-context{margin-bottom:10px}
  .order-context .subnav{padding-bottom:8px}
  .rule{margin:12px 0;padding-top:10px}
  .panel-gap{margin-top:12px}
  .home-icon{float:left;margin:0 12px 8px 0}
  .site-footer{padding-block:10px}
}
@media(max-width:760px){
  
  
  .site-header{padding:10px 16px}
  .mobile-menu{padding:0}
  .mobile-menu summary{min-height:36px;display:flex;align-items:center}
  .quick-links{padding:7px 16px;gap:8px 15px;font-size:11px}
  main{padding:18px 16px 24px}
  h1{font-size:30px;margin:6px 0 12px}
  .lead{font-size:15px;margin-bottom:12px}
  .panel{padding:16px}
  h2,.panel h2{font-size:20px}
  .layout,.grid,.grid.three{grid-template-columns:1fr;gap:16px;margin-top:16px}
  .actions>*{flex-basis:auto}
  .order-context{gap:6px 10px;margin-bottom:12px}
  .order-context>.kicker{font-size:10px}
  .order-context>.muted{font-size:11px;width:100%}
  .order-context .subnav{padding-bottom:8px;gap:6px;margin-top:4px}
  .subnav a{font-size:12px;padding-inline:10px}
  .site-footer{padding:14px 16px 64px;gap:10px}
  .purchase-layout{display:flex;flex-direction:column;gap:14px;padding:0;align-items:stretch}
  .purchase-intro h1{font-size:34px;margin-bottom:8px}
  .purchase-intro .lead{font-size:15px;max-width:none;margin:6px 0}
  .purchase-links{font-size:12px;margin:8px 0 0}
  .plan-options{gap:8px}
  .radio-card,.radio-card:has(input:checked){font-size:13px}
  .radio-card{padding:10px}
  .radio-card:has(input:checked){padding:9px}
  .radio-card .hint,.radio-card .muted{font-size:11px}
  .radio-card input{margin-right:3px}
  .purchase-total{gap:0 12px}
  .purchase-total div{font-size:12px;padding:7px 0}
  .payment-methods{grid-template-columns:repeat(4,minmax(110px,1fr));gap:6px;margin-top:12px;overflow-x:auto;padding:4px;margin-inline:-4px}
  .payment-methods button{font-size:12px;padding:9px 5px;min-height:52px}
  .purchase-layout .panel{padding:14px}
  .purchase-layout .panel h2{font-size:18px;margin-bottom:10px}
}
.order-dashboard{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:22px;margin-top:20px}
@media(min-width:761px) and (max-height:800px){.order-dashboard{gap:18px;margin-top:16px}}
@media(max-width:1000px) and (min-width:761px){.order-dashboard{grid-template-columns:1.15fr 1fr}.order-dashboard>aside{grid-column:1/-1}.order-dashboard>aside .panel{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.order-dashboard>aside .panel p{flex-basis:40%}}
@media(max-width:760px){.order-dashboard{grid-template-columns:1fr;gap:16px;margin-top:16px}}
@media(min-width:761px){
  main[data-page="install"] details[open]{display:flow-root}
  main[data-page="install"] details .qr{float:left;margin:10px 18px 10px 0}
  main[data-page="install"] details:has(.qr)>p{padding-top:16px}
}
@media(min-width:761px) and (max-height:800px){
  main[data-page="install"] .qr{width:112px;height:112px}
  main[data-page="install"] .device-switch{margin-block:10px}
}
main{display:flex;flex-direction:column;justify-content:center}
main>*{flex-shrink:0}

/* Navigation and page content share the same horizontal edges. */
:root{--page-gutter:clamp(40px,6vw,128px)}
.site-header,.quick-links,main{padding-inline:var(--page-gutter)}
@media(max-width:760px){:root{--page-gutter:16px}}

.input-with-action{position:relative}
.input-with-action input{min-height:56px;padding-right:62px}
button.field-action{position:absolute;right:6px;top:6px;width:44px;height:44px;min-height:44px;padding:0;display:grid;place-items:center;background:var(--subtle);color:var(--ink);border-color:var(--border)}
button.field-action:hover{background:var(--hover);opacity:1}

/* Main navigation and private eSIM navigation remain together while scrolling. */
html{scroll-padding-top:calc(var(--site-header-height,70px) + var(--esim-navigation-height,0px) + 16px)}
.site-header{position:sticky;top:0;z-index:30;background:var(--surface);gap:24px}
.site-header .quick-links{padding:0;border:0;margin-right:auto;gap:16px;flex-wrap:wrap;font-size:12px}
.site-header .desktop-menu{gap:22px}
.esim-navigation{position:sticky;top:var(--site-header-height,70px);z-index:25;background:var(--surface);border-bottom:1px solid var(--border);padding:10px var(--page-gutter)}
.esim-navigation .order-context{margin:0;gap:8px 16px}
.esim-navigation .subnav{width:auto;margin:0 0 0 auto;padding:0;border:0}
@media(max-width:1100px){
  .site-header{flex-wrap:wrap;gap:10px 20px}
  .site-header .desktop-menu{display:none}
  .site-header .mobile-menu{display:block;border:0;padding:0;margin-left:auto}
  .site-header .mobile-menu nav{display:grid;gap:14px;padding:18px 0}
  .site-header .mobile-menu[open]{width:100%;order:4}
  .esim-navigation .subnav{width:100%;margin:0}
}
@media(max-width:760px){
  .site-header .quick-links{order:3;width:100%;margin:0;gap:8px 14px;font-size:11px}
  .esim-navigation{padding-block:8px}
  .esim-navigation .order-context>.kicker,.esim-navigation .order-context>.muted{display:none}
  .esim-navigation .subnav{padding:0}
}

/* Paired panels share the tallest content-driven height; stacked panels stay natural. */
@media(min-width:761px){
  .layout,.grid{align-items:stretch}
  .layout>aside:not(.panel){display:flex;flex-direction:column}
  .layout>aside:not(.panel)>.panel:first-child{flex:1}
  .layout>aside:not(.panel)>:last-child{margin-bottom:0}
}
/* Reserve scroll space so navigation does not shift between short and long pages. */
html{scrollbar-gutter:stable}
.input-with-action textarea{padding-right:62px}
.usage-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;border-bottom:1px solid var(--border);padding-bottom:18px}
.usage-summary .price{font-size:30px}
.usage-panel table{min-width:640px;font-variant-numeric:tabular-nums}
.usage-panel td{padding-block:9px}
.usage-pagination{margin-top:16px}
.usage-pagination .actions{margin:0}
@media(max-width:760px){.usage-summary{grid-template-columns:1fr;gap:14px}.usage-summary .price{margin:4px 0}.usage-pagination{align-items:flex-start}}

.rates-heading{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(240px,1fr);align-items:center;gap:32px}
.rates-heading h1{font-size:clamp(30px,3vw,42px)}
.rates-heading .lead{margin-bottom:0}
.rates-screen .grid{margin-top:24px}
.rates-note{margin-top:14px}
.country-field{max-width:440px;width:100%;justify-self:end}
@media(max-width:760px){.rates-heading{grid-template-columns:1fr;gap:12px}.country-field{max-width:none}.rates-heading h1{font-size:30px}.rates-screen .grid{margin-top:16px}}

/* The dashboard's stacked middle cards and single side cards share one bottom edge. */
@media(min-width:761px){
  .order-dashboard{align-items:stretch}
  .order-dashboard>div,.order-dashboard>aside{display:flex;flex-direction:column}
  .order-dashboard>div>.panel{flex:1}
  .order-dashboard>aside>.panel{flex:1}
}

.purchase-total>div:last-child{grid-column:1/-1}

/* Keep purchase first, with the guide as the next homepage section. */
main[data-page="buy"]{justify-content:flex-start;padding-bottom:0}
main[data-page="buy"]>.purchase-layout{min-height:calc(100svh - var(--site-header-height,70px) - 90px)}
.home-how,.home-help{scroll-margin-top:-16px;margin-top:30px;padding-block:32px;min-height:calc(100svh - var(--site-header-height,70px) - var(--site-footer-height,45px));display:flex;flex-direction:column;justify-content:center}
.home-how>h2,.home-help>h2{font-size:clamp(28px,3.2vw,42px);line-height:1.12}
.home-how .panel h3{font-size:22px;margin-bottom:12px}
.home-how:focus,.home-help:focus,#contact-support:focus{outline:none}

/* Floating navigation stays within reach; its modal makes the page inert. */
.prototype-tools{left:max(16px,env(safe-area-inset-left));right:auto;bottom:max(12px,env(safe-area-inset-bottom))}
.floating-menu-button{position:fixed;right:max(16px,env(safe-area-inset-right));bottom:max(12px,env(safe-area-inset-bottom));z-index:40;width:56px;height:56px;min-height:56px;padding:0;display:grid;place-items:center;border-radius:0;box-shadow:2px 2px 0 var(--shade);margin:0}
.menu-overlay{position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;border:0;padding:32px var(--page-gutter) 92px;background:var(--surface);overflow-y:auto;overscroll-behavior:contain}
.menu-overlay::backdrop{background:var(--surface)}
.menu-overlay[open]{display:flex;flex-direction:column}
.menu-overlay-content{width:100%;margin-block:auto;padding-block:16px}
.menu-overlay nav{display:flex;flex-direction:column;align-items:flex-start;gap:8px}
.menu-overlay nav a{display:flex;align-items:center;min-height:44px;font-size:clamp(24px,4vw,42px);line-height:1.2;text-decoration:none;padding-block:4px}
.menu-overlay nav a:hover,.menu-overlay nav a[aria-current]{text-decoration:underline}
html{scrollbar-gutter:stable}
html.menu-open,html.chat-open{overflow:hidden}
html.menu-open body{position:fixed;width:100%;overflow:hidden}
.site-footer{padding:14px var(--page-gutter);align-items:center}
@media(max-width:1100px){.site-footer{min-height:80px;padding-right:88px}}

/* Floating navigation replaces the header menu only at the mobile breakpoint. */
#open-menu{display:none}
@media(max-width:1100px){#open-menu{display:grid}.site-header .quick-links{display:none}}

/* On phones, introduce the service first and choose a plan in the next fold. */
.mobile-hero-copy{display:none}
@media(max-width:760px){
  .mobile-hero-copy{display:block}
  main[data-page="buy"]>.purchase-layout{gap:20px;min-height:0}
  .purchase-intro{display:flex;flex-direction:column;justify-content:center;min-height:calc(100svh - var(--site-header-height,53px) - 18px);padding-block:24px 64px}
  .purchase-intro h1{font-size:clamp(34px,9vw,48px);line-height:1.08;margin-block:8px 16px}
  .purchase-intro .lead{font-size:17px;max-width:34ch}
  .hero-benefits{padding-left:20px;margin-block:20px;font-size:15px}
  .hero-benefits li{margin-block:8px}
  .hero-payments{font-size:14px;margin-block:18px;max-width:36ch}
  .hero-buy{width:100%;margin-block:4px 12px;min-height:48px}
  .purchase-intro .purchase-links{margin-top:0}
  #buy-form:focus{outline:none}
}

.theme-toggle{width:44px;height:44px;min-height:44px;flex:0 0 44px;display:grid;place-items:center;padding:0;background:transparent;color:var(--ink);border-color:var(--border);margin-left:auto}
.theme-sun{display:none}
[data-theme="dark"] .theme-sun{display:block}
[data-theme="dark"] .theme-moon{display:none}

/* Keep the brand centered alongside the theme control at every breakpoint. */
.site-header{align-items:center}

/* Original vector mark; select the variant using the existing saved/device theme. */
.brand{display:flex;align-items:center;flex-shrink:0;min-height:48px}
.brand-logo{display:block;width:110px;height:auto}
.brand-logo-dark{display:none}
[data-theme="dark"] .brand-logo-light{display:none}
[data-theme="dark"] .brand-logo-dark{display:block}

/* Keep desktop navigation and theme control together at the right edge. */
@media(min-width:1101px){.theme-toggle{margin-left:0}}

@media(max-width:760px){
  .home-how{padding-block:20px}
  .home-how .grid{gap:12px}
  .home-how .panel{padding:14px}
  .home-how .panel h3{font-size:20px;line-height:1.2;margin-bottom:8px}
  .home-how .panel p{font-size:14px;line-height:1.4;margin-block:8px}
}

/* A quiet next-section link at the foot of the first viewport. */
.section-jump{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:44px;padding:4px 12px;font-size:12px;line-height:1.2;text-decoration:none;color:var(--muted);white-space:nowrap}
.section-jump:hover{color:var(--ink);text-decoration:underline}
.section-jump>span:last-child{font-size:20px;line-height:1}
.section-jump-mobile{display:none}
@media(min-width:761px){
  main[data-page="buy"]{padding-top:26px}
  main[data-page="buy"]>.purchase-layout{position:relative;min-height:calc(100svh - var(--site-header-height,75px) - 26px);padding-bottom:76px}
}
@media(max-width:760px){
  .purchase-intro{position:relative;padding-bottom:76px}
  .section-jump-mobile{display:flex}
  .section-jump-desktop{display:none}
}

/* Standalone submit buttons share a consistent gap from the fields above. */
form>button{margin-top:16px}

/* Help is the last homepage section; only it shares its viewport with the footer. */
.home-how{min-height:calc(100svh - var(--site-header-height,70px))}
.home-help .panel h3{font-size:22px;line-height:1.2;font-weight:500;margin-bottom:12px}
#contact-support{display:flex;flex-direction:column;align-items:flex-start}
#contact-support>button{margin-top:auto;align-self:flex-end}
#contact-support>p:last-of-type{margin-bottom:24px}
.home-help details:first-child{border-top:0}
@media(max-width:760px){.home-help{padding-block:20px}}

/* The chat launcher shares the floating controls row with the mobile menu. */
.floating-chat-button{position:fixed;right:max(16px,env(safe-area-inset-right));bottom:max(12px,env(safe-area-inset-bottom));z-index:40;height:56px;min-height:56px;padding:0 16px;display:flex;align-items:center;gap:10px;background:var(--surface);color:var(--ink);box-shadow:2px 2px 0 var(--shade)}
.site-footer{padding-right:180px}
.chat-panel{position:fixed;inset:auto 16px 80px auto;width:390px;height:min(620px,calc(100dvh - var(--site-header-height,70px) - 104px));max-width:calc(100vw - 32px);max-height:none;margin:0;padding:0;overflow:hidden;box-shadow:0 12px 40px #0004}
.chat-panel[open]{display:flex;flex-direction:column}
.chat-panel::backdrop{background:#0004}
.chat-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;border-bottom:1px solid var(--border)}
.chat-header .eyebrow{margin:0 0 6px}
.chat-header h2{font-size:22px;margin:0}
.chat-close{width:44px;height:44px;min-height:44px;flex-shrink:0;margin:0;padding:0;font-size:28px}
.chat-content{flex:1;min-height:0;position:relative}
#chat-loading{padding:16px 20px;font-size:14px}
#chat-frame{display:block;width:100%;height:100%;border:0;background:#fff;color-scheme:light}
.chat-footer{display:flex;flex-direction:column;gap:8px;padding:12px 20px;border-top:1px solid var(--border);font-size:12px;color:var(--muted)}
@media(max-width:1100px){.floating-chat-button{right:calc(max(16px,env(safe-area-inset-right)) + 68px)}.site-footer{padding-right:248px}}
@media(max-width:760px){
  .floating-chat-button{width:56px;padding:0;justify-content:center}
  .floating-chat-button>span{display:none}
  .site-footer{padding-right:156px}
  .chat-panel{inset:auto 16px 80px;width:calc(100vw - 32px);height:min(600px,calc(100dvh - var(--site-header-height,70px) - 96px))}
  .chat-header{padding:14px 16px}
  .chat-header h2{font-size:20px}
  .chat-footer{padding:10px 16px}
}

.home-how{position:relative;padding-block:76px}
.device-switch{flex-wrap:nowrap;overflow-x:auto;padding:4px;margin-inline:-4px}
.device-switch button{flex:1 0 auto;white-space:nowrap}

/* Keep plan features readable alongside the compact checkout. */
.plan-intro{font-size:13px;margin:0 0 10px;max-width:none}
.plan-terms{border-top:0;margin:12px 0 8px;padding:10px 0}
.plan-terms summary{font-size:13px}
.plan-terms p{font-size:13px;margin:10px 0}
@media(max-width:760px){.plan-intro{font-size:12px}.plan-options .radio-card .hint{font-size:12px}}

/* Shared service information lives in the hero; plan-specific choices stay in checkout. */
.hero-rates{display:flex;flex-wrap:wrap;gap:16px 32px;margin:22px 0}
.hero-rates p{margin:0}
.hero-rates span{display:block;font-size:12px;color:var(--text-secondary);margin-bottom:3px}
.hero-rates strong{display:block;font-size:21px;font-weight:500;letter-spacing:-.02em}
.hero-rates small{font-size:14px;color:inherit}
@media(max-width:760px){
  .hero-benefits{margin-block:16px;font-size:14px}
  .hero-benefits li{margin-block:6px}
  .hero-rates{margin-block:16px;gap:12px 24px}
  .hero-rates strong{font-size:19px}
  .hero-payments{margin-block:14px;font-size:13px}
}

.manage-app-hint{margin-top:16px}

@media(max-width:760px){
  .esim-navigation .order-context>.breadcrumb,
  .esim-navigation .order-context>.kicker,
  .esim-navigation .order-context>.muted{display:none}
  .esim-navigation .subnav{gap:4px;overflow-x:auto;scrollbar-width:thin}
  .esim-navigation .subnav a{flex:1 0 68px;min-width:68px;padding:9px 5px;text-align:center;white-space:nowrap}
}

/* Full-width mobile actions are reachable from either side of the screen. */
@media(max-width:760px){
  main button:not(.field-action):not(.device-switch button),
  main .button,
  #modal button{width:100%}
  main .actions,#modal .actions{width:100%}
  main .actions>*,#modal .actions>*{flex-basis:100%}
  main .payment-methods{grid-template-columns:minmax(0,1fr);overflow:visible;margin-inline:0;padding:0;gap:8px}
}

/* A shared label and monochrome symbols match the original payment chooser. */
.payment-options{min-width:0;margin:18px 0 0;padding:0;border:0}
.payment-options legend{padding:0;margin:0 0 10px;font-size:14px;font-weight:bold}
main .payment-options .payment-methods{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0;padding:0;overflow:visible}
.payment-options .payment-methods button{display:flex;align-items:center;justify-content:center;min-height:56px;padding:8px;--payment-background:#000;background:var(--payment-background);color:#fff;border:1px solid var(--payment-background)}
:root[data-theme="dark"] .payment-options .payment-methods button{--payment-background:#fff;color:#000}
.payment-options .payment-methods button:hover{opacity:.8}
.payment-icon{display:block;flex-shrink:0}

/* Centre the installation QR within the space remaining below its instructions. */
.install-method-panel{display:flex;flex-direction:column;align-items:flex-start}
.install-method-panel>h2,.install-method-panel>.device-switch{flex-shrink:0}
.install-method-panel>.device-switch{align-self:stretch}
.install-method-panel>.manual-install,.install-method-panel>.install-qr-space{width:100%}
.install-qr-space{flex:1;display:grid;place-items:center;min-height:174px;padding-block:22px}
.install-qr-space .qr{margin:0;flex-shrink:0}

main[data-page="install"] .install-qr-space .esim-qr{display:block;width:256px;max-width:100%;height:auto;aspect-ratio:1;border:0;background:#fff}

/* Reserve the full QR layout height when switching desktop installation tabs. */
@media(min-width:761px){
  main[data-page="install"]>.layout>.panel{min-height:504px}
}

/* BTCPay checkout structure, expressed in the wireframe palette. */
#modal.invoice-modal{width:400px;max-width:calc(100% - 24px);padding:26px 24px 18px}
.invoice-modal #modal-title{text-align:center;font-size:22px;margin:0 24px 24px;font-weight:bold}
.invoice-modal .invoice-close{position:absolute;right:8px;top:6px;width:36px;min-height:36px;padding:0;margin:0;border:0;font-size:28px}
.invoice-purpose{text-align:center;color:var(--muted);font-size:13px;margin:0 0 16px}
.invoice-amount{text-align:center;font-size:28px;font-weight:bold;line-height:1.2;margin:0 0 16px}
.invoice-details{border:0;text-align:center;padding:0;margin:0 0 22px}
.invoice-details summary{list-style:none;text-decoration:underline;text-underline-offset:4px}
.invoice-details summary::after{content:'⌄';margin-left:6px}
.invoice-details .data-list{text-align:left}
.invoice-details .price{font-size:14px;letter-spacing:0;margin:0}
.invoice-methods{border:0;padding:0;margin:0 0 16px;min-width:0;text-align:center}
.invoice-methods legend{float:none;width:100%;font-size:14px;margin-bottom:12px}
.invoice-methods>div{display:flex;justify-content:center;flex-wrap:wrap;gap:8px}
.invoice-modal .invoice-methods button{width:auto;min-height:34px;margin:0;padding:6px 12px;font-size:13px}
.invoice-methods button[aria-pressed=true]{background:var(--ink);color:var(--surface)}
.invoice-qr{position:relative;width:288px;max-width:100%;margin:0 auto 20px;background:#fff;line-height:0}
.invoice-qr img{display:block;width:100%;height:auto}
.invoice-qr span{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:48px;height:48px;display:grid;place-items:center;background:#000;color:#fff;border:5px solid #fff;border-radius:50%;font:bold 28px/1 Arial,sans-serif}
.invoice-address{margin-bottom:20px}
.invoice-address>div{display:flex;align-items:center;gap:8px;min-width:0}
.invoice-address code{font:12px/1.5 monospace;overflow-wrap:anywhere;max-height:54px;overflow:auto;flex:1;min-width:0}
.invoice-modal .invoice-address button{width:36px;min-height:36px;flex:0 0 36px;padding:8px;margin:0;border:0}
.invoice-modal .invoice-wallet{width:100%;margin:0}
.invoice-modal .invoice-status{width:100%;font-size:13px;margin:8px 0 0;min-height:36px;padding:6px}
.invoice-provider{text-align:center;color:var(--muted);font-size:11px;margin:18px 0 0}
.invoice-modal #close-modal{display:none}
.invoice-altcoins{text-align:center;padding:24px 0}
#invoice-feedback:empty{display:none}

.home-icon.home-icon-image{display:block;width:56px;height:56px;border:0;object-fit:contain}

.topup-presets{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin:12px 0 18px}
.topup-presets button{min-height:44px;padding:8px 4px;font-size:14px}
.topup-presets button[aria-pressed=true]{background:var(--ink);color:var(--surface)}

.topup-identity{color:var(--muted);font:inherit}


/* Illustrative browser control in app-opening help. */
.app-launch-guide{margin:24px 0}
.app-launch-guide__window{border:1px solid var(--border-soft);background:var(--subtle);overflow:hidden}
.app-launch-guide__tabs{display:flex;align-items:center;gap:5px;height:35px;padding:0 14px;border-bottom:1px solid var(--border-soft)}
.app-launch-guide__tabs>span:not(.app-launch-guide__tab){width:5px;height:5px;border-radius:50%;background:var(--border-strong)}
.app-launch-guide__tab{margin-left:12px;font-size:11px;color:var(--muted)}
.app-launch-guide__toolbar{display:flex;align-items:center;gap:12px;padding:12px}
.app-launch-guide__back{flex:0 0 18px;color:var(--muted)}
.app-launch-guide__bar{display:flex;align-items:center;gap:12px;flex:1;min-width:0;border:1px solid var(--border-strong);border-radius:0;padding:5px 6px 5px 12px;background:var(--surface)}
.app-launch-guide__address{flex:1;min-width:0;font-size:13px;color:var(--muted)}
.app-launch-guide__icon{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;background:var(--ink);color:var(--surface)}
.app-launch-guide__icon svg{display:block;width:24px;height:24px;min-width:24px;max-width:none;flex:none;aspect-ratio:1}
.app-launch-guide__callout{position:relative;display:flex;flex-direction:column;align-items:flex-end;margin:0 20px 18px;padding-top:24px;font-size:13px}
.app-launch-guide__callout>span:last-child{font-size:11px;color:var(--muted)}
.app-launch-guide__line{position:absolute;right:17px;top:-9px;height:25px;border-left:1px solid var(--ink)}
.app-launch-guide__line::before{content:'';position:absolute;top:0;left:-3px;width:5px;height:5px;border-top:1px solid var(--ink);border-left:1px solid var(--ink);transform:rotate(45deg)}

/* Dummy payment QR doubles as a keyboard/touch-friendly development shortcut. */
.invoice-modal button.invoice-qr{display:block;width:288px;max-width:100%;padding:0;margin:0 auto 20px;border:0;min-height:0;border-radius:0}
.invoice-modal button.invoice-qr:hover{opacity:1}
.payment-success-icon{display:grid;place-items:center;width:64px;height:64px;border:1px solid var(--ink);border-radius:50%;margin:24px auto}
.payment-success-icon svg{width:32px;height:32px}

.payment-support-panel{display:flex;flex-direction:column;align-items:flex-start}
.payment-support-action{margin-top:auto;padding-top:20px;align-self:stretch;display:flex;justify-content:flex-end}
@media(max-width:760px){.payment-support-panel>button,.payment-support-action>button{width:100%}}

#modal [data-action="payment-success-account"]{display:block;width:100%}

/* Bookmark guidance follows its panel's foreground colour in either theme. */
.private-link-panel>[data-action="save-link"]{width:100%}
.private-link-panel>#copy-feedback:empty{display:none}
.bookmark-help{width:100%;margin-top:22px;padding-top:20px;border-top:1px solid currentColor;color:inherit}
.bookmark-help h2{font-size:20px;line-height:1.3;margin:0 0 12px}
.bookmark-help p{font-size:14px;line-height:1.5;color:inherit;margin:0}
.bookmark-help kbd{white-space:nowrap;font:inherit;font-weight:bold}
.private-link-panel>.bookmark-help{border:0;margin:0 0 18px;padding:0}

.empty-state>p{color:inherit;margin:0 0 20px}
.inbox-panel>.empty-state{padding:24px 0 8px}
.inbox-panel>.empty-state h3{margin-bottom:10px}

/* Paired starting-rate cards keep opposite black/white colours in both themes. */
.hero-rates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-width:460px}
.hero-rates p{min-width:0;padding:0;color:var(--ink)}
.hero-rates span{font-size:13px;color:inherit;margin-bottom:8px}
.hero-rates strong{font-size:clamp(17px,2vw,22px);line-height:1.3}
.hero-rates small{font-size:12px}

.hero-rates p+ p{padding-left:20px;border-left:1px solid var(--border)}

.select-with-icon{position:relative}
.select-with-icon select{appearance:none;-webkit-appearance:none;padding-right:44px;min-height:44px}
.select-with-icon>svg{position:absolute;right:16px;top:50%;transform:translateY(-50%);pointer-events:none}

/* Sender list and incoming conversation share one inbox on desktop. */
.sms-inbox{display:grid;grid-template-columns:minmax(240px,32%) minmax(0,1fr);border:1px solid var(--border);min-height:380px;height:min(600px,65svh);margin-top:22px}
.sms-list{min-width:0;overflow-y:auto;border-right:1px solid var(--border)}
.sms-list-header{padding:20px;border-bottom:1px solid var(--border-soft)}
.sms-list-header h2{margin:0 0 6px;font-size:20px}
.sms-threads{display:flex;flex-direction:column}
.sms-thread{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px 10px;padding:18px 20px;border-bottom:1px solid var(--border-soft);text-decoration:none;min-width:0}
.sms-thread:hover{background:var(--subtle)}
.sms-thread[aria-current]{background:var(--ink);color:var(--surface)}
.sms-thread:focus-visible{outline-offset:-4px}
.sms-sender{font-weight:bold;overflow-wrap:anywhere}
.sms-thread-count{font-size:12px}
.sms-preview{grid-column:1/-1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}
.sms-thread time{grid-column:1/-1;font-size:12px}
.sms-conversation{min-width:0;min-height:0;display:flex;flex-direction:column}
.sms-conversation-header{padding:20px 24px;border-bottom:1px solid var(--border-soft)}
.sms-conversation-header h2{font-size:22px;margin:0;overflow-wrap:anywhere}
.sms-conversation-header p{font-size:13px;margin:6px 0 0;color:var(--muted)}
.sms-conversation-body{flex:1;overflow-y:auto;padding:24px;min-height:0}
.sms-message{max-width:560px;margin:0 0 24px}
.sms-message:last-child{margin-bottom:0}
.sms-body{white-space:pre-wrap;overflow-wrap:anywhere;padding:16px;background:var(--subtle);font-size:15px;margin:0 0 8px}
.sms-message time{font-size:12px;color:var(--muted)}
.sms-readonly-note{font-size:12px;color:var(--muted);padding:14px 24px;border-top:1px solid var(--border-soft);margin:0;max-width:none}
.sms-conversation-placeholder{justify-content:center;align-items:center;text-align:center;padding:28px}
.sms-conversation-placeholder h2{font-size:22px;margin-bottom:10px}
.sms-conversation-placeholder p{margin:0;color:var(--muted)}
.sms-back{display:none}
@media(max-width:760px){
  .sms-inbox{display:block;height:auto;min-height:0;margin-top:18px}
  .sms-list{border:0;overflow:visible}
  .sms-inbox[data-conversation="false"] .sms-conversation{display:none}
  .sms-inbox[data-conversation="true"] .sms-list{display:none}
  .sms-conversation-header{padding:18px}
  .sms-back{display:flex;align-items:center;min-height:44px;width:fit-content;margin:-8px 0 12px;font-size:14px}
  .sms-conversation-body{padding:18px;overflow:visible}
  .sms-readonly-note{padding:14px 18px}
}
main[data-page="messages"]{justify-content:flex-start}
@media(max-width:760px){
  main[data-page="messages"]:has(.sms-inbox[data-conversation="true"])>.eyebrow,
  main[data-page="messages"]:has(.sms-inbox[data-conversation="true"])>.messages-heading>.lead{display:none}
  main[data-page="messages"]:has(.sms-inbox[data-conversation="true"])>.messages-heading>h1{font-size:30px;margin:0 0 6px}
}

@media(min-width:761px) and (min-height:600px){
  main[data-page="messages"]:has(.sms-inbox){
    flex:0 0 calc(100svh - var(--site-header-height) - var(--esim-navigation-height) - var(--site-footer-height));
    height:calc(100svh - var(--site-header-height) - var(--esim-navigation-height) - var(--site-footer-height));
    min-height:0;padding-block:18px;
  }
  main[data-page="messages"]:has(.sms-inbox)>.messages-heading>h1{font-size:32px}
  main[data-page="messages"]:has(.sms-inbox)>.messages-heading>.lead{font-size:14px}
  main[data-page="messages"]>.sms-inbox{flex:1 1 0;min-height:0;height:auto;margin-top:12px}
  .sms-list{display:flex;flex-direction:column;overflow:hidden;min-height:0}
  .sms-list-header,.sms-conversation-header,.sms-readonly-note{flex-shrink:0}
  .sms-threads{flex:1;min-height:0;overflow-y:auto;scrollbar-gutter:stable}
  .sms-thread{flex-shrink:0}
  .sms-conversation-body{scrollbar-gutter:stable}
}
.sms-conversation-header h2:focus{outline:none}

@media(max-width:760px){
  .order-setup-panels{display:flex;flex-direction:column;gap:16px}
  .order-setup-panels>.private-link-panel{margin-top:0}
}

@media(min-width:761px){
  .messages-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-block:4px 10px}
  .messages-heading h1{flex-shrink:0}
  main[data-page="messages"] .messages-heading>h1,
  main[data-page="messages"] .messages-heading>.lead{margin:0}
  .messages-heading>.lead{font-size:14px;text-align:right;max-width:78ch}
}

.account-security-prompt{display:block}
.order-dashboard>.order-app-card>.account-security-prompt{flex:0 0 auto}
.account-security-prompt .button{width:100%}

[data-pwa-hint]:empty{display:none}

.order-setup-panels>.panel{display:flex;flex-direction:column}
.order-setup-panels>.panel>.button,
.private-link-panel>[data-action="save-link"]{margin-top:auto}

.authenticator-panel{container-type:inline-size}
.authenticator-setup{display:grid;gap:24px;margin-top:24px;align-items:start}
.authenticator-fields{min-width:0}
.authenticator-qr{display:flex;justify-content:center;margin:0}
@container(min-width:480px){.authenticator-setup{grid-template-columns:minmax(0,.85fr) minmax(0,1fr);align-items:center}}
.authenticator-qr svg{display:block;width:256px;max-width:100%;height:auto;background:#fff}
.authenticator-fields>.button{width:100%;margin-bottom:8px}
.authenticator-panel form>button,#remove-security>button{width:100%}
.authenticator-panel #authenticator-copy-feedback:empty{display:none}

/* Coverage and rates: current PLUS plans only. */
main[data-page="rates"]{padding-block:24px}
.rates-screen{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:36px}
.rates-intro{min-width:0;padding:16px 0;display:flex;flex-direction:column;justify-content:center}
.rates-heading{display:block}
.rates-heading .eyebrow{margin:0}
.rates-intro .rates-heading h1{font-size:clamp(36px,5.6vw,72px);line-height:1.05;margin:12px 0 24px}
.rates-heading .lead{font-size:15px;margin:0}
.rates-facts{display:block;margin:24px 0 0;padding-left:20px;font-size:15px;color:var(--text-secondary)}
.rates-facts li+li{margin-top:14px}
.rates-controls{display:grid;grid-template-rows:auto minmax(0,1fr);gap:14px;min-width:0;min-height:0}
.rates-controls>.country-field{align-self:start;max-width:none}
.rates-controls>.country-field label{margin-top:0}
.rates-screen .rates-results{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);margin:0;min-height:0}
.rate-group{display:flex;flex-direction:column;padding:20px;min-height:0}
.rate-group>.eyebrow{margin:0 0 8px}
.rate-group h2{font-size:20px;margin:0 0 10px}
.rate-group>.price{font-size:30px;margin:0 0 8px}
.rate-plan-context{font-size:13px;line-height:1.4;color:var(--text-secondary);margin:0 0 10px}
.rate-group .rate-networks{margin:0;min-height:0}
.rate-group table{width:100%;min-width:0}
.rate-group th,.rate-group td{padding:10px 12px}
.rate-group th:first-child,.rate-group td:first-child{overflow-wrap:anywhere}
.rate-group th:last-child,.rate-group td:last-child{text-align:right;white-space:nowrap}
.rate-group thead th{position:sticky;top:0;background:var(--surface);z-index:1}
.rate-caption{text-align:left;font-size:13px;padding-bottom:6px;color:var(--text-secondary)}
.rate-group>.hint{margin:10px 0 0}
.rate-group .actions{margin-top:auto;padding-top:12px;gap:8px;flex-shrink:0}
.rate-group .actions>*{padding-inline:10px;font-size:13px;flex:1 1 180px}
.rates-screen .rates-note{margin:0}
@media(min-width:761px) and (min-height:700px){
 main[data-page="rates"]{flex:0 0 calc(100svh - var(--site-header-height) - var(--site-footer-height));height:calc(100svh - var(--site-header-height) - var(--site-footer-height));min-height:0;padding-block:20px}
 .rates-screen{height:100%;grid-template-rows:minmax(0,1fr)}
 .rate-group .rate-networks{overflow:auto;scrollbar-gutter:stable;flex:1 1 auto}
 .rate-group>:not(.rate-networks){flex-shrink:0}
}
.country-combobox{position:relative}
.country-input{position:relative}
.country-input #country{padding-right:52px;min-height:48px}
.country-combobox .country-input button.country-toggle{position:absolute;right:1px;top:1px;bottom:1px;width:46px;min-height:0;padding:0;display:grid;place-items:center;border:0;background:var(--surface)}
#country-options{position:absolute;top:100%;left:0;right:0;z-index:8;max-height:min(300px,40svh);overflow-y:auto;overscroll-behavior:contain;list-style:none;margin:4px 0 0;padding:4px;background:var(--surface);border:1px solid var(--border-strong);box-shadow:0 8px 20px #0002}
#country-options[hidden]{display:none}
#country-options [role="option"]{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;min-height:44px;cursor:pointer}
#country-options [role="option"]:hover,#country-options .is-active{background:var(--ink);color:var(--surface)}
#country-options [aria-selected="true"]{font-weight:bold}
#country-options [aria-selected="true"]::after{content:'✓';font-size:18px;line-height:1}
.country-no-match{padding:12px;font-size:14px}
.country-search-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
@media(max-width:760px){
 main[data-page="rates"]{padding-top:20px;padding-bottom:100px}
 .rates-screen,.rates-controls{display:block}
 .rates-intro{display:block;padding:0}
 .rates-intro .rates-heading h1{font-size:30px;margin:6px 0 10px}
 .rates-facts{margin:16px 0;font-size:13px}
 .rates-facts li+li{margin-top:6px}
 .rates-controls>.country-field{position:sticky;top:var(--site-header-height,70px);z-index:3;background:var(--surface);padding:12px 0;margin:12px 0;border-bottom:1px solid var(--border)}
 .rates-controls>.country-field label{font-size:13px;margin:0 0 6px}
 .rates-screen .rates-results{grid-template-rows:auto}
 .rate-group{padding:18px}
 .rate-group>.price{margin:4px 0 14px}
 .rate-group .rate-networks{overflow:visible}
 .rate-group thead th{position:static}
 .rate-group .actions{margin-top:8px}
 .rate-group .actions>*{flex-basis:100%;font-size:14px;min-height:48px}
 .rates-screen .rates-note{margin-top:16px}
 .country-input #country{font-size:16px}
 #country-options{padding:6px;max-height:min(320px,42svh);box-shadow:4px 4px 0 var(--border)}
 #country-options [role="option"]{min-height:48px;padding:12px;font-size:16px}
 #country-options [role="option"]+ [role="option"]{border-top:1px solid var(--border-soft)}
}

.purchase-intro .purchase-links{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}
.purchase-intro .purchase-links .button{font-size:14px;flex:1 1 170px;max-width:240px}
@media(max-width:760px){.purchase-intro .purchase-links .button{max-width:none;flex-basis:140px}}

/* Scenario plan catalog: expand the chooser without expanding checkout. */
.plan-options-four{grid-template-columns:repeat(2,minmax(0,1fr))}
.selected-plan{border:1px solid var(--border);padding:16px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.selected-plan h3{margin:6px 0}
.selected-plan p{margin:6px 0}
.selected-plan>button{flex:0 0 auto}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
#plan-picker{width:min(780px,calc(100vw - 48px));max-width:none;padding:24px;max-height:90svh}
#plan-picker[open]{display:flex;flex-direction:column;gap:12px}
.plan-picker-header{display:flex;justify-content:space-between;align-items:start;gap:16px;flex-shrink:0}
.plan-picker-header h2,.plan-picker-header p{margin:0 0 6px}
#close-plan-picker{margin:0;min-width:44px;flex-shrink:0}
.plan-picker-tools{flex-shrink:0}
.plan-picker-tools label{margin:0 0 6px}
.plan-filters{display:flex;gap:8px;margin-top:12px}
.plan-filters button{margin:0;flex:1;padding:8px 12px;background:var(--surface);color:var(--ink);min-height:44px;font-size:14px}
.plan-filters button[aria-pressed=true]{background:var(--ink);color:var(--surface)}
#plan-picker-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;min-height:0;overflow:auto;border:0;padding:4px;margin:0;scrollbar-gutter:stable;overscroll-behavior:contain}
#plan-picker-options .radio-card{font-size:14px}
#plan-picker-options .radio-card .hint{font-size:12px}
.plan-picker-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid var(--border);padding-top:12px;flex-shrink:0}
.plan-picker-footer p{margin:0;font-size:14px}
.plan-picker-footer button{margin:0}
@media(max-width:760px){
 .plan-options-four{grid-template-columns:1fr}
 .selected-plan{display:block;padding:12px}
 .selected-plan>button{margin-top:10px}
 #plan-picker{position:fixed;inset:0;margin:0;width:100%;height:100dvh;max-height:100dvh;border:0;padding:20px 16px max(20px,env(safe-area-inset-bottom))}
 #plan-picker-options{grid-template-columns:1fr;flex:1}
 #plan-picker-options .radio-card,#plan-picker-options .radio-card:has(input:checked){font-size:15px}
 #plan-picker-options .radio-card .hint,#plan-picker-options .radio-card .muted{font-size:13px}
 .plan-picker-footer{display:block}
 .plan-picker-footer button{width:100%;margin-top:8px;min-height:48px}
 .plan-filters{gap:6px}
 .plan-filters button{font-size:13px;padding-inline:8px}
}

/* Consistent arrow inset for every remaining select control. */
select{appearance:none;-webkit-appearance:none;min-height:48px;padding-right:48px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m2 4 4 4 4-4' fill='none' stroke='%23777' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 18px center;background-size:12px 12px}

/* Keep the picker footer reachable, including when the mobile keyboard opens. */
html.plan-picker-open{overflow:hidden}
html.plan-picker-open body{position:fixed;width:100%;overflow:hidden}
#plan-picker{position:fixed;inset:auto 0;top:var(--picker-top,16px);margin:0 auto;height:var(--picker-height,calc(100dvh - 32px));max-height:var(--picker-height,calc(100dvh - 32px));overflow:hidden}
.plan-picker-body{display:flex;flex-direction:column;gap:12px;flex:1 1 0;min-height:0;overflow:auto;overscroll-behavior:contain}
.plan-picker-body>.hint{flex-shrink:0;margin:0}
#plan-picker-options{flex:1 1 auto;min-height:140px;align-content:start}
.plan-picker-footer{display:flex;flex-direction:column;align-items:stretch;gap:8px;margin-top:auto;background:var(--surface)}
.plan-picker-footer button{width:100%;margin:0;min-height:48px}
@media(max-width:760px){#plan-picker{margin:0;max-width:100%;height:var(--picker-height,100dvh);max-height:var(--picker-height,100dvh);top:var(--picker-top,0px)}}

.account-balance-panel,.account-number,.order-app-card>.panel:first-child{display:flex;flex-direction:column}
.account-number{flex:1;margin-bottom:0}
.account-number>.button,.order-app-card>.panel:first-child>[data-action="pwa"]{margin-top:auto;width:100%}
