/* =========================================================
   Orbis · sign in & join. Same paper, ink and lime as the landing.
   The class names are the ones the page scripts already use.
   ========================================================= */
@font-face{font-family:'Noto Sans Georgian';src:url('/assets/fonts/noto-georgian-georgian.woff2') format('woff2');font-weight:100 900;font-display:swap;unicode-range:U+0589,U+10A0-10FF,U+1C90-1CBA,U+1CBD-1CBF,U+205A,U+2D00-2D2F,U+2E31}
@font-face{font-family:'Noto Sans Georgian';src:url('/assets/fonts/noto-georgian-latin-ext.woff2') format('woff2');font-weight:100 900;font-display:swap;unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Noto Sans Georgian';src:url('/assets/fonts/noto-georgian-latin.woff2') format('woff2');font-weight:100 900;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Archy';src:url('/assets/archyedt-bold.woff2') format('woff2');font-weight:700;font-display:swap}

:root{
  --paper:#F3F2ED;--ink:#0B0B0B;--ink2:#5E5E59;--ink3:#6E6E69;
  --line:rgba(11,11,11,.1);--line2:rgba(11,11,11,.16);
  --lime:#C8FF00;--red:#E5372B;
  --display:'Archy','Noto Sans Georgian',system-ui,sans-serif;
  --wordmark:'Noto Sans Georgian',-apple-system,BlinkMacSystemFont,system-ui,sans-serif;
  --ease:cubic-bezier(.19,1,.22,1);--spring:cubic-bezier(.34,1.4,.64,1);--sheetE:cubic-bezier(.32,.72,0,1);
  --st:env(safe-area-inset-top,0px);--sb:env(safe-area-inset-bottom,0px);
}
*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html{background:var(--ink)}
body{font-family:var(--wordmark);background:var(--paper);color:var(--ink);-webkit-font-smoothing:antialiased;min-height:100vh;min-height:100svh;line-height:1.5}
a{color:inherit}
button{font:inherit;color:inherit;cursor:pointer}
::selection{background:var(--ink);color:var(--paper)}

/* the band and header come from site.css */

/* ---------- page column ---------- */
.page{width:100%;max-width:480px;margin:0 auto;padding:28px 20px 40px;flex:1}

/* step indicator: three labelled segments */
.step-indicator{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-bottom:22px;counter-reset:st}
.step-dot{position:relative;height:3px;border-radius:2px;background:var(--line2);transition:background .4s}
.step-dot::after{position:absolute;left:0;top:9px;font-size:11.5px;font-weight:600;color:var(--ink3);white-space:nowrap}
.step-dot:nth-child(1)::after{content:'01  ავტომობილი'}
.step-dot:nth-child(2)::after{content:'02  ანგარიში'}
.step-dot:nth-child(3)::after{content:'03  გადახდა'}
.step-dot.done{background:var(--ink)}
.step-dot.active{background:var(--lime);box-shadow:0 0 0 1px rgba(11,11,11,.08)}
.step-dot.active::after,.step-dot.done::after{color:var(--ink)}
.step-indicator{padding-bottom:22px}

.step-title,.page-title{font-family:var(--display);font-weight:700;font-size:clamp(32px,9vw,40px);line-height:1;margin-bottom:8px}
.step-desc,.page-desc{font-size:14.5px;color:var(--ink2);margin-bottom:24px}

.step{display:none}
.step.active{display:block;animation:stepIn .6s var(--ease)}
@keyframes stepIn{from{opacity:0;transform:translateY(14px)}}

