@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@500;600&display=swap');
/* Newsletter popup: swoosh in from top, slide back up on close */
.modal:not([hidden]){animation:mSwBg .35s ease-out both}
.modal:not([hidden]) .modal-box{animation:mSwIn .66s cubic-bezier(.2,.9,.25,1) both;will-change:transform,opacity,filter}
.modal .modal-box::after{content:"";position:absolute;left:8%;right:8%;bottom:100%;height:120px;pointer-events:none;background:linear-gradient(to top,rgba(212,175,55,.45),rgba(212,175,55,0));filter:blur(10px);opacity:0}
.modal:not([hidden]) .modal-box::after{animation:mSwTrail .66s ease-out both}
.modal.is-closing{animation:mSwBgOut .42s ease-in both}
.modal.is-closing .modal-box{animation:mSwOut .42s cubic-bezier(.55,0,.75,.2) both}
.modal.is-closing .modal-box::after{animation:none;opacity:0}
@keyframes mSwBg{from{opacity:0}to{opacity:1}}
@keyframes mSwBgOut{from{opacity:1}to{opacity:0}}
@keyframes mSwIn{
 0%{transform:translateY(-110vh) scaleY(1.06);opacity:0;filter:blur(8px)}
 55%{transform:translateY(14px) scaleY(.98);opacity:1;filter:blur(1px)}
 75%{transform:translateY(-6px) scaleY(1.01);filter:blur(0)}
 90%{transform:translateY(2px)}
 100%{transform:none;opacity:1;filter:none}}
@keyframes mSwOut{
 0%{transform:none;opacity:1;filter:none}
 20%{transform:translateY(10px)}
 100%{transform:translateY(-110vh);opacity:0;filter:blur(6px)}}
@keyframes mSwTrail{0%{opacity:0}30%{opacity:.9}100%{opacity:0}}
@media (prefers-reduced-motion:reduce){
 .modal:not([hidden]),.modal:not([hidden]) .modal-box{animation:mSwBg .25s ease-out both}
 .modal.is-closing,.modal.is-closing .modal-box{animation:mSwBgOut .2s ease-in both}
 .modal .modal-box::after{display:none}}

