/* Jewellery Try-On — same design as the clothing tool, recoloured to warm yellow/gold.
   Reuses tryon.css classes (.steps/.drop/.zone/.btn) with the palette overridden here. */
.jw-scope{
  --pink:#f97316; --pink-bright:#ff8a3d; --purple:#ea580c; --purple-deep:#c2410c;
  --grad:linear-gradient(100deg,#ff8a3d 0%,#f2650a 100%);
  --grad-soft:linear-gradient(100deg,#ffe2c4 0%,#ffcf9e 100%);
  --shadow:0 18px 50px -18px rgba(200,90,10,.26);
  --shadow-sm:0 8px 24px -12px rgba(200,90,10,.3);
  min-height:calc(100vh - 76px);
  padding:26px 20px 72px;
  background:
    radial-gradient(60vw 60vw at 85% -6%, rgba(255,138,61,.16), transparent 60%),
    radial-gradient(55vw 55vw at -6% 34%, rgba(242,101,10,.11), transparent 60%),
    #fffbf5;
}
.jw-shell{max-width:900px;margin:0 auto;animation:rise .5s ease both}   /* same entrance as the clothing tool */
/* gentle lift on the upload cards, matching the clothing tool's feel */
.jw-scope .drop{transition:transform .2s ease, box-shadow .2s ease}
.jw-scope .drop:hover{transform:translateY(-3px);box-shadow:0 26px 60px -22px rgba(200,90,10,.34)}

/* header (centred like the clothing tool) */
.jw-scope .head{text-align:center;max-width:640px;margin:0 auto 22px}
.jw-scope .head h1{font-size:clamp(30px,5vw,44px);line-height:1.08;color:#2b2510}
.jw-scope .head p{font-size:16px;line-height:1.6}
.jw-scope .head p b{color:#c94f10}
/* hide the tool's intro paragraph on mobile to keep the view compact (kept in DOM for SEO) */
@media(max-width:640px){
  .jw-scope .head p{display:none}
  .jw-scope .head{margin-bottom:14px}
  /* mobile: show the core title on one clean line, hide the decorative tail (kept in DOM for SEO) */
  .jw-scope .head h1{white-space:nowrap;font-size:clamp(20px,5.6vw,27px);line-height:1.2;
    -webkit-text-size-adjust:100%;text-size-adjust:100%;-moz-text-size-adjust:100%}
  .jw-scope .head h1 .h1-tail{display:none}
}

/* recolour the few hard-coded pinks in the reused .zone */
.jw-scope .zone{border-color:#f3d4a8;background:linear-gradient(180deg,#fff,#fdf7ef)}
.jw-scope .zone:hover{border-color:var(--pink);background:linear-gradient(180deg,#fff,#fdf0dd)}
.jw-scope .zone.drag{background:#ffe6cc}

/* "Checking photo…" loader in the person zone (on-device face check) */
.jw-scope .zone-loader{position:absolute;inset:0;z-index:6;display:flex;flex-direction:column;
  align-items:center;justify-content:center;gap:12px;
  background:rgba(255,253,245,.78);backdrop-filter:blur(2px);border-radius:inherit}
.jw-scope .zone-loader[hidden]{display:none}
.jw-scope .zone-loader-ring{width:38px;height:38px;border-radius:50%;
  border:4px solid rgba(242,101,10,.25);border-top-color:#f97316;animation:jw-zspin .8s linear infinite}
.jw-scope .zone-loader-text{font-size:13px;font-weight:600;color:#c2410c}
@keyframes jw-zspin{to{transform:rotate(360deg)}}

/* type selector — compact one-line radio pills */
.jw-type-hint{text-align:center;color:#9a6234;font-size:13.5px;font-weight:500;letter-spacing:.01em;margin:0 auto 14px}
.jw-type-hint b{color:#c2410c;font-weight:800}
.jw-typebar{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;max-width:820px;margin:0 auto 24px}
.jw-type{display:inline-flex;align-items:center;gap:9px;padding:10px 18px 10px 13px;border-radius:12px;
  border:1.6px solid #f2d6b2;background:#fff;color:#7d5730;font:inherit;font-weight:700;font-size:14px;
  cursor:pointer;box-shadow:var(--shadow-sm);transition:transform .16s,border-color .16s,background .16s,box-shadow .16s}
.jw-type > svg{width:20px;height:20px;opacity:.9;flex:none}
.jw-type-lbl{white-space:nowrap}
.jw-type:hover{border-color:#eab873;transform:translateY(-1px);box-shadow:0 12px 26px -14px rgba(200,90,10,.3)}
.jw-type.on{border-color:var(--pink);background:linear-gradient(180deg,#fffbf4,#feecd2);color:#b34310;
  box-shadow:0 12px 26px -14px rgba(224,90,10,.4)}
/* radio indicator — always visible so it's obviously a pick-one selection */
.jw-radio{width:17px;height:17px;flex:none;border-radius:50%;border:2px solid #e8b57e;background:#fff;transition:.16s}
.jw-type:hover .jw-radio{border-color:#dd9a52}
.jw-type.on .jw-radio{border-color:var(--pink);background:var(--grad);box-shadow:inset 0 0 0 3px #fff}
/* mobile: one horizontally-scrollable row of type pills (no wrapping) */
@media(max-width:640px){
  .jw-typebar{flex-wrap:nowrap;overflow-x:auto;justify-content:flex-start;
    padding:2px 4px 10px;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch}
  .jw-typebar::-webkit-scrollbar{height:5px}
  .jw-typebar::-webkit-scrollbar-thumb{background:#f0c99e;border-radius:99px}
  .jw-type{flex:0 0 auto;padding:9px 15px 9px 12px;font-size:13.5px;scroll-snap-align:start;white-space:nowrap}
}

/* Try it on button star */
.jw-scope .btn-primary span{color:#fff2dd}

/* result + processing — reuses the clothing tool's .proc animation, recoloured gold */
.jw-result{max-width:600px;margin:34px auto 0}
.jw-result[hidden]{display:none!important}

/* recolour the reused clothing loader (.proc/.bar/.scan/.pct) for the gold theme */
.jw-scope .bar{background:#f8e2c8}                                 /* progress track */
.jw-scope .proc-stage .scan{background:linear-gradient(180deg,transparent,rgba(255,138,61,.45),rgba(224,99,10,.4),transparent)}
.jw-scope .pct{margin-top:10px;font-weight:700;font-size:15px;color:var(--purple-deep);font-variant-numeric:tabular-nums}
/* keep all four processing steps on a single line */
.jw-scope .proc{max-width:640px}
.jw-scope .proc-steps{flex-wrap:nowrap;gap:7px}
.jw-scope .proc-steps .pchip{padding:7px 12px;font-size:12.5px;white-space:nowrap}
@media(max-width:620px){ .jw-scope .proc{max-width:100%} .jw-scope .proc-steps{flex-wrap:wrap} }

/* final image */
.jw-stage{position:relative;background:linear-gradient(180deg,#fff,#fdf0dd);
  border:1px solid #f7e2c8;border-radius:24px;overflow:hidden;min-height:420px;
  display:flex;align-items:center;justify-content:center;box-shadow:var(--shadow)}
.jw-stage[hidden]{display:none!important}
.jw-stage img{max-width:100%;max-height:74vh;display:block}

.jw-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin-top:18px}
.jw-actions[hidden]{display:none!important}
.jw-actions .btn{font-size:15px;padding:13px 26px}

/* ============ RESULT SCREEN — full parity with the clothing tool (gold theme) ============ */
/* 3 action cards (Download / Share / Redo) */
.jw-scope .res-actions{grid-template-columns:repeat(3,1fr)}
.jw-scope .ract{display:flex;flex-direction:column;align-items:center;gap:6px;padding:14px 6px;border-radius:14px;
  background:#fff;border:1px solid #f6d9b6;cursor:pointer;font:inherit;font-weight:600;font-size:13px;color:#6b4522;
  transition:transform .15s,box-shadow .15s,border-color .15s}
.jw-scope .ract:hover{transform:translateY(-2px);box-shadow:0 10px 24px -14px rgba(200,90,10,.5);border-color:#efb877}
.jw-scope .ract .ic{display:flex;align-items:center;justify-content:center}
.jw-scope .ract svg{width:20px;height:20px}
.jw-scope .res-img .expand{cursor:pointer}

/* compositing spinner over the result image */
.jw-scope .bg-spin{position:absolute;inset:0;z-index:5;display:grid;place-items:center;
  background:rgba(255,253,245,.5);backdrop-filter:blur(1px);border-radius:inherit}
.jw-scope .bg-spin[hidden]{display:none}
.jw-scope .bg-spin-ring{width:42px;height:42px;border-radius:50%;
  border:4px solid rgba(242,101,10,.25);border-top-color:#f97316;animation:jw-bgspin .8s linear infinite}
@keyframes jw-bgspin{to{transform:rotate(360deg)}}

/* background picker */
.jw-scope .bg-tools{margin-top:18px;padding-top:16px;border-top:1px solid #f7dfc0;text-align:left}
.jw-scope .bg-tools-bar{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
.jw-scope .bg-tools-bar-2{margin-top:6px;padding-top:16px;border-top:1px solid #f8e2c8}
.jw-scope .bg-tools-title{font-size:14px;font-weight:800;letter-spacing:.4px;text-transform:uppercase;color:#2b2510}
.jw-scope .bg-save-row{display:flex;justify-content:center;margin-top:16px}
.jw-scope .bg-save-btn{display:inline-flex;align-items:center;gap:8px;padding:11px 30px;border:none;border-radius:999px;
  cursor:pointer;font-family:inherit;font-weight:700;font-size:14.5px;color:#fff;
  background:var(--grad);box-shadow:0 10px 22px -12px rgba(200,90,10,.75);transition:transform .12s,box-shadow .15s}
.jw-scope .bg-save-btn:hover{transform:translateY(-1px);box-shadow:0 14px 26px -12px rgba(200,90,10,.8)}
.jw-scope .bg-save-btn:active{transform:scale(.97)}
.jw-scope .bg-strip{display:flex;gap:12px;overflow-x:auto;padding:4px 2px 12px;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch}
.jw-scope .bg-strip::-webkit-scrollbar{height:6px}
.jw-scope .bg-strip::-webkit-scrollbar-thumb{background:#f0c99e;border-radius:99px}
.jw-scope .bg-tile{flex:0 0 auto;width:72px;border:none;background:none;padding:0;cursor:pointer;font-family:inherit;
  display:flex;flex-direction:column;align-items:center;gap:6px;scroll-snap-align:start}
.jw-scope .bg-tile-face{position:relative;width:72px;height:96px;border-radius:14px;overflow:hidden;
  border:2px solid #f3d4a8;background:#fdf2e6;display:grid;place-items:center;transition:border-color .15s,transform .12s}
.jw-scope .bg-tile:hover .bg-tile-face{transform:translateY(-2px)}
.jw-scope .bg-tile.sel .bg-tile-face{border-color:var(--pink);box-shadow:0 0 0 2px rgba(249,115,22,.3)}
.jw-scope .bg-tile-face img{width:100%;height:100%;object-fit:cover}
.jw-scope .bg-tile-label{font-size:11.5px;font-weight:600;color:#9c6a40;max-width:72px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.jw-scope .bg-tile.sel .bg-tile-label{color:#c2410c}
.jw-scope .bg-tile-none .bg-tile-face{color:#dd5a0a;background:#fff6ec;border-style:dashed}
.jw-scope .bg-tile-original .bg-tile-face{color:#dd5a0a;background:linear-gradient(135deg,#feecd0,#fef0df)}
.jw-scope .bg-tile-plus{font-size:26px;color:#f2650a;line-height:1}
.jw-scope .bg-tile-rainbow{background:conic-gradient(from 0deg,#ff8a3d,#f2650a,#f97316,#ffc078,#ff8a3d)}
.jw-scope .bg-tile-rainbow .bg-tile-plus{color:#fff;text-shadow:0 1px 3px rgba(0,0,0,.4)}
.jw-scope .bg-tile-custom{position:relative}
.jw-scope .bg-tile-custom input[type="color"]{position:absolute;top:0;left:0;width:72px;height:96px;opacity:0;cursor:pointer;border:none;padding:0}
.jw-scope .bg-tile-upload .bg-tile-face{border-style:dashed}
.jw-scope .bg-hint{margin:6px 0 0;font-size:12px;color:#bd8a55}
@media(max-width:520px){
  .jw-scope .bg-strip{gap:9px}
  .jw-scope .bg-tile{width:58px}
  .jw-scope .bg-tile-face{width:58px;height:78px}
  .jw-scope .bg-tile-custom input[type="color"]{width:58px;height:78px}
  .jw-scope .bg-tile-label{font-size:10.5px;max-width:58px}
  .jw-scope .bg-tools-title{font-size:13px}
}

/* fullscreen lightbox (dark overlay, theme-neutral) */
.lightbox{position:fixed;inset:0;z-index:200;display:none;align-items:center;justify-content:center;
  background:rgba(20,12,18,.85);backdrop-filter:blur(6px);padding:24px}
.lightbox.show{display:flex}
.lightbox img{max-width:92vw;max-height:90vh;border-radius:16px;box-shadow:0 30px 80px -20px rgba(0,0,0,.6)}
.lightbox .close{position:absolute;top:20px;right:24px;width:44px;height:44px;border-radius:50%;
  background:rgba(255,255,255,.15);color:#fff;border:none;cursor:pointer;font-size:22px;
  display:flex;align-items:center;justify-content:center;backdrop-filter:blur(6px)}
.lightbox .close:hover{background:rgba(255,255,255,.28)}

/* ============================================================
   SEO CONTENT (below the tool) — gold themed, self-contained
   ============================================================ */
.jw-content{
  --pink:#f97316; --pink-bright:#ff8a3d; --purple:#ea580c; --purple-deep:#c2410c;
  --grad:linear-gradient(100deg,#ff8a3d 0%,#f2650a 100%);
  --grad-soft:linear-gradient(100deg,#ffe2c4 0%,#ffcf9e 100%);
  background:linear-gradient(180deg,#fffbf6,#fff6ec);
}
.jw-sec{max-width:1000px;margin:0 auto;padding:66px 24px}
.jw-sec-alt{max-width:1040px;margin:0 auto;background:linear-gradient(180deg,#fff2e4,#feecd6);border-radius:30px}
.jw-eyebrow{display:block;text-align:center;font-size:12.5px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;color:#dd5a0a;margin-bottom:12px}
.jw-h2{font-family:'Fraunces',serif;font-size:clamp(26px,4vw,37px);font-weight:600;text-align:center;color:#2b2510;line-height:1.14;margin:0 0 14px}
.jw-h2 em{font-style:italic;background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent}
.jw-lead{max-width:730px;margin:0 auto 42px;text-align:center;color:#7a5230;font-size:16.5px;line-height:1.75}
.jw-lead a{color:#c94f10;font-weight:700;text-decoration:none}
.jw-lead a:hover{text-decoration:underline}

/* 3-step how it works */
.jw-steps3{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.jw-step3{background:#fff;border:1px solid #f6ddbf;border-radius:20px;padding:30px 24px;text-align:center;box-shadow:var(--shadow-sm)}
.jw-step3 .n{width:44px;height:44px;border-radius:50%;background:var(--grad);color:#fff;font-weight:800;font-size:18px;display:grid;place-items:center;margin:0 auto 16px}
.jw-step3 h3{font-size:18px;color:#2b2510;margin:0 0 8px}
.jw-step3 p{color:#7a5230;font-size:14.5px;line-height:1.65;margin:0}

/* card grid (types / benefits / use cases) */
.jw-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;text-align:left}
.jw-card{background:#fff;border:1px solid #f6ddbf;border-radius:16px;padding:24px 22px;transition:transform .15s,box-shadow .15s}
.jw-card:hover{transform:translateY(-4px);box-shadow:0 16px 34px -18px rgba(200,90,10,.4)}
.jw-card-ico{width:46px;height:46px;border-radius:12px;background:linear-gradient(135deg,#ffe2c4,#ffc98a);display:grid;place-items:center;margin-bottom:14px;color:#c94f10}
.jw-card h3,.jw-card h4{font-size:16.5px;color:#2b2510;margin:0 0 8px}
.jw-card p{color:#7a5230;font-size:14px;line-height:1.62;margin:0}

/* trust row */
.jw-trust{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.jw-trust-item{background:#fff;border:1px solid #f6ddbf;border-radius:18px;padding:26px 20px;text-align:center}
.jw-trust-ico{width:52px;height:52px;border-radius:14px;background:rgba(249,115,22,.12);display:grid;place-items:center;margin:0 auto 14px;color:#dd5a0a}
.jw-trust-item h3{font-size:16px;color:#2b2510;margin:0 0 8px}
.jw-trust-item p{color:#7a5230;font-size:13.5px;line-height:1.6;margin:0}

/* tips */
.jw-tips{max-width:840px;margin:0 auto;display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
.jw-tip{display:flex;gap:12px;align-items:flex-start;background:#fff;border:1px solid #f6ddbf;border-radius:14px;padding:16px 18px}
.jw-tip svg{flex:none;margin-top:2px}
.jw-tip p{margin:0;color:#6b4522;font-size:14.5px;line-height:1.55}
.jw-tip b{color:#2b2510}

/* FAQ */
.jw-faq{max-width:780px;margin:0 auto}
.jw-faq details{background:#fff;border:1px solid #f6ddbf;border-radius:14px;padding:2px 22px;margin-bottom:12px}
.jw-faq summary{list-style:none;cursor:pointer;padding:18px 0;font-weight:700;font-size:16px;color:#2b2510;display:flex;justify-content:space-between;align-items:center;gap:16px}
.jw-faq summary::-webkit-details-marker{display:none}
.jw-faq summary::after{content:'+';font-size:24px;color:#dd5a0a;font-weight:400;transition:transform .2s;line-height:1}
.jw-faq details[open] summary::after{transform:rotate(45deg)}
.jw-faq details p{color:#7a5230;font-size:14.5px;line-height:1.72;margin:0 0 18px}

/* jewellery style showcase (hand-authored SVG art — no photos, no copyright) */
.jw-showcase{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;max-width:940px;margin:0 auto}
.jw-show-card{background:radial-gradient(130% 100% at 50% 0%,#fff0dc,#ffe2c6);border:1px solid #f5cf9a;border-radius:20px;padding:18px 16px 18px;text-align:center;box-shadow:var(--shadow-sm);transition:transform .18s,box-shadow .18s}
.jw-show-card:hover{transform:translateY(-5px);box-shadow:0 20px 40px -18px rgba(200,90,10,.5)}
.jw-show-art{width:100%;max-width:126px;height:126px;margin:0 auto 8px;display:block}
.jw-show-card h4{font-size:15.5px;color:#2b2510;margin:0 0 3px}
.jw-show-card p{font-size:12.5px;color:#bd7f4f;margin:0;line-height:1.4}
@media(max-width:860px){ .jw-showcase{grid-template-columns:repeat(2,1fr)} }

/* CTA */
.jw-cta{text-align:center;padding:6px 24px 74px}
.jw-cta .btn{font-size:16px;padding:15px 36px}

@media(max-width:860px){ .jw-grid{grid-template-columns:repeat(2,1fr)} .jw-trust{grid-template-columns:repeat(2,1fr)} }
@media(max-width:640px){ .jw-steps3{grid-template-columns:1fr} .jw-grid{grid-template-columns:1fr} .jw-tips{grid-template-columns:1fr} .jw-sec{padding:48px 18px} }
