/*
 * JewelAxis Cloud ERP Suite gateway - jewelaxis.in/clouderpsuite.
 * Same visual language as the Cloud ERP gateway: JewelAxis navy behind, an ivory
 * card in front, gold only for what the visitor should notice. One stylesheet for
 * both pages; the sign-up page adds .wide for its second column.
 */
:root{
  --navy:#182B50;--royal:#233C78;--gold:#C9A227;--ivory:#FCFBF8;--ink:#2d3748;--muted:#526071;
  --field:#CBD2D9;--success:#12A978;--danger:#D94B5B;
  --font:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,sans-serif;
}
*{margin:0;padding:0;box-sizing:border-box}
html,body{overflow-x:hidden}
body{min-height:100vh;min-height:100dvh;background:var(--navy);font-family:var(--font);color:var(--ink);
     display:flex;align-items:center;justify-content:center;padding:16px;position:relative}
body::before{content:'';position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(circle at 20% 15%,rgba(201,162,39,.06) 0%,transparent 45%),
             radial-gradient(circle at 85% 85%,rgba(255,255,255,.03) 0%,transparent 45%)}
[hidden]{display:none!important}

/* ---- the two-column shell -------------------------------------------- */
.shell{position:relative;z-index:1;width:100%;max-width:1100px;display:grid;grid-template-columns:1fr 1fr;
  border-radius:18px;box-shadow:0 30px 80px rgba(0,0,0,.3);animation:up .8s ease}
.shell.wide{max-width:1180px;grid-template-columns:minmax(0,7fr) minmax(0,9fr)}
@keyframes up{from{opacity:0;transform:translateY(50px)}to{opacity:1;transform:none}}
.shell>section{min-width:0}

/* ---- brand panel ------------------------------------------------------ */
.brand{background:var(--navy);padding:40px 42px;display:flex;flex-direction:column;justify-content:center;
  position:relative;overflow:hidden;border-radius:18px 0 0 18px}
.brand::after{content:'';position:absolute;inset:0;background-image:radial-gradient(rgba(201,162,39,.35) 1px,transparent 1px);
  background-size:26px 26px;opacity:.05;pointer-events:none}
.brand>*{position:relative;z-index:2}
/* The emblem is artwork now, not a 62px glyph: height follows the image so a
   non-square file can never be squashed. max-width keeps it inside the brand
   panel's padding on a narrow screen, where this panel stays visible as a
   banner rather than being hidden as it is on /clouderp/. */