/* v2: 'or sign in here' line under the popup form */
.modal .m-signin{margin:12px 0 0;font-size:.82rem;color:#a99a7a;text-align:center}
.modal .m-signin a{color:#d4af37;text-decoration:underline;text-underline-offset:3px;font-weight:600}
.modal .m-signin a:hover,.modal .m-signin a:focus-visible{color:#f0d77a}

/* v6: single-colour "Join the Mob" headline above the popup title */
.modal .m-mob{margin:2px 0 6px;font-family:Anton,sans-serif;font-weight:400;font-size:clamp(1.35rem,6vw,1.7rem);line-height:1.1;letter-spacing:.02em;text-transform:uppercase;color:#fff;text-align:center}

/* v7: logo nudged up; discount line as a handwritten "whisper" */
.modal .modal-box .logo-img{margin-top:-30px;margin-bottom:12px;position:relative;z-index:0}
.modal .modal-box .x{z-index:2}
.modal .m-offer,.mob-hero p.m-offer{font-family:Caveat,'Segoe Print',cursive!important;font-style:normal;font-weight:600!important;font-size:1.3rem!important;line-height:1.2!important;color:#d4af37!important;letter-spacing:.01em;transform:rotate(-.6deg);transform-origin:center;text-shadow:0 0 12px rgba(212,175,55,.18)}
.modal .m-offer span{font-family:Inter,system-ui,sans-serif;transform:rotate(.6deg);letter-spacing:0;text-shadow:none}
.modal .m-offer{margin-top:10px!important}
.modal .m-offer span{margin-top:9px!important}

/* v13: two-step signup (email -> password -> welcome). Each step is its own .modal-box inside #modal;
   the current box swooshes out (up) and the next swooshes in via the same mSwIn keyframes above. */
.modal{overflow-y:auto}
.modal .modal-box:focus{outline:none}
.modal:not([hidden]) .modal-box.sw-out{animation:mSwOut .42s cubic-bezier(.55,0,.75,.2) both}
.modal:not([hidden]) .modal-box.sw-out::after{animation:none;opacity:0}
.modal .m-as{margin:0 0 14px;font-size:.84rem;color:#cfc4a8;line-height:1.45;word-break:break-word}
.modal .m-as #mEmail2{color:#fff;font-weight:600}
.modal .m-tick{color:#d4af37;font-weight:700}
.modal .m-change,.modal .m-skip{background:none;border:0;padding:0;font:inherit;color:#d4af37;text-decoration:underline;text-underline-offset:3px;font-weight:600;cursor:pointer}
.modal .m-change:hover,.modal .m-change:focus-visible,.modal .m-skip:hover,.modal .m-skip:focus-visible{color:#f0d77a}
.modal .m-change:focus-visible,.modal .m-skip:focus-visible,.modal .m-eye:focus-visible{outline:2px solid #d4af37;outline-offset:3px}
.modal .m-pw{position:relative;display:flex}
.modal .m-pw input{flex:1;width:100%;min-width:0;padding-right:72px}
.modal .m-eye{position:absolute;right:6px;top:50%;transform:translateY(-50%);background:none;border:0;padding:8px 10px;font:600 .74rem/1 Inter,system-ui,sans-serif;letter-spacing:.08em;text-transform:uppercase;color:#a99a7a;cursor:pointer}
.modal .m-eye:hover{color:#d4af37}
.modal .m-hint{margin:-6px 0 0;font-size:.72rem;color:#a99a7a;text-align:left}
.modal .m-form2 input[aria-invalid=true]{border-color:#c9707f}
.modal .note{color:#f0d77a}
.modal .note a{color:#d4af37;text-decoration:underline;text-underline-offset:3px;font-weight:600}
.modal .m-done{margin:0 0 20px;font-size:.88rem;color:#cfc4a8;line-height:1.5}
.modal .m-form3{margin-top:4px}
@media (prefers-reduced-motion:reduce){
 .modal:not([hidden]) .modal-box.sw-out{animation:none}}
.modal .m-form2 .m-pw+input{margin-top:0}
.modal #mStep2 .m-mob{margin-bottom:14px}
.modal #mStep2 .m-as{margin:4px 0 0}
.modal .m-as-top{display:block;font-size:.76rem;color:#a99a7a}
.modal .m-as-mail{display:block;margin-top:2px;overflow-wrap:break-word}
/* step 3: "written in blood" line (base; restyled below in the v15 Caveat block) */
.modal .m-blood{position:relative;display:inline-block;max-width:100%;margin:10px 0 22px;padding:0 2px;font-family:Caveat,'Segoe Print',cursive;font-weight:400;font-size:clamp(1.2rem,5.6vw,1.5rem);line-height:1.3;letter-spacing:.04em;color:#b10000;transform:rotate(-1.5deg);text-wrap:balance;
 background:linear-gradient(176deg,#d41515 0%,#b10000 38%,#8a0303 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;
 filter:drop-shadow(0 1px 0 #3d0000) drop-shadow(0 2px 4px rgba(120,0,0,.55))}
.modal #mStep3 .m-mob{margin-bottom:0}
.modal .modal-box{min-width:0}

/* v15: white input boxes in the popup (step 1 email, step 2 password + confirm). Honeypot stays off-screen. */
.modal .modal-box input[type=email],.modal .modal-box input[type=password],.modal .modal-box input[type=text]:not([name=website]){
 background:#fff;color:#111;caret-color:#111;-webkit-text-fill-color:#111;border:1px solid #d9cfe0;border-radius:0;padding:14px 16px;font-size:1rem;box-shadow:inset 0 1px 2px rgba(0,0,0,.06);transition:border-color .15s,box-shadow .15s}
.modal .modal-box input[type=email]::placeholder,.modal .modal-box input[type=password]::placeholder,.modal .modal-box input[type=text]:not([name=website])::placeholder{color:#6f6a73;-webkit-text-fill-color:#6f6a73;opacity:1}
.modal .modal-box input[type=email]:focus,.modal .modal-box input[type=password]:focus,.modal .modal-box input[type=text]:not([name=website]):focus{outline:0;border-color:#8e3a7e;box-shadow:0 0 0 2px #fff,0 0 0 4px rgba(212,175,55,.85)}
.modal .modal-box input[aria-invalid=true]{border-color:#b3261e!important;box-shadow:0 0 0 2px #fff,0 0 0 4px rgba(179,38,30,.55)!important}
/* Chrome/Safari autofill: keep the box white + text dark (inset shadow paints over the yellow/blue fill) */
.modal .modal-box input:-webkit-autofill,.modal .modal-box input:-webkit-autofill:hover,.modal .modal-box input:-webkit-autofill:focus{-webkit-text-fill-color:#111!important;caret-color:#111;box-shadow:inset 0 0 0 1000px #fff!important;transition:background-color 9999s ease-out 0s}
.modal .modal-box input:-webkit-autofill:focus{box-shadow:inset 0 0 0 1000px #fff,0 0 0 2px #fff,0 0 0 4px rgba(212,175,55,.85)!important}
.modal .modal-box input:autofill{background:#fff!important;color:#111!important}
/* SHOW/HIDE toggle sits inside the white password box */
.modal .m-eye{color:#5a1f52}
.modal .m-eye:hover,.modal .m-eye:focus-visible{color:#8e3a7e}
.modal .m-eye:focus-visible{outline:2px solid #8e3a7e;outline-offset:1px}
.modal .modal-box .m-pw input#mPw{padding-right:76px}
.modal #mNote2:empty{min-height:0;margin:0}
/* v15: step 3 line now matches step 1's handwritten Caveat line, in deep blood red with a wet highlight (no drips/splatter) */
.modal .m-blood{font-family:Caveat,'Segoe Print',cursive;font-weight:600;font-size:1.2rem;line-height:1.2;letter-spacing:.01em;text-transform:none;transform:rotate(-.6deg);margin:10px 0 20px;padding:0 2px 2px;
 background:linear-gradient(178deg,#d42a2a 0%,#b00808 22%,#9e0000 45%,#6b0000 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:#9e0000;
 filter:drop-shadow(0 0 .5px rgba(255,120,120,.35)) drop-shadow(0 1px 1px rgba(40,0,0,.9)) drop-shadow(0 0 8px rgba(158,0,0,.25))}
/* v18: no arrow icon on step 3 CLOSE button (arrow is a background layer sized by --asz); label stays centered */
html body:not(#_b) .modal #mDone{--asz:0px!important;justify-content:center}
