/* The screens in front of Sellhelm: the lock and the activation.
   Dark, glassy, and quiet - a premium tool should feel like one before the first click.
   Everything here is scoped to body.gated, so nothing leaks into the panel. */

body.gated{background:var(--pc-060913,#060913);color:var(--pc-e8ecf8,#e8ecf8);-webkit-font-smoothing:antialiased}
body.gated .top,body.gated #banner{display:none}
body.gated main#page{max-width:none;margin:0;padding:0}
body.gated .toast{background:var(--pc-1a2138,#1a2138);color:var(--pc-e8ecf8,#e8ecf8);border:1px solid rgba(255,255,255,.1)}

.gate-stage{position:relative;isolation:isolate;min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:36px 18px 28px;overflow:hidden;font-family:"Segoe UI Variable Display","Segoe UI Variable Text","Segoe UI",Inter,system-ui,-apple-system,sans-serif}

/* a soft glow directly behind the card, so it floats */
.gate-stage::before{content:"";position:absolute;left:50%;top:46%;width:min(760px,120vw);height:min(760px,120vw);transform:translate(-50%,-50%);z-index:-1;pointer-events:none;background:radial-gradient(closest-side,rgba(var(--pcr-96-110-255,96,110,255),.16),transparent 72%)}
/* a slow drift of colour behind the card, and a faint grid that fades out toward the edges */
.gate-aurora{position:absolute;inset:-22%;z-index:-2;pointer-events:none;
  background:
    radial-gradient(36% 42% at 16% 20%,rgba(var(--pcr-61-123-255,61,123,255),.40),transparent 70%),
    radial-gradient(34% 40% at 86% 80%,rgba(var(--pcr-122-60-245,122,60,245),.36),transparent 70%),
    radial-gradient(26% 30% at 72% 10%,rgba(45,212,191,.13),transparent 70%);
  filter:blur(24px);animation:gate-drift 24s ease-in-out infinite alternate}
.gate-grid{position:absolute;inset:0;z-index:-1;pointer-events:none;
  background-image:linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px);
  background-size:56px 56px;
  -webkit-mask-image:radial-gradient(70% 60% at 50% 45%,#000 20%,transparent 100%);mask-image:radial-gradient(70% 60% at 50% 45%,#000 20%,transparent 100%)}
@keyframes gate-drift{from{transform:translate3d(-2%,-1%,0) scale(1)}to{transform:translate3d(2%,2%,0) scale(1.09)}}

.gate-card{width:100%;max-width:428px;padding:36px 32px 30px;border-radius:26px;
  background:linear-gradient(180deg,rgba(var(--pcr-24-31-54,24,31,54),.84),rgba(var(--pcr-13-18-33,13,18,33),.88));
  -webkit-backdrop-filter:blur(24px) saturate(150%);backdrop-filter:blur(24px) saturate(150%);
  border:1px solid rgba(255,255,255,.09);
  box-shadow:0 44px 100px -34px rgba(0,0,0,.85),0 0 0 1px rgba(0,0,0,.45),inset 0 1px 0 rgba(255,255,255,.08);
  animation:gate-rise .65s cubic-bezier(.2,.8,.2,1) both}
.gate-card.wide{max-width:568px}
@keyframes gate-rise{from{opacity:0;transform:translateY(16px) scale(.985)}to{opacity:1;transform:none}}
.gate-card.shake{animation:gate-shake .44s cubic-bezier(.36,.07,.19,.97) both}
@keyframes gate-shake{10%,90%{transform:translateX(-2px)}20%,80%{transform:translateX(4px)}30%,50%,70%{transform:translateX(-7px)}40%,60%{transform:translateX(7px)}}

.gate-brand{display:flex;flex-direction:column;align-items:center;gap:8px;margin-bottom:24px;text-align:center}
.gate-mark{width:62px;height:62px;filter:drop-shadow(0 12px 30px rgba(var(--pcr-96-84-255,96,84,255),.6))}
.gate-word{font-size:27px;line-height:1;font-weight:600;letter-spacing:-.025em;color:#fff}
.gate-word b,.wordmark b{font-weight:800;background:linear-gradient(120deg,var(--pc-8db2ff,#8db2ff) 10%,var(--pc-b59bff,#b59bff) 90%);-webkit-background-clip:text;background-clip:text;color:transparent}
.gate-tag{font-size:12.5px;color:var(--pc-8f9dbb,#8f9dbb);letter-spacing:.02em}

.gate-icon{width:46px;height:46px;margin:0 auto 14px;border-radius:50%;display:grid;place-items:center;color:var(--pc-b9c8ff,#b9c8ff);
  background:radial-gradient(circle at 30% 25%,rgba(var(--pcr-140-165-255,140,165,255),.28),rgba(var(--pcr-110-130-255,110,130,255),.08));border:1px solid rgba(var(--pcr-150-170-255,150,170,255),.28);
  box-shadow:0 0 0 6px rgba(var(--pcr-120-140-255,120,140,255),.06)}
.gate-icon svg{width:22px;height:22px}
.gate-card h1{margin:0 0 6px;font-size:20px;font-weight:650;letter-spacing:-.01em;color:#fff;text-align:center}
.gate-lead{margin:0 0 22px;color:var(--pc-9aa8c6,#9aa8c6);font-size:13.5px;line-height:1.55;text-align:center}

.gate-card label{display:block;margin:0 0 7px;font-size:11px;font-weight:650;letter-spacing:.09em;text-transform:uppercase;color:var(--pc-7f8fb3,#7f8fb3)}
.gate-field{position:relative}
.gate-card input,.gate-card textarea{width:100%;background:rgba(var(--pcr-5-8-18,5,8,18),.72);border:1px solid rgba(255,255,255,.12);color:#fff;border-radius:13px;padding:14px 16px;font-size:16px;transition:border-color .15s,box-shadow .15s,background .15s}
.gate-card input::placeholder,.gate-card textarea::placeholder{color:var(--pc-4e5b7a,#4e5b7a)}
.gate-card input:focus,.gate-card textarea:focus{outline:none;border-color:var(--pc-6d8dff,#6d8dff);box-shadow:0 0 0 4px rgba(var(--pcr-88-118-255,88,118,255),.24);background:rgba(var(--pcr-5-8-18,5,8,18),.9)}
.gate-field input{padding-right:50px;letter-spacing:.07em}
.gate-card textarea{min-height:96px;font:500 12.5px/1.5 ui-monospace,"Cascadia Mono",Consolas,monospace;letter-spacing:0;resize:vertical}
.gate-eye{position:absolute;right:6px;top:50%;transform:translateY(-50%);width:38px;height:38px;display:grid;place-items:center;padding:0;background:none;border:0;border-radius:10px;color:var(--pc-7f8fb3,#7f8fb3);cursor:pointer}
body.gated .gate-eye:hover{color:#fff;background:rgba(255,255,255,.07)}
.gate-eye svg{width:19px;height:19px}

.gate-go{width:100%;margin-top:16px;padding:14px 18px;border:0;border-radius:13px;font-size:15px;font-weight:650;letter-spacing:.01em;color:#fff;cursor:pointer;
  display:flex;align-items:center;justify-content:center;gap:9px;
  background:linear-gradient(135deg,var(--pc-3d7bff,#3d7bff) 0%,var(--pc-7a3cf5,#7a3cf5) 100%);
  box-shadow:0 14px 34px -12px rgba(var(--pcr-92-82-255,92,82,255),.8),inset 0 1px 0 rgba(255,255,255,.25);
  transition:transform .15s,box-shadow .15s,filter .15s}
body.gated .gate-go:hover:not(:disabled){background:linear-gradient(135deg,var(--pc-3d7bff,#3d7bff) 0%,var(--pc-7a3cf5,#7a3cf5) 100%);transform:translateY(-1px);filter:brightness(1.09);box-shadow:0 18px 40px -12px rgba(var(--pcr-92-82-255,92,82,255),.9),inset 0 1px 0 rgba(255,255,255,.3)}
body.gated .gate-go:active:not(:disabled){transform:translateY(0)}
.gate-go:disabled{opacity:.55;cursor:not-allowed}
.gate-go svg{width:17px;height:17px}
.gate-go .spin{margin:0}
.gate-error{min-height:22px;margin:14px 0 0;font-size:13px;line-height:1.45;text-align:center;color:#ff9a95}
.gate-error:empty{min-height:0;margin:0}

.gate-foot{display:flex;align-items:center;gap:9px;margin-top:22px;color:var(--pc-6a7899,#6a7899);font-size:12px;text-align:center}
.gate-live{width:7px;height:7px;border-radius:50%;background:#34d399;box-shadow:0 0 0 0 rgba(52,211,153,.55);animation:gate-pulse 2.6s ease-out infinite;flex:none}
@keyframes gate-pulse{0%{box-shadow:0 0 0 0 rgba(52,211,153,.55)}70%,100%{box-shadow:0 0 0 9px rgba(52,211,153,0)}}
.gate-ver{color:var(--pc-55627f,#55627f)}

/* ---- activation: three steps down a line ---- */
.gate-steps{list-style:none;margin:0 0 6px;padding:0}
.gate-step{position:relative;display:grid;grid-template-columns:32px 1fr;gap:14px;padding-bottom:22px}
.gate-step:not(:last-child)::before{content:"";position:absolute;left:15px;top:36px;bottom:4px;width:2px;background:linear-gradient(rgba(var(--pcr-128-146-255,128,146,255),.55),rgba(var(--pcr-128-146-255,128,146,255),.06))}
.gate-num{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;font-size:13px;font-weight:750;color:#fff;background:linear-gradient(135deg,var(--pc-3d7bff,#3d7bff),var(--pc-7a3cf5,#7a3cf5));box-shadow:0 8px 20px -8px rgba(var(--pcr-92-82-255,92,82,255),.9)}
.gate-step h2{margin:5px 0 4px;font-size:14.5px;font-weight:650;color:#fff;letter-spacing:-.005em}
.gate-step p{margin:0 0 10px;color:var(--pc-93a1c0,#93a1c0);font-size:13px;line-height:1.5}
.gate-step p b{color:var(--pc-dfe6ff,#dfe6ff);font-weight:600}
.gate-id{display:flex;align-items:center;gap:10px;padding:9px 9px 9px 15px;border-radius:13px;background:rgba(var(--pcr-5-8-18,5,8,18),.72);border:1px dashed rgba(var(--pcr-140-162-255,140,162,255),.42)}
.gate-id code{flex:1;min-width:0;background:none;padding:0;border-radius:0;font:650 clamp(14px,4.6vw,18px)/1.25 ui-monospace,"Cascadia Mono",Consolas,monospace;letter-spacing:.07em;color:#fff;user-select:all;overflow-wrap:anywhere}
.gate-copy{flex:none;display:flex;align-items:center;gap:6px;padding:8px 12px;border-radius:9px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.06);color:var(--pc-dfe6ff,#dfe6ff);font-size:12.5px;font-weight:600;cursor:pointer;transition:background .15s,border-color .15s}
body.gated .gate-copy:hover{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.26)}
.gate-copy svg{width:15px;height:15px}
.gate-copy.done{color:#34d399;border-color:rgba(52,211,153,.5)}
.gate-note{margin:4px 0 0;padding:12px 14px;border-radius:12px;background:rgba(255,190,90,.08);border:1px solid rgba(255,190,90,.25);color:#f3cf94;font-size:12.5px;line-height:1.5}
.gate-fine{margin:16px 0 0;color:var(--pc-68779a,#68779a);font-size:12px;line-height:1.55;text-align:center}

.gate a:focus-visible,.gate button:focus-visible{outline:2px solid var(--pc-9db6ff,#9db6ff);outline-offset:2px}

@media (max-width:480px){
  .gate-stage{padding:22px 12px 18px;justify-content:flex-start;padding-top:8vh}
  .gate-card{padding:28px 20px 24px;border-radius:22px}
}
@media (prefers-reduced-motion:reduce){
  .gate-aurora,.gate-card,.gate-live,.gate-card.shake{animation:none}
  .gate-go,.gate-card input{transition:none}
}
@media (forced-colors:active){
  .gate-card{border:1px solid CanvasText;background:Canvas}
  .gate-go{border:1px solid ButtonText}
}