.form-card{background:#fff;border-radius:24px;padding:24px 20px;box-shadow:0 0 0 1px var(--line),0 24px 50px -36px rgba(11,11,11,.35)}

/* ---------- fields ---------- */
.field{margin-bottom:16px}
.field label{display:block;font-size:12.5px;font-weight:700;color:var(--ink2);margin-bottom:7px;letter-spacing:.01em}
.field input,.field select{width:100%;height:54px;padding:0 16px;border:1px solid var(--line2);border-radius:14px;font:inherit;font-size:16px;color:var(--ink);background:#fff;outline:none;transition:border-color .25s,box-shadow .25s;-webkit-appearance:none;appearance:none}
.field input:focus,.field select:focus{border-color:var(--ink);box-shadow:0 0 0 4px rgba(200,255,0,.55)}
.field input::placeholder{color:#A9A9A3}
.field .error-text{font-size:12.5px;font-weight:600;color:var(--red);margin-top:6px;display:none}
.field.error input,.field.error select{border-color:var(--red);animation:shake .4s}
.field.error .error-text{display:block}
@keyframes shake{20%,60%{transform:translateX(-4px)}40%,80%{transform:translateX(4px)}}
.row{display:flex;gap:10px}
.row .field{flex:1;min-width:0}

.picker-field{position:relative;cursor:pointer}
.picker-field input{cursor:pointer;caret-color:transparent;padding-right:40px}
.picker-field::after{content:'';position:absolute;right:18px;top:50%;width:7px;height:7px;border-right:1.8px solid var(--ink);border-bottom:1.8px solid var(--ink);transform:translateY(-70%) rotate(45deg);pointer-events:none}
.picker-disabled{opacity:.4;pointer-events:none}

.phone-wrap{display:flex;align-items:center;height:54px;border:1px solid var(--line2);border-radius:14px;background:#fff;overflow:hidden;transition:border-color .25s,box-shadow .25s}
.phone-wrap:focus-within{border-color:var(--ink);box-shadow:0 0 0 4px rgba(200,255,0,.55)}
.field.error .phone-wrap{border-color:var(--red)}
.phone-prefix{display:flex;align-items:center;gap:8px;height:100%;padding:0 12px 0 14px;font-size:15px;font-weight:700;color:var(--ink);white-space:nowrap;user-select:none;border-right:1px solid var(--line)}
.phone-prefix::before{content:'';width:20px;height:14px;border-radius:2px;background:linear-gradient(#E8403E,#E8403E) 50% 0/4px 100% no-repeat,linear-gradient(#E8403E,#E8403E) 0 50%/100% 4px no-repeat,#fff;box-shadow:0 0 0 1px var(--line2)}
.phone-wrap input{border:none!important;border-radius:0!important;box-shadow:none!important;height:100%;padding-left:12px!important;flex:1;letter-spacing:.02em}

.city-search-wrap{position:relative}
.city-search-wrap.open #citySearch{border-radius:14px 14px 0 0}
.city-dropdown{display:none;position:absolute;top:calc(100% - 1px);left:0;right:0;background:#fff;border:1px solid var(--ink);border-top-color:var(--line);border-radius:0 0 14px 14px;max-height:220px;overflow-y:auto;z-index:10;-webkit-overflow-scrolling:touch;box-shadow:0 20px 30px -20px rgba(11,11,11,.3)}
.city-dropdown.open{display:block}
.city-option{padding:12px 16px;font-size:15px;cursor:pointer}
.city-option:hover,.city-option:active{background:var(--paper)}
.city-option.hidden{display:none}
.city-note{color:var(--ink3)!important}

/* Georgian number plate */
.plate-wrap{display:flex;align-items:stretch;height:58px;border-radius:12px;background:#fff;box-shadow:0 0 0 1.5px var(--ink);overflow:hidden;transition:box-shadow .25s}
.plate-wrap:focus-within{box-shadow:0 0 0 1.5px var(--ink),0 0 0 5px rgba(200,255,0,.55)}
.plate-flag{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;background:#003DA5;padding:0 9px;flex-shrink:0}
.plate-cross{width:22px;height:15px;border-radius:2px;overflow:hidden}
.plate-ge{font-size:9px;font-weight:800;color:#fff;letter-spacing:.06em}
.plate-input{border:none!important;outline:none;background:transparent!important;font-family:var(--display);font-size:28px!important;font-weight:700;text-transform:uppercase;text-align:center;color:var(--ink);letter-spacing:.06em;padding:0!important;height:100%!important;border-radius:0!important;box-shadow:none!important;flex:1;min-width:0}
.plate-input:focus{background:rgba(200,255,0,.25)!important}
.plate-input::placeholder{color:#C9C9C2}
.plate-dash{display:flex;align-items:center;color:#C9C9C2;font-weight:700}
.field.error .plate-wrap{box-shadow:0 0 0 1.5px var(--red)}

/* ---------- buttons ---------- */
.btn-next,.btn-submit,.btn-login{width:100%;height:56px;margin-top:8px;border:0;border-radius:999px;background:var(--ink);color:#fff;font-size:16px;font-weight:700;display:flex;align-items:center;justify-content:center;gap:10px;transition:transform .35s var(--spring),opacity .2s,background .3s}
.btn-next::after,.btn-submit:not(.payment-btn)::after,.btn-login::after{content:'';width:15px;height:15px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;transition:transform .5s var(--ease)}
.btn-next:hover::after,.btn-submit:hover::after,.btn-login:hover::after{transform:translateX(4px)}
.btn-next:active,.btn-submit:active,.btn-login:active{transform:scale(.97)}
.btn-next:disabled,.btn-submit:disabled,.btn-login:disabled{opacity:.45;cursor:not-allowed}
.btn-back{width:100%;height:48px;margin-top:6px;border:0;background:none;color:var(--ink2);font-size:14px;font-weight:600}
.btn-back:hover{color:var(--ink)}

.login-link,.register-link{text-align:center;margin-top:22px;font-size:14px;color:var(--ink2)}
.login-link a,.register-link a{color:var(--ink);font-weight:700;text-decoration:none;background:linear-gradient(var(--lime),var(--lime)) no-repeat 0 90%/100% .35em}

.global-error{display:none;margin-bottom:16px;padding:12px 14px;border-radius:12px;background:rgba(229,55,43,.08);box-shadow:inset 0 0 0 1px rgba(229,55,43,.25);color:var(--red);font-size:14px;font-weight:600}

.terms-check{display:flex;align-items:flex-start;gap:10px;margin-top:16px;font-size:13px;color:var(--ink2);line-height:1.5}
.terms-check input[type="checkbox"]{width:20px;height:20px;margin-top:1px;flex-shrink:0;accent-color:var(--lime)}
.terms-check a{color:var(--ink);font-weight:600;cursor:pointer;text-decoration:underline}

.logo-fallback{width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:800;color:#fff;flex-shrink:0}

/* ---------- payment: the membership card ---------- */
.payment-card{position:relative;overflow:hidden;background:linear-gradient(150deg,#22241F,#0E0F0D 58%);color:#fff;border-radius:26px;padding:26px 22px 24px;text-align:left;box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 30px 60px -34px rgba(0,0,0,.7)}
.payment-card::before{content:'';position:absolute;width:260px;height:260px;right:-130px;top:-130px;border-radius:50%;border:34px solid var(--lime);clip-path:polygon(0 50%,50% 50%,50% 100%,0 100%);transform:rotate(0deg);opacity:1;pointer-events:none}
.payment-brand{position:relative;font-family:var(--wordmark);font-size:24px;font-weight:800;letter-spacing:-.05em;color:#fff;margin-bottom:22px;display:flex;align-items:baseline}
.payment-brand span{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--lime);margin-left:2px;font-size:0}
.plan-toggle{position:relative;display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;margin-bottom:24px;border-radius:999px;background:rgba(255,255,255,.08)}
.plan-btn{height:42px;border:0;border-radius:999px;background:transparent;color:rgba(255,255,255,.6);font-size:14px;font-weight:700;transition:background .3s,color .3s}
.plan-btn.active{background:#fff;color:var(--ink)}
.plan-badge{display:inline-block;margin-left:6px;padding:2px 7px;border-radius:999px;background:var(--lime);color:var(--ink);font-size:10.5px;font-weight:800;vertical-align:1px}
.payment-price{position:relative;font-family:var(--display);font-weight:700;font-size:clamp(64px,19vw,84px);line-height:.9;color:var(--lime);font-variant-numeric:tabular-nums}
.payment-period{font-size:15px;font-weight:600;color:rgba(255,255,255,.55);margin-top:6px}
.payment-note{font-size:13px;color:rgba(255,255,255,.4);margin:2px 0 20px}
#payDetails{background:rgba(255,255,255,.06)!important;border-radius:16px!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}
#payDetails span{color:rgba(255,255,255,.7)!important}
.payment-terms{color:rgba(255,255,255,.65)!important;margin:0 0 18px!important}
.payment-terms a{color:var(--lime)!important}
.payment-btn{background:var(--lime)!important;color:var(--ink)!important}

/* ---------- picker sheet ---------- */
.sheet-overlay{position:fixed;inset:0;z-index:200;background:rgba(11,11,11,.45);opacity:0;pointer-events:none;transition:opacity .4s var(--ease)}
.sheet-overlay.active{opacity:1;pointer-events:auto}
.sheet{position:fixed;bottom:0;left:50%;z-index:201;width:100%;max-width:520px;height:78vh;max-height:78vh;display:flex;flex-direction:column;background:var(--paper);border-radius:28px 28px 0 0;transform:translate(-50%,105%);transition:transform .55s var(--sheetE);padding-bottom:var(--sb)}
.sheet.active{transform:translate(-50%,0)}
.sheet-handle{width:38px;height:4px;border-radius:2px;background:var(--line2);margin:10px auto 0;flex-shrink:0}
.sheet-header{padding:16px 22px 14px;font-family:var(--display);font-weight:700;font-size:26px;line-height:1;text-align:left;flex-shrink:0}
.sheet-search{padding:0 18px 12px;flex-shrink:0}
.sheet-search input{width:100%;height:48px;padding:0 16px 0 42px;border:1px solid var(--line2);border-radius:14px;font:inherit;font-size:16px;outline:none;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%235E5E59' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") 14px center no-repeat;transition:border-color .25s,box-shadow .25s}
.sheet-search input:focus{border-color:var(--ink);box-shadow:0 0 0 4px rgba(200,255,0,.55)}
.sheet-list{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:0 10px 16px}
.sheet-item{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:14px;font-size:15px;cursor:pointer;transition:background .2s}
.sheet-item:hover,.sheet-item:active{background:rgba(11,11,11,.05)}
.sheet-item.selected{background:var(--ink);color:#fff;font-weight:700}
.sheet-item img{width:32px;height:32px;object-fit:contain;flex-shrink:0;background:#fff;border-radius:8px;padding:2px}
.popular-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;padding:0 18px 14px;flex-shrink:0}
.popular-chip{display:flex;align-items:center;justify-content:center;aspect-ratio:1;background:#fff;border-radius:16px;cursor:pointer;box-shadow:0 0 0 1px var(--line);transition:box-shadow .2s,transform .3s var(--spring)}
.popular-chip:hover{transform:translateY(-2px)}
.popular-chip.active{box-shadow:0 0 0 2px var(--ink),0 0 0 6px rgba(200,255,0,.55)}
.popular-chip img{width:32px;height:32px;object-fit:contain}
.color-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:0 18px 16px;overflow-y:auto;flex:1}
.color-chip{display:flex;flex-direction:column;align-items:center;gap:7px;padding:14px 6px;border-radius:16px;cursor:pointer;background:#fff;box-shadow:0 0 0 1px var(--line);transition:box-shadow .2s}
.color-chip.active{box-shadow:0 0 0 2px var(--ink),0 0 0 6px rgba(200,255,0,.55)}
.color-swatch{width:30px;height:30px;border-radius:50%;flex-shrink:0;box-shadow:inset 0 0 0 1px rgba(0,0,0,.12)}
.color-name{font-size:11.5px;font-weight:600;text-align:center;line-height:1.2}
.sheet-btn{padding:12px 18px 18px;flex-shrink:0}
.sheet-btn button{width:100%;height:54px;border:0;border-radius:999px;background:var(--ink);color:#fff;font-size:16px;font-weight:700}

/* ---------- terms modal ---------- */
.modal-overlay{position:fixed;inset:0;z-index:300;display:flex;align-items:center;justify-content:center;background:rgba(11,11,11,.45);opacity:0;pointer-events:none;transition:opacity .35s}
.modal-overlay.active{opacity:1;pointer-events:auto}
.modal-box{width:min(92%,460px);max-height:80vh;display:flex;flex-direction:column;background:var(--paper);border-radius:24px;transform:translateY(16px);transition:transform .5s var(--ease)}
.modal-overlay.active .modal-box{transform:none}
.modal-top{display:flex;align-items:center;justify-content:space-between;padding:20px 22px 12px;font-family:var(--display);font-size:24px;font-weight:700;flex-shrink:0}
.modal-close{width:38px;height:38px;border:0;border-radius:50%;background:#fff;box-shadow:0 0 0 1px var(--line);font-size:20px;color:var(--ink);display:grid;place-items:center}
.modal-body{flex:1;overflow-y:auto;padding:0 22px 24px;font-size:14px;line-height:1.7;color:var(--ink2)}
.modal-body h2{font-size:16px;margin:16px 0 8px;color:var(--ink)}
.modal-body h3{font-size:14px;margin:12px 0 6px;color:var(--ink)}
.modal-body p{margin-bottom:8px}
.modal-body ul{padding-left:20px;margin-bottom:8px}

/* ---------- success overlay ---------- */
#successOverlay{background:var(--ink)!important}
#successTitle{font-family:var(--display)!important;font-weight:700!important;font-size:34px!important;line-height:1}
#successMsg{font-family:var(--wordmark)!important}

@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* lime road in the payment card's corner */
.payment-card::before{display:none}
.pay-road{position:absolute;width:250px;aspect-ratio:1;right:-125px;top:-125px;transform:rotate(68deg);pointer-events:none}
.pay-road circle{fill:none}
.pay-road .r{stroke:var(--lime);stroke-width:13;stroke-dasharray:37 100}
.pay-road .m{stroke:#fff}
.pay-road .e{stroke:var(--ink);stroke-width:.45;opacity:.55}
.pay-road .l{stroke:var(--ink);stroke-width:.7;stroke-dasharray:2.4 2.6;opacity:.8}
.pay-road{width:170px;right:-85px;top:-85px}
.payment-brand{display:block}
.payment-brand span{overflow:hidden;vertical-align:baseline}
.page{padding-top:32px}
footer.wrap{margin-top:40px}
.page{padding-top:calc(var(--st) + 100px)}
@media(min-width:700px){.page{padding-top:calc(var(--st) + 130px)}}

/* ---------- minimal: a step counter, fields straight on the page ---------- */
.step-indicator{display:block;height:auto;margin:0 0 10px;padding:0}
.step-indicator .step-dot{display:none}
.step-indicator::before{content:attr(data-step);font-size:13px;font-weight:700;color:var(--ink3);font-variant-numeric:tabular-nums;letter-spacing:.04em}
.page{max-width:420px}
.step-title,.page-title{font-size:clamp(30px,8vw,38px);margin-bottom:26px}
.form-card{background:none;box-shadow:none;border-radius:0;padding:0}
.field input,.phone-wrap{background:#fff}
.login-link,.register-link{margin-top:26px}
.au-foot{display:flex;flex-wrap:wrap;justify-content:center;gap:6px 18px;padding:28px 20px calc(var(--sb) + 28px);font-size:12.5px;color:var(--ink3)}
.au-foot a:hover{color:var(--ink)}
@media(min-width:700px){.form-card{padding:0}}
.step-indicator{display:none!important}

/* sign-in pages: a plain white bar fixed to the top, no pill */
.hdr.flat{background:#fff;color:var(--ink);box-shadow:0 1px 0 var(--line)}
.hdr.flat .hdr-in{max-width:1200px;margin:0 auto;height:60px;padding:0 var(--gut);border-radius:0;background:none;box-shadow:none}
.page{padding-top:calc(var(--st) + 92px)}
@media(min-width:700px){.page{padding-top:calc(var(--st) + 116px)}}

/* =================== the sign-in / join pages open as a popup =================== */
html{background:var(--ink)}
body{background:var(--ink);min-height:100svh}
.au-backdrop{position:fixed;inset:0;overflow:hidden;pointer-events:none}
.au-bg-road{position:absolute;width:150vw;max-width:1100px;aspect-ratio:1;right:-75vw;top:-75vw;transform:rotate(68deg);opacity:.5}
@media(min-width:760px){.au-bg-road{right:-550px;top:-550px}}
.au-bg-road circle{fill:none}
.au-bg-road .r{stroke:var(--lime);stroke-width:13;stroke-dasharray:37 100}
.au-bg-road .m{stroke:#fff}
.au-bg-road .e{stroke:var(--ink);stroke-width:.45;opacity:.55}
.au-bg-road .l{stroke:var(--ink);stroke-width:.7;stroke-dasharray:2.4 2.6;opacity:.8;animation:lane 1.6s linear infinite}
.au-bg-logo{position:absolute;left:20px;top:calc(var(--st) + 20px);font-family:var(--wordmark);font-weight:800;font-size:22px;letter-spacing:-.05em;color:#fff;opacity:.5;display:flex;align-items:baseline}
.au-bg-logo i{width:7px;height:7px;border-radius:50%;background:var(--lime);margin-left:2px}

.au{position:fixed;z-index:10;left:0;right:0;bottom:0;top:calc(var(--st) + 64px);display:block;min-height:0;background:var(--paper);border-radius:28px 28px 0 0;box-shadow:0 -20px 60px -20px rgba(0,0,0,.6);overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;animation:auUp .7s cubic-bezier(.32,.72,0,1) both}
@keyframes auUp{from{transform:translateY(100%)}}
.au-main{position:relative;display:block;min-height:100%}
.au .page{padding:56px 20px 8px;max-width:440px}
.au-x{position:sticky;z-index:5;top:14px;float:right;margin:14px 14px -54px 0;width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:#fff;color:var(--ink);box-shadow:0 0 0 1px var(--line),0 6px 18px -6px rgba(0,0,0,.35);transition:transform .35s var(--spring)}
.au-x:active{transform:scale(.92)}
.au-x svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round}
.au .au-foot{padding-top:18px}
.au .step-title,.au .page-title{padding-right:40px}

@media(min-width:760px){
  .au{top:50%;left:50%;right:auto;bottom:auto;width:480px;max-height:min(90vh,860px);border-radius:28px;transform:translate(-50%,-50%);animation:auIn .6s var(--ease) both;box-shadow:0 40px 100px -30px rgba(0,0,0,.8)}
  @keyframes auIn{from{opacity:0;transform:translate(-50%,-46%) scale(.97)}}
  .au .page{padding:52px 36px 8px;max-width:none}
  .au-bg-logo{left:40px;top:32px}
}

/* phones: everything in the popup fits on one screen, no scrolling */
@media(max-width:759px){
  .au{top:calc(var(--st) + 14px)}
  .au-bg-logo{display:none}
  .au .page{padding:20px 18px 0}
  .au-x{top:10px;margin:10px 10px -50px 0;width:36px;height:36px}
  .au .step-title,.au .page-title{font-size:26px;margin-bottom:14px;padding-top:6px}
  .au .field{margin-bottom:10px}
  .au .field label{font-size:11.5px;margin-bottom:4px}
  .au .field input,.au .field select,.au .phone-wrap{height:48px}
  .au .plate-wrap{height:50px}
  .au .plate-input{font-size:24px!important}
  .au .btn-next,.au .btn-submit,.au .btn-login{height:50px;margin-top:4px}
  .au .btn-back{height:38px;margin-top:2px}
  .au .login-link,.au .register-link{margin-top:12px}
  .au .au-foot{padding:12px 18px calc(var(--sb) + 14px);font-size:11.5px}
  .au .city-note{margin-top:4px!important}
  .au .payment-card{padding:20px 18px 18px}
  .au .payment-brand{margin-bottom:14px}
  .au .plan-toggle{margin-bottom:14px}
  .au .plan-btn{height:38px}
  .au .payment-price{font-size:58px}
  .au .payment-note{margin-bottom:12px}
  .au #payDetails{padding:10px 12px!important;margin-bottom:12px!important}
  .au #payDetails span{font-size:12px!important}
  .au .payment-terms{margin-bottom:12px!important;font-size:12px}
}
@media(max-width:759px) and (max-height:760px){
  .au .step-title,.au .page-title{font-size:23px;margin-bottom:10px}
  .au .field{margin-bottom:8px}
  .au .field input,.au .field select,.au .phone-wrap{height:44px;font-size:15px}
  .au .plate-wrap{height:46px}
  .au .btn-next,.au .btn-submit,.au .btn-login{height:46px}
  .au .au-foot{display:none}
  .au .payment-price{font-size:48px}
  .au #payDetails > div:first-child{margin-bottom:4px!important}
}

/* phones: the main button always sits at the same place, at the bottom of the popup */
@media(max-width:759px){
  .au-main{display:flex;flex-direction:column;min-height:100%}
  .au .page{flex:1;display:flex;flex-direction:column;width:100%}
  .au .step.active{flex:1;display:flex;flex-direction:column}
  .au .form-card{flex:1;display:flex;flex-direction:column}
  .au .form-card .btn-next,.au .form-card .btn-submit,.au .form-card .btn-login{margin-top:auto}
  .au .form-card .field:last-of-type{margin-bottom:16px}
  .au .payment-card{flex:1;display:flex;flex-direction:column}
  .au .payment-card .payment-btn{margin-top:auto}
  .au .login-link,.au .register-link{margin-top:10px;margin-bottom:6px}
}
@media(max-width:759px){
  .au .btn-back,.au .login-link,.au .register-link{height:42px;margin:6px 0 0;display:flex;align-items:center;justify-content:center}
  .au #step3{padding-bottom:48px}
}
@media(max-width:759px) and (max-height:760px){.au .form-card .field:last-of-type{margin-bottom:8px}}
@media(max-width:759px){.au #step3{padding-bottom:30px}}
@media(max-width:759px) and (max-height:760px){.au{top:calc(var(--st) + 8px)}.au .step-title,.au .page-title{padding-top:2px}}
@media(max-width:759px) and (max-height:760px){
  .au .field input,.au .field select,.au .phone-wrap{height:42px}
  .au .field{margin-bottom:7px}
  .au .payment-price{font-size:44px}
}
@media(max-width:759px){.au-x{position:absolute;float:none;top:10px;right:10px;margin:0}}
@media(max-width:759px) and (max-height:760px){.au .page{padding-top:12px}.au #step3{padding-bottom:24px}}

/* phones, sign in: a small sheet exactly as tall as its content, the same 20px on every side */
@media(max-width:759px){
  body:has(.btn-login) .au{top:auto;max-height:calc(100svh - var(--st) - 16px)}
  body:has(.btn-login) .au-main{display:block;min-height:0}
  body:has(.btn-login) .au .page{flex:none;display:block;padding:20px 20px 0}
  body:has(.btn-login) .au .page-title{font-size:26px;line-height:36px;padding:0 48px 0 0;margin:0 0 16px}
  body:has(.btn-login) .au-x{top:20px;right:20px;width:36px;height:36px}
  body:has(.btn-login) .au .form-card{display:block}
  body:has(.btn-login) .au .form-card .field:last-of-type{margin-bottom:0}
  body:has(.btn-login) .au .form-card .btn-login{margin-top:20px}
  body:has(.btn-login) .au .register-link{height:auto;margin:16px 0 0;padding-bottom:calc(var(--sb) + 20px)}
  body:has(.btn-login) .au .au-foot{display:none}
}
@media(max-width:759px){.au .login-link,.au .register-link{gap:.3em}}

/* phones, join: every step stacks in one grid cell, so the sheet takes the tallest step's height and keeps it;
   same 20px edges as sign in, the button sits at the same spot on every step */
@media(max-width:759px){
  body:has(#regPage) .au{top:auto;max-height:calc(100svh - var(--st) - 16px)}
  body:has(#regPage) .au-main{display:block;min-height:0}
  body:has(#regPage) .au-x{top:20px;right:20px;width:36px;height:36px}
  body:has(#regPage) .au-foot{display:none}
  .au #regPage{display:grid;flex:none;padding:20px 20px calc(var(--sb) + 20px)}
  .au #regPage > .step{display:flex!important;flex-direction:column;grid-area:1/1;visibility:hidden;padding:0}
  .au #regPage > .step.active{visibility:visible}
  .au #regPage .step-title{font-size:26px;line-height:36px;padding:0 48px 0 0;margin:0 0 16px}
  .au #regPage .form-card,.au #regPage .payment-card{flex:1;display:flex;flex-direction:column}
  .au #regPage .form-card .field:last-of-type{margin-bottom:0}
  .au #regPage .form-card .btn-next,.au #regPage .form-card .btn-submit{margin-top:auto;position:relative;top:0}
  .au #regPage .form-card > :nth-last-child(2):not(.btn-submit){margin-bottom:20px}
  .au #regPage .payment-card .payment-btn{margin-top:auto}
  .au #regPage .login-link,.au #regPage .btn-back{height:21px;margin:16px 0 0;line-height:21px}
  .au #regPage #step3{padding-bottom:19px}
}
