/* ==========================================================================
   Home page. One idea: a black stage where real products appear by
   "de-pixelating", echoing the pixel J in the Jareen logo. Everything else
   stays quiet and lets the product photos carry the colour.
   ========================================================================== */
.home{background:var(--concrete)}

/* ---------- Stage (hero) ---------- */
.stage{
  --pad:clamp(20px,5vw,72px);
  position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:clamp(28px,5vw,80px);align-items:center;
  max-width:1480px;margin:0 auto;padding:190px var(--pad) 72px;
  background:var(--brand);color:#fff;border-radius:0 0 40px 40px;min-height:min(900px,100svh);
  isolation:isolate;overflow:hidden
}
/* Full-bleed black behind the rounded stage on very wide screens. */
.home .stage{max-width:none;padding-left:max(var(--pad),calc((100vw - 1340px)/2));padding-right:max(var(--pad),calc((100vw - 1340px)/2))}
/* A faint pixel grid, the same unit the logo is drawn in. */
.stage:before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;
  background-image:linear-gradient(#ffffff0b 1px,transparent 1px),linear-gradient(90deg,#ffffff0b 1px,transparent 1px);
  background-size:28px 28px;mask-image:radial-gradient(ellipse 70% 80% at 72% 55%,#000 20%,transparent 75%);-webkit-mask-image:radial-gradient(ellipse 70% 80% at 72% 55%,#000 20%,transparent 75%)}
.stage-copy{max-width:600px}
.stage h1{font-family:var(--display);font-weight:800;font-size:clamp(48px,7.4vw,112px);line-height:.9;letter-spacing:-.05em;margin:0 0 26px;color:#fff;text-wrap:balance}
.stage-em{display:inline-block;color:transparent;-webkit-text-stroke:2px #fff;text-stroke:2px #fff}
.stage-sub{font-size:clamp(16px,1.35vw,19px);line-height:1.55;color:#b9bac0;margin:0 0 34px;max-width:34ch}
.stage-btn.big{min-height:60px;padding:0 30px 0 34px;font-size:17px;border-radius:16px;gap:12px}
.stage-btn svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;transition:transform .25s cubic-bezier(.2,.8,.2,1)}
.stage-btn:hover svg{transform:translateX(4px)}
.stage-trust{list-style:none;display:flex;flex-wrap:wrap;gap:8px 22px;margin:34px 0 0;padding:0;color:#8e9097;font-size:14px;font-weight:600}
.stage-trust li{display:flex;align-items:center;gap:8px}
.stage-trust li:before{content:'';width:8px;height:8px;background:#fff;opacity:.85}
.stage-actions{display:flex;flex-wrap:wrap;gap:12px}
.stage-btn{display:inline-flex;align-items:center;justify-content:center;min-height:52px;padding:0 26px;border-radius:14px;font-size:15px;font-weight:700;letter-spacing:-.01em;transition:background .18s,color .18s,border-color .18s,transform .18s}
.stage-btn.solid{background:#fff;color:var(--brand)}
.stage-btn.solid:hover{background:#e7e7e3}
.stage-btn.ghost{border:1.5px solid #ffffff40;color:#fff}
.stage-btn.ghost:hover{border-color:#fff}
.stage-btn:active{transform:translateY(1px)}
.stage-btn:focus-visible{outline:2px solid #fff;outline-offset:3px}

.stage-show{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 76px;gap:16px;align-items:end;justify-self:end;width:100%;max-width:640px}
.stage-frame{position:relative;display:block;aspect-ratio:3/4;border-radius:28px;overflow:hidden;background:#26272c;box-shadow:0 40px 90px #00000080}
.stage-frame img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .8s cubic-bezier(.2,.8,.2,1)}
.stage-frame:hover img{transform:scale(1.03)}
.stage-frame:focus-visible{outline:2px solid #fff;outline-offset:4px}
.stage-pixels{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;image-rendering:pixelated}
.stage-tag{position:absolute;left:16px;right:16px;bottom:16px;display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:14px 18px;border-radius:16px;background:#fffffff0;color:var(--brand);font-size:15px;font-weight:600;
  backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
.stage-tag span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.stage-tag strong{font-family:var(--display);font-size:18px;font-weight:800;letter-spacing:-.02em;white-space:nowrap}
.stage-thumbs{display:flex;flex-direction:column;gap:10px}
.stage-thumbs button{position:relative;width:76px;aspect-ratio:3/4;padding:0;border:0;border-radius:14px;overflow:hidden;background:#26272c;opacity:.45;transition:opacity .2s,transform .2s}
.stage-thumbs button img{width:100%;height:100%;object-fit:cover;display:block}
.stage-thumbs button:hover{opacity:.8}
.stage-thumbs button[aria-pressed="true"]{opacity:1;box-shadow:0 0 0 2px #fff}
.stage-thumbs button i{position:absolute;left:0;bottom:0;height:3px;width:0;background:#fff}
.stage-thumbs button[aria-pressed="true"] i{animation:stage-progress var(--stage-ms,6000ms) linear forwards}
.stage-show.paused .stage-thumbs button i{animation-play-state:paused}
@keyframes stage-progress{to{width:100%}}


.stage-thumbs button:focus-visible{outline:2px solid #fff;outline-offset:3px}

/* ---------- Categories: a bento of four ---------- */
.home main{max-width:1340px;margin:0 auto;padding:clamp(48px,7vw,96px) clamp(20px,4vw,40px) 0}
.cats-wrap{margin:0 0 clamp(64px,8vw,110px)}
.sec-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:24px}
.sec-head h2{font-size:clamp(34px,4vw,56px);letter-spacing:-.045em;line-height:1;margin:0}
.cats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(3,clamp(250px,24vw,330px));gap:18px}
/* Row 3: phone cases and decorations side by side, each half the width. */
.cats>.cat-cases,.cats>.cat-decor{grid-column:span 2}
.cat{position:relative;display:block;border-radius:28px;overflow:hidden;isolation:isolate}
.cat-big{grid-column:span 2;grid-row:span 2}
.cat-wide{grid-column:span 2}
.cat:focus-visible,.cat-cover:focus-visible{outline:2px solid var(--brand);outline-offset:4px}
.cat-cover{position:absolute;inset:0;z-index:3;border-radius:inherit}
.cat-text{position:absolute;left:clamp(22px,2.6vw,36px);top:clamp(22px,2.6vw,32px);z-index:2;display:flex;flex-direction:column;gap:8px;pointer-events:none}
.cat-name{font-family:var(--display);font-size:clamp(26px,2.6vw,40px);font-weight:800;letter-spacing:-.045em;line-height:.95}
.cat-big .cat-name{font-size:clamp(34px,4vw,60px)}
.cat-count{font-size:14px;font-weight:600;opacity:.6;min-height:1.3em}
.cat-go{position:absolute;left:clamp(22px,2.6vw,36px);bottom:clamp(22px,2.6vw,32px);z-index:2;width:52px;height:52px;border-radius:50%;display:grid;place-items:center;transition:transform .25s cubic-bezier(.2,.8,.2,1)}
.cat-go svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.cat:hover .cat-go{transform:translateX(6px)}
.cat-art{position:absolute;z-index:1;width:auto;max-width:none;transition:transform .6s cubic-bezier(.2,.8,.2,1)}

/* Gaming: the headset lit on a black stage, like the hero. */
.cat-dark{background:radial-gradient(circle at 64% 60%,#2c2d34 0%,var(--brand) 62%);color:#fff}
.cat-dark:before{content:'';position:absolute;inset:0;z-index:0;background-image:linear-gradient(#ffffff0a 1px,transparent 1px),linear-gradient(90deg,#ffffff0a 1px,transparent 1px);background-size:28px 28px;mask-image:radial-gradient(circle at 64% 60%,#000 0,transparent 60%);-webkit-mask-image:radial-gradient(circle at 64% 60%,#000 0,transparent 60%)}
.cat-dark .cat-art{right:5%;bottom:4%;height:76%;filter:drop-shadow(0 30px 40px #000000b3)}
.cat-dark:after{content:'';position:absolute;right:8%;bottom:6%;width:52%;height:10%;z-index:0;border-radius:50%;background:radial-gradient(closest-side,#ffffff1f,transparent)}
.cat-dark:hover .cat-art{transform:translateY(-8px) rotate(-2deg)}
.cat-dark .cat-go{background:#fff;color:var(--brand)}

/* Accessories: the product photo melts into a warm grey card. */
.cat-light{background:#d3d2ce;color:var(--brand)}
.cat-photo{position:absolute;right:0;bottom:0;height:100%;width:56%;object-fit:cover;object-position:center 40%;z-index:1;mix-blend-mode:multiply;
  mask-image:radial-gradient(ellipse 70% 75% at 60% 55%,#000 45%,transparent 78%);-webkit-mask-image:radial-gradient(ellipse 70% 75% at 60% 55%,#000 45%,transparent 78%);transition:transform .6s cubic-bezier(.2,.8,.2,1)}
.cat-light:hover .cat-photo{transform:scale(1.04)}
.cat-light .cat-go{background:var(--brand);color:#fff}
.cat-light .cat-art{right:-1%;bottom:-16%;height:100%;transform:rotate(-8deg);filter:drop-shadow(0 26px 30px #00000038)}
.cat-light:hover .cat-art{transform:translateY(-6px) rotate(-5deg)}

/* Skincare: soft blush, a serum bottle with a cream jar and tube. */
.cat-skin{background:radial-gradient(circle at 72% 62%,#fbe9df 0%,#efd3c4 72%);color:var(--brand)}
.cat-skin .cat-art{right:6%;bottom:-6%;height:100%;filter:drop-shadow(0 24px 26px #6b3a2233)}
.cat-skin:hover .cat-art{transform:translateY(-8px) rotate(-1.5deg)}
.cat-skin .cat-go{background:var(--brand);color:#fff}

/* Phone cases: warm clay, two cases fanned out, and a quick pick for the phone. */
.cat-cases{background:radial-gradient(circle at 70% 70%,#efe2d6 0%,#dccbbb 70%);color:var(--brand)}
.cat-cases .cat-art{right:8%;bottom:-22%;height:86%;transform:rotate(10deg);filter:drop-shadow(0 22px 26px #1a223b4d)}
.cat-cases:hover .cat-art{transform:translateY(-8px) rotate(8deg)}
.cat-fits{position:absolute;left:clamp(22px,2.6vw,36px);bottom:clamp(22px,2.6vw,32px);z-index:4;display:flex;flex-wrap:wrap;gap:8px}
.cat-fits a{display:inline-flex;align-items:center;min-height:40px;padding:0 16px;border-radius:999px;background:#fffffff2;color:var(--brand);font-size:14px;font-weight:700;box-shadow:0 6px 16px #3b2a1a1f;transition:background .18s,color .18s,transform .18s}
.cat-fits a:hover{background:var(--brand);color:#fff;transform:translateY(-2px)}
.cat-fits a:focus-visible{outline:2px solid var(--brand);outline-offset:2px}

/* Decorations: soft sage, a little still life. */
.cat-decor{background:radial-gradient(circle at 70% 70%,#e3e7da 0%,#c9d0bf 70%);color:var(--brand)}
.cat-decor .cat-art{right:9%;bottom:3%;height:62%;transform:rotate(5deg);filter:drop-shadow(0 18px 22px #2a33224d)}
.cat-decor:hover .cat-art{transform:translateY(-6px) rotate(3deg)}
.cat-decor .cat-go{background:var(--brand);color:#fff}

/* ---------- Featured ---------- */
.home .featured{max-width:none;padding:0;margin:0 0 clamp(56px,7vw,96px)}
.home .featured-heading{align-items:flex-end;margin-bottom:24px}
.home .featured h2{font-size:clamp(34px,4vw,56px);letter-spacing:-.045em;line-height:1}
.featured-tools{display:flex;align-items:center;gap:18px}
.view-all{white-space:nowrap;font-weight:700;font-size:15px;border-bottom:2px solid var(--brand);padding-bottom:2px}
.view-all:hover{opacity:.7}
.home .product-track{gap:18px;padding-bottom:6px;scrollbar-width:none}
.home .product-track::-webkit-scrollbar{display:none}
.home .product{flex-basis:calc((100% - 54px)/4)}
.home .product-image{border-radius:22px;background:var(--plinth)}
/* Stock pills only matter when stock is low; the badge (New, Bestseller) stays. */
.home .product-image .stock-tag.available{display:none}
.home .product h3{font-size:17px;font-weight:700;letter-spacing:-.01em;margin:16px 0 4px}
.home .product h3 a:hover{text-decoration:underline;text-underline-offset:3px}
.home .product .price{font-family:var(--display);font-weight:800;font-size:18px;color:var(--ink);letter-spacing:-.02em}
.home .product .add-cart{border-radius:14px;min-height:46px;font-weight:700;background:transparent;border:1.5px solid var(--ink);color:var(--ink)}
.home .product .add-cart:hover:not(:disabled){background:var(--ink);color:#fff}
@media(min-width:1100px){.home .featured:has(.product:nth-child(4):last-child) .scroll-controls{display:none}}

/* ---------- Promises ---------- */
.promises{list-style:none;display:grid;grid-template-columns:repeat(4,1fr);margin:0 0 clamp(56px,7vw,96px);padding:0;border-top:1.5px solid var(--ink);border-bottom:1.5px solid var(--ink)}
.promises li+li{border-left:1px solid var(--line-2)}
.promises a{display:flex;align-items:center;gap:12px;padding:22px 20px;font-weight:700;font-size:15px;letter-spacing:-.01em;color:var(--ink);transition:background .15s}
.promises a:hover{background:var(--paper)}
.promises svg{width:24px;height:24px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}

/* ---------- Help card ---------- */
.helpcard{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:clamp(18px,3vw,40px);margin:0 0 clamp(64px,8vw,110px);padding:clamp(24px,3.5vw,40px) clamp(24px,4vw,52px);border-radius:28px;background:var(--brand);color:#fff}
.helpcard img{width:clamp(64px,7vw,96px);height:auto;image-rendering:pixelated}
.helpcard h2{font-size:clamp(26px,2.8vw,38px);letter-spacing:-.04em;line-height:1.05;margin:0 0 6px;color:#fff}
.helpcard p{margin:0;color:#b9bac0;font-size:16px;line-height:1.5}
.stage-btn.light{white-space:nowrap}

/* ---------- Small screens ---------- */
@media(max-width:960px){
  .stage{grid-template-columns:1fr;padding-top:170px;padding-bottom:40px;min-height:0;border-radius:0 0 28px 28px}
  .stage-show{justify-self:stretch;max-width:none;grid-template-columns:1fr}
  .stage-frame{aspect-ratio:4/5}
  .stage-thumbs{flex-direction:row}
  .stage-thumbs button{width:64px}
  .cats{grid-template-columns:1fr 1fr;grid-template-rows:none;grid-auto-rows:260px}
  .cat-big{grid-column:1/-1;grid-row:span 1;height:auto}
  .cat-wide{grid-column:1/-1}
  .cats>.cat-cases,.cats>.cat-decor{grid-column:span 1}
  .promises{grid-template-columns:1fr 1fr}
  .promises li:nth-child(3){border-left:0}
  .promises li:nth-child(n+3){border-top:1px solid var(--line-2)}
  .home .product{flex-basis:40%}
}
@media(max-width:640px){
  .stage{padding-top:158px;gap:28px}
  .stage h1{font-size:clamp(44px,13vw,64px)}
  .stage-sub{margin-bottom:26px}
  .stage-btn{flex:1;min-width:0}
  .cats{gap:12px;grid-auto-rows:230px}
  .cat{border-radius:22px}
  .cat-big{grid-row:span 1}
  .cat-dark .cat-art{right:2%;bottom:4%;height:80%}
  .cat-big .cat-name{font-size:30px}
  .cats>.cat-cases,.cats>.cat-decor{grid-column:1/-1}
  .cat-skin .cat-art{right:-2%;bottom:-10%;height:104%}
  .cat-photo{width:62%}
  .cat-light .cat-art{right:-16%;bottom:-20%;height:96%}
  .cat-cases .cat-art{right:6%;bottom:-30%;height:100%}
  .cat-decor .cat-art{right:8%;bottom:-16%;height:84%}
  .cat-go{width:46px;height:46px}
  .stage-btn.big{flex:1}
  .stage-trust{gap:8px 16px;font-size:13px}
  .sec-head{align-items:center}
  .home .product{flex-basis:72%;min-width:0}
  .promises a{padding:18px 12px;font-size:14px;gap:10px}
  .helpcard{grid-template-columns:auto 1fr;border-radius:22px}
  .helpcard .stage-btn{grid-column:1/-1}
}
@media(prefers-reduced-motion:reduce){
  .stage-thumbs button i{display:none}
  .stage-frame img,.cat-art,.cat-photo,.cat-go{transition:none}
  .stage-frame:hover img,.cat:hover .cat-art,.cat:hover .cat-photo,.cat:hover .cat-go{transform:none}
}