.mark{width:170px;max-width:62%;height:auto;margin:0 auto 24px}
.mark img{width:100%;height:auto;display:block}
.mark svg{width:100%;height:100%;display:block}
/* The wordmark above the form, matching /clouderp/'s .logo. */
.logo{width:145px;max-width:55%;height:auto;display:block;margin-bottom:16px}
.brand h2{font-size:28px;line-height:1.2;font-weight:700;letter-spacing:.3px;color:#fff;margin-bottom:10px}
.tag{font-size:12px;color:var(--gold);letter-spacing:1.4px;text-transform:uppercase;font-weight:600;margin-bottom:24px}
/* Centred header, ranged-left list below - see the note in patch_center.php. */
.brand h2,.tag{text-align:center}
.kit{list-style:none;display:grid;gap:14px;margin-bottom:22px}
.kit li{display:flex;gap:12px;align-items:flex-start}
.kit svg{width:20px;height:20px;flex:0 0 20px;margin-top:2px;color:var(--gold)}
.kit b{display:block;font-size:14px;color:#fff;font-weight:650;letter-spacing:.2px}
.kit span{display:block;font-size:13px;line-height:1.5;color:rgba(255,255,255,.62);margin-top:2px}
.line{font-size:13.5px;line-height:1.6;color:rgba(255,255,255,.72);border-top:1px solid rgba(255,255,255,.12);padding-top:18px}

/* ---- page column ------------------------------------------------------ */
.page{background:var(--ivory);padding:44px 44px 30px;display:flex;flex-direction:column;justify-content:center;
  border-radius:0 18px 18px 0}
h1{font-size:27px;font-weight:700;color:var(--navy);margin-bottom:6px;text-wrap:balance}
.sub{font-size:14px;color:var(--muted);letter-spacing:.2px;margin-bottom:20px;line-height:1.55}
.hint{font-size:12.5px;color:var(--muted);margin-top:12px;line-height:1.55}

/* ---- the free-trial route, first thing on the sign-in page ------------ */
.route{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;
  padding:14px 18px;margin-bottom:24px;border:1.5px solid rgba(201,162,39,.45);border-radius:14px;
  background:linear-gradient(90deg,rgba(201,162,39,.10),rgba(201,162,39,.04))}
.route-text b{display:block;font-size:14px;color:var(--navy)}
.route-text span{display:block;font-size:12.5px;color:var(--muted);line-height:1.5;margin-top:2px}
.cta{display:inline-flex;align-items:center;gap:7px;padding:10px 18px;border-radius:999px;border:1.5px solid var(--gold);
  background:var(--gold);color:#fff;font:700 13.5px var(--font);letter-spacing:.2px;text-decoration:none;white-space:nowrap;
  transition:background .2s,color .2s,transform .15s}
.cta svg{width:15px;height:15px}
.cta:hover{background:#b8931f;border-color:#b8931f;transform:translateY(-1px)}
.cta:focus-visible{outline:2px solid var(--navy);outline-offset:2px}

/* ---- forms ------------------------------------------------------------ */
label{display:block;font-size:13px;font-weight:600;letter-spacing:.3px;color:#4a5568;margin:14px 0 6px}
.opt{font-weight:500;color:#96a1ad;letter-spacing:0}
input[type=text],input[type=password],input[type=tel],input[type=email],textarea{
  width:100%;border-radius:10px;border:1.5px solid var(--field);font:15px var(--font);padding:10px 16px;background:#fff;
  color:var(--ink);transition:border-color .2s,box-shadow .2s}
input[type=text],input[type=password],input[type=tel],input[type=email]{height:42px}
textarea{resize:vertical;line-height:1.5;min-height:74px}
input::placeholder,textarea::placeholder{color:#a0aec0}
input:focus,textarea:focus{outline:none;border-color:var(--royal);box-shadow:0 0 0 4px rgba(35,60,120,.12)}
input.bad,textarea.bad{border-color:var(--danger);box-shadow:0 0 0 4px rgba(217,75,91,.10)}
input:-webkit-autofill{-webkit-text-fill-color:var(--ink);-webkit-box-shadow:0 0 0 1000px #fff inset;transition:background-color 9999s}
.grid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}
.fld{min-width:0}
.fld.wide{grid-column:1/-1}
.grid .fld label{margin-top:12px}
/* the honeypot: out of sight, out of the tab order, never read out */
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

.btn{width:100%;height:46px;margin-top:20px;background:var(--navy);border:0;border-radius:10px;color:#fff;
  font:600 16px var(--font);letter-spacing:.3px;cursor:pointer;box-shadow:0 10px 25px rgba(15,27,58,.3);
  display:flex;align-items:center;justify-content:center;gap:10px;text-decoration:none;transition:all .2s}
.btn:hover{background:var(--royal);transform:translateY(-1px);box-shadow:0 15px 35px rgba(24,43,80,.35)}
.btn:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.btn[disabled]{opacity:.65;cursor:wait;transform:none}

.tabs{display:flex;gap:8px;margin:2px 0 14px}
.tabs a{flex:1;text-align:center;padding:10px 8px;border-radius:10px;border:1.5px solid var(--field);background:#fff;
  text-decoration:none;color:var(--muted);font:600 13.5px var(--font)}
.tabs a.on{background:var(--navy);border-color:var(--navy);color:#fff}
.tabs a:focus-visible{outline:2px solid var(--gold);outline-offset:2px}

.msg{border-radius:12px;font-size:14px;line-height:1.45;padding:13px 18px;margin-bottom:18px;color:#fff}
.msg a{color:#fff;text-decoration:underline}
.err{background:var(--danger)}
.ok{background:var(--success)}

/* ---- plan cards ------------------------------------------------------- */
.plans{border:0;margin-top:20px}
.plans legend{font-size:13px;font-weight:600;letter-spacing:.3px;color:#4a5568;margin-bottom:8px;padding:0}
.plan{display:block;margin:0 0 10px;cursor:pointer}
.plan input{position:absolute;opacity:0;width:0;height:0}
.plan-in{display:block;border:1.5px solid var(--field);border-radius:12px;background:#fff;padding:13px 16px;
  transition:border-color .2s,box-shadow .2s,background .2s}
.plan input:checked+.plan-in{border-color:var(--navy);box-shadow:0 0 0 4px rgba(24,43,80,.10)}
.plan input:focus-visible+.plan-in{outline:2px solid var(--gold);outline-offset:2px}
.plan.hot .plan-in{border-color:rgba(201,162,39,.55)}
.plan.hot input:checked+.plan-in{border-color:var(--gold);box-shadow:0 0 0 4px rgba(201,162,39,.14)}
.plan b{display:flex;align-items:center;gap:8px;font-size:14.5px;color:var(--navy);font-weight:650}
.plan em{font:600 10.5px var(--font);font-style:normal;letter-spacing:.8px;text-transform:uppercase;color:#8a6d13;
  background:rgba(201,162,39,.18);border-radius:999px;padding:3px 9px}
.price{display:block;font-size:20px;font-weight:700;color:var(--navy);margin-top:5px;letter-spacing:.2px}
.price small{display:block;font-size:11.5px;font-weight:500;color:var(--muted);letter-spacing:.2px;margin-top:2px}
.plan s{font-size:13px;color:#96a1ad;margin-top:2px;display:inline-block}
.desc{display:block;font-size:12.5px;color:var(--muted);line-height:1.5;margin-top:6px}
.inc{display:block;font-size:11.5px;font-weight:600;letter-spacing:.4px;text-transform:uppercase;color:#8a6d13;margin-top:8px}
/* what a package covers - never inside .plan b, which the wizard reads the name out of */
.mods{display:block;font-size:12px;color:var(--muted);line-height:1.5;margin-top:6px;
  border-top:1px solid var(--field);padding-top:6px}
.mods .n{color:var(--navy);font-weight:650}

/* ---- the "request received" page -------------------------------------- */
.done{width:52px;height:52px;border-radius:50%;background:rgba(18,169,120,.12);color:var(--success);
  display:flex;align-items:center;justify-content:center;margin-bottom:16px}
.done svg{width:26px;height:26px;stroke-width:2.2}
.plain-kit{margin:18px 0 4px}
.plain-kit svg{color:var(--gold)}
.plain-kit b{color:var(--navy)}
.plain-kit span{color:var(--muted)}

/* ---- footers ---------------------------------------------------------- */
.foot{display:flex;flex-wrap:wrap;gap:8px 18px;justify-content:center;margin-top:16px;font-size:13px;
  color:var(--muted);text-align:center}
.foot a{color:var(--royal);font-weight:600;text-decoration:none}
.foot a:hover{text-decoration:underline}
.copy{margin-top:18px;text-align:center;color:var(--muted);font-size:12px}
.badges{display:flex;justify-content:center;gap:18px;margin-top:10px;flex-wrap:wrap}
.badges span{display:flex;align-items:center;gap:5px;font-size:11.5px;color:var(--muted);letter-spacing:.2px}
.badges svg{width:13px;height:13px}

/* ---- the stand-alone "just a moment" page ----------------------------- */
body.plain .note{background:var(--ivory);border-radius:18px;padding:36px 34px;max-width:440px;
  box-shadow:0 30px 80px rgba(0,0,0,.3);position:relative;z-index:1}
body.plain h1{font-size:23px;margin-bottom:10px}
body.plain p{font-size:14px;color:var(--muted);line-height:1.6}

/* ---- responsive ------------------------------------------------------- */
@media (max-width:992px){
  .shell,.shell.wide{grid-template-columns:minmax(0,1fr);max-width:560px}
  .brand{border-radius:18px 18px 0 0;padding:28px 28px 24px}
  .brand h2{font-size:23px}
  .mark{width:118px;height:auto;margin-bottom:14px}
  .logo{width:124px;margin-bottom:12px}
  .tag{margin-bottom:18px}
  .line{display:none}
  .page{border-radius:0 0 18px 18px;padding:32px 28px 26px}
}
@media (max-width:576px){
  body{padding:10px}
  .page{padding:26px 20px 22px}
  h1{font-size:22px}
  .grid{grid-template-columns:1fr}
  .route{padding:13px 15px}
  .cta{width:100%;justify-content:center}
  .badges{gap:12px}
}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

/* ======================================================================
   The five-step trial wizard (signup.php).

   Kept to the same ink, spacing and radii as the rest of this sheet, so the
   trial page and the sign-in page read as one product. Everything is scoped
   under #sgForm or to a class only that page uses, so the sign-in page is
   untouched.
   ====================================================================== */

/* ---- the "7-day free trial" flag, above the heading ------------------- */
.trial-badge{display:inline-block;background:rgba(35,60,120,.07);border:1px solid rgba(35,60,120,.16);
  color:var(--royal);font-weight:700;font-size:11px;text-transform:uppercase;letter-spacing:.8px;
  padding:5px 13px;border-radius:999px;margin-bottom:12px}

/* ---- step indicator ---------------------------------------------------
   .vh is read by a screen reader and seen by nobody: the step labels carry
   "Step 3 of 6: " inside one, so the dots are not a row of bare numbers to
   someone who cannot see which one is lit. It had no rule until 2026-10-04,
   which meant that wording was printed on the page instead. */
.vh{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;
  clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}
.steps{display:flex;align-items:flex-start;margin:0 0 22px}
.step{position:relative;flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:center;gap:6px}
.step + .step::before{content:'';position:absolute;top:14px;left:calc(-50% + 16px);width:calc(100% - 32px);
  height:2px;background:var(--field)}
.step-dot{position:relative;z-index:1;width:28px;height:28px;border-radius:50%;background:var(--ivory);
  border:2px solid var(--field);color:#96a1ad;display:flex;align-items:center;justify-content:center;
  font:700 12px var(--font);transition:background .18s,border-color .18s,color .18s}
.step-dot.active{border-color:var(--navy);background:var(--navy);color:#fff;box-shadow:0 0 0 4px rgba(24,43,80,.10)}
.step-dot.done{border-color:var(--royal);background:var(--royal);color:#fff}
.step-label{font-size:11px;font-weight:600;color:#96a1ad;letter-spacing:.2px;text-align:center}
.step:has(.step-dot.active) .step-label{color:var(--navy);font-weight:700}
.step:has(.step-dot.done) .step-label{color:var(--royal)}

/* ---- one step at a time ----------------------------------------------- */
#sgForm .panel{display:none}
#sgForm .panel.active{display:block}
/* The first label in a panel would otherwise inherit the 14px top margin and
   push the step away from its heading. */
#sgForm .panel > .grid .fld:first-child label,
#sgForm .panel > .fld:first-child label,
#sgForm .panel > .otp-row label{margin-top:0}

/* ---- Back / Continue -------------------------------------------------- */
.actions{display:flex;justify-content:space-between;align-items:center;gap:12px;
  margin-top:24px;padding-top:20px;border-top:1px solid rgba(82,96,113,.14)}
.actions .btn{width:auto;min-width:150px;margin-top:0;padding:0 26px}
.btn.ghost{background:#fff;color:var(--ink);border:1.5px solid var(--field);box-shadow:none}
.btn.ghost:hover{background:#f6f8fa;border-color:#b6bfc9;color:var(--navy);box-shadow:none;transform:none}
.actions .btn.ghost{min-width:110px}

/* ---- step 2: mobile + code -------------------------------------------- */
.otp-row{display:flex;align-items:flex-end;gap:10px}
.otp-row .fld{flex:1;min-width:0}
.otp-row .btn{width:auto;margin-top:0;height:42px;padding:0 18px;white-space:nowrap;flex:0 0 auto}
.otp-ok{display:none;align-items:center;gap:6px;color:var(--success);font-weight:700;font-size:13px;margin-top:12px}
.otp-ok svg{width:16px;height:16px}
#sgForm .panel[data-panel="2"] .msg{margin-top:14px;margin-bottom:0}

/* ---- step 3: the password ---------------------------------------------- */
#sgForm .panel[data-panel="3"] .msg{margin-top:14px;margin-bottom:0}
#sgPwCount{color:var(--royal);font-weight:600;white-space:nowrap}

/* ---- the User ID, handed over on the done screen -----------------------
   The same gold box the Cloud ERP trial and Pawn Cloud use, so a shop that
   has seen one JewelAxis signup recognises this one. */
.uid-box{border:2px solid var(--gold);border-radius:12px;background:#FFFBEF;
  padding:18px 16px;text-align:center;margin-bottom:16px}
.uid-label{font-size:11px;font-weight:700;letter-spacing:.6px;text-transform:uppercase;color:var(--muted)}
.uid-value{font-family:Consolas,Menlo,'DejaVu Sans Mono',monospace;font-size:34px;font-weight:800;
  letter-spacing:6px;color:var(--navy);margin:6px 0 10px;word-break:break-all;
  -webkit-user-select:all;user-select:all}
.uid-copy{width:auto;margin-top:0;height:38px;padding:0 18px;font-size:13px}
.uid-note{font-size:12.5px;color:var(--muted);margin-top:10px;line-height:1.6}

/* ---- step 5 / 6: review and receipt ----------------------------------- */
.review-group{border:1.5px solid var(--field);border-radius:12px;padding:14px 16px;margin-bottom:12px;background:#fff}
.review-group h4{margin:0 0 8px;font-size:11px;text-transform:uppercase;letter-spacing:.7px;color:#4a5568;font-weight:700}
.review-row{display:flex;justify-content:space-between;gap:14px;font-size:13.5px;padding:6px 0;
  border-bottom:1px dashed rgba(82,96,113,.16)}
.review-row:last-child{border-bottom:none}
.review-row .k{color:var(--muted)}
.review-row .v{font-weight:600;text-align:right;word-break:break-word;color:var(--navy)}

.done-wrap{text-align:center;margin-bottom:18px}
.done-tick{width:52px;height:52px;border-radius:50%;background:rgba(18,169,120,.12);color:var(--success);
  display:flex;align-items:center;justify-content:center;font-size:26px;font-weight:700;margin:0 auto 14px}
.done-wrap h2{font-size:21px;font-weight:700;color:var(--navy);margin-bottom:6px;text-wrap:balance}
.done-wrap .sub{margin-bottom:0}

/* ---- narrow screens --------------------------------------------------- */
@media (max-width:640px){
  .step-label{font-size:9.5px;letter-spacing:0}
  .otp-row{flex-direction:column;align-items:stretch}
  .otp-row .btn{width:100%}
  .actions{flex-direction:row-reverse}
  .actions .btn{flex:1;min-width:0;padding:0 12px}
  .actions .btn.ghost{min-width:0}
}
@media (max-width:576px){
  /* Six labels, not five: "Password" is the longest and must not wrap into
     three lines on a phone. */
  .steps.six .step-label{font-size:8.5px}
  .steps.six .step-dot{width:24px;height:24px;font-size:11px}
  .steps.six .step + .step::before{top:12px;left:calc(-50% + 13px);width:calc(100% - 26px)}
  /* 6 characters at 34px plus 6px of tracking overflows a narrow phone. */
  .uid-value{font-size:27px;letter-spacing:4px}
}
@media (prefers-reduced-motion:reduce){.step-dot{transition:none}}
