/* ============================================================================
   The 6-step cinematic configurator
   ========================================================================== */

.journey {
  position: relative;
  min-height: calc(100vh - 74px);
  display: flex; flex-direction: column;
  padding: clamp(1rem, 3vw, 2.5rem) 0 3rem;
}

/* progress chrome */
.journey-chrome {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap; margin-bottom: clamp(1.5rem, 4vw, 3rem);
}
.progress { display: flex; align-items: center; gap: 0.55rem; }
.progress .dot {
  width: 30px; height: 2px; border-radius: 2px; background: var(--hairline);
  transition: background 0.5s var(--ease), width 0.5s var(--ease);
}
.progress .dot.done { background: var(--accent-soft); }
.progress .dot.current { background: var(--accent); width: 52px; }
.progress-label { font-size: 0.86rem; color: var(--ivory-dim); }
.progress-label b { color: var(--accent); font-weight: 600; }
.journey-controls { display: flex; gap: 0.6rem; }

/* steps */
.steps { position: relative; flex: 1; }
.step {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden; transform: translateY(30px) scale(0.99);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), visibility 0.7s;
  pointer-events: none;
}
.step.active { position: relative; opacity: 1; visibility: visible; transform: none; pointer-events: auto; }

.step-head { text-align: center; margin-bottom: clamp(1.6rem, 4vw, 2.6rem); }
.step-head h2 { font-size: clamp(1.6rem, 4.4vw, 2.7rem); }
.step-head p { color: var(--ivory-dim); margin-top: 0.5rem; }
.step-index { color: var(--accent); font-family: var(--font-latin); font-size: 1rem; letter-spacing: 0.2em; }

/* option grids */
.option-grid { display: grid; gap: clamp(0.8rem, 1.6vw, 1.3rem); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
@media (max-width: 820px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .grid-3, .grid-auto { grid-template-columns: repeat(2, 1fr); } }

/* luxury option card */
.opt {
  position: relative; overflow: hidden;
  padding: clamp(1.3rem, 2.6vw, 2rem) 1.2rem;
  border-radius: 16px; text-align: center;
  background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.012));
  border: 1px solid var(--hairline);
  transition: transform 0.45s var(--ease), border-color 0.45s, box-shadow 0.45s, background 0.45s;
}
.opt::after {
  content: ""; position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(120% 120% at 50% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%);
  transition: opacity 0.5s; pointer-events: none;
}
.opt:hover { transform: translateY(-5px); border-color: var(--hairline-strong); }
.opt:hover::after { opacity: 0.7; }
.opt.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 18px 50px -24px var(--accent);
}
.opt.selected::after { opacity: 1; }
.opt .glyph {
  width: 52px; height: 52px; margin: 0 auto 0.9rem;
  display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--hairline-strong); color: var(--accent);
}
.opt .glyph svg { width: 26px; height: 26px; }
.opt .opt-name { font-family: var(--font-latin); font-size: 1.18rem; letter-spacing: 0.06em; color: var(--ivory); }
.opt .opt-sub { font-size: 1.02rem; color: var(--ivory-dim); margin-top: 0.15rem; }
.opt .opt-meta { font-size: 0.8rem; color: var(--accent); margin-top: 0.6rem; opacity: 0.85; }

/* material swatch */
.opt .swatch {
  width: 46px; height: 46px; border-radius: 50%; margin: 0 auto 0.85rem;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25), 0 6px 18px -6px rgba(0,0,0,0.6);
}
/* stone bead */
.opt .bead {
  width: 38px; height: 38px; border-radius: 50%; margin: 0 auto 0.8rem;
  box-shadow: inset 0 -3px 8px rgba(0,0,0,0.45), 0 0 18px -2px currentColor;
}

/* ── weight slider (step 3) ─────────────────────────────────────────────── */
.weight-wrap { max-width: 620px; margin: 0 auto; text-align: center; }
.weight-read { font-family: var(--font-latin); letter-spacing: 0.1em; margin-bottom: 1.6rem; }
.weight-read .num { font-size: clamp(3rem, 11vw, 5.5rem); color: var(--accent); line-height: 1; }
.weight-read .unit { font-family: var(--font-fa); font-size: 1.1rem; color: var(--ivory-dim); margin-inline-start: 0.4rem; }
.slider {
  position: relative; height: 46px; display: flex; align-items: center;
}
.slider input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px;
  background: var(--hairline); outline: none; direction: ltr;
}
.slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--accent-soft), var(--accent));
  border: 2px solid rgba(255,255,255,0.7);
  box-shadow: 0 0 22px -2px var(--accent); cursor: pointer; transition: transform 0.2s;
}
.slider input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.12); }
.slider input[type="range"]::-moz-range-thumb {
  width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.7);
  background: radial-gradient(circle at 35% 30%, var(--accent-soft), var(--accent));
  box-shadow: 0 0 22px -2px var(--accent); cursor: pointer;
}
.slider-fill {
  position: absolute; left: 0; height: 4px; border-radius: 4px; pointer-events: none;
  background: linear-gradient(90deg, var(--accent-soft), var(--accent));
}
.weight-ticks { display: flex; justify-content: space-between; color: var(--ivory-faint); font-size: 0.8rem; margin-top: 0.8rem; }
.weight-preview {
  width: 120px; height: 120px; margin: 2rem auto 0; border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, color-mix(in srgb, var(--accent-soft) 70%, transparent), color-mix(in srgb, var(--accent) 35%, transparent) 60%, transparent 72%);
  border: 1px solid var(--hairline-strong);
  transition: transform 0.4s var(--ease);
}

/* ── review (step 6) ────────────────────────────────────────────────────── */
.review { max-width: 760px; margin: 0 auto; }
.review-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.9rem; margin-bottom: 2rem; }
@media (max-width: 560px) { .review-grid { grid-template-columns: 1fr; } }
.review-item {
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
  padding: 1rem 1.3rem; border-radius: 12px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--hairline);
}
.review-item .k { color: var(--ivory-dim); font-size: 0.9rem; }
.review-item .v { color: var(--ivory); font-weight: 500; }
.price-card {
  text-align: center; padding: clamp(1.8rem, 4vw, 2.6rem); border-radius: 18px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 12%, transparent), rgba(255,255,255,0.02));
  border: 1px solid var(--accent); box-shadow: 0 24px 60px -34px var(--accent);
}
.price-card .price-label { color: var(--ivory-dim); font-size: 0.95rem; }
.price-card .price-range {
  font-family: var(--font-latin); font-size: clamp(1.7rem, 5vw, 2.8rem);
  color: var(--accent); margin: 0.5rem 0 0.2rem; letter-spacing: 0.02em; direction: rtl;
}
.price-card .price-note { color: var(--ivory-faint); font-size: 0.82rem; }
.review-cta { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; margin-top: 1.8rem; }

/* footer of the journey nav */
.journey-foot { display: flex; align-items: center; justify-content: center; gap: 0.8rem; margin-top: clamp(1.8rem, 4vw, 3rem); }
.next-hint { color: var(--ivory-faint); font-size: 0.85rem; }

/* ════════════════════════════════════════════════════════════════════════
   HOME ENTRY (Step 1) — matches _ref/kinginsen-home-preview.html
   Frameless, label-less product grid · emboss-on-hover halo · silver entry.
   ════════════════════════════════════════════════════════════════════════ */

/* narrow, centred entry column */
.step.entry { max-width: 760px; margin-inline: auto; text-align: center; }

/* fixed, minimal back control (JS toggles visibility per step) */
.backbtn {
  position: fixed; top: 16px; inset-inline-start: 16px; z-index: 30;
  display: none; align-items: center; gap: 8px;
  color: var(--gold-soft); background: rgba(5, 22, 15, 0.65);
  border: 1px solid var(--hairline); border-radius: 999px;
  padding: 8px 15px; backdrop-filter: blur(8px);
  font-family: var(--font-fa); font-size: 13px; font-weight: 300; cursor: pointer;
  transition: border-color 0.3s, color 0.3s;
}
.backbtn:hover { border-color: var(--hairline-strong); color: var(--gold-soft); }
.backbtn .step { color: var(--ivory-faint); font-size: 11px; }

/* logo lockup (SVG) */
.home-logo { display: block; width: fit-content; margin: 8px auto 30px; }
.home-logo img {
  width: clamp(230px, 64vw, 360px); height: auto; opacity: 0.96;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.45));
}

.entry-eyebrow {
  color: var(--dim, #97A39A); font-weight: 200; font-size: 13px;
  margin: 0 0 30px; display: flex; align-items: center; justify-content: center; gap: 12px;
}
.entry-eyebrow::before, .entry-eyebrow::after {
  content: ""; height: 1px; width: 26px; background: var(--hairline);
}

/* ── frameless, label-less product grid ─────────────────────────────────── */
.product-grid { grid-template-columns: 1fr 1fr 1fr; gap: 8px 6px; }

/* override the framed base .opt styling for the entry products only */
.product-grid .opt {
  position: relative; overflow: visible;
  background: transparent; border: 0; box-shadow: none;
  padding: 26px 8px; border-radius: 20px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center;
  transition: transform 0.5s cubic-bezier(.2,.7,.3,1);
  -webkit-tap-highlight-color: transparent;
}
.product-grid .opt::after { content: none; display: none; }   /* kill base glow */
.product-grid .opt.selected { border: 0; box-shadow: none; }   /* no frame on auto-select */

/* golden halo that lifts the product on hover (برجسته) */
.product-grid .opt::before {
  content: ""; position: absolute; inset: 14% 18% 22%; border-radius: 50%;
  background: radial-gradient(circle, rgba(212,175,55,0.30), transparent 68%);
  opacity: 0; transform: scale(0.7); z-index: 0;
  transition: opacity 0.5s, transform 0.5s;
}
.product-grid .opt .ic {
  position: relative; z-index: 1; width: 62px; height: 62px; display: block;
  filter: drop-shadow(0 5px 12px rgba(0,0,0,0.55));
  transition: transform 0.5s cubic-bezier(.2,.7,.3,1), filter 0.5s;
}
.product-grid .opt .name {
  position: relative; z-index: 1; margin-top: 12px;
  font-family: var(--font-fa); font-weight: 300; font-size: 13px;
  color: var(--gold-soft); letter-spacing: 0.02em; pointer-events: none;
  opacity: 0; transform: translateY(4px);
  transition: opacity 0.45s, transform 0.45s;
}
.product-grid .opt:hover, .product-grid .opt:focus-visible { transform: translateY(-2px); outline: none; }
.product-grid .opt:hover::before, .product-grid .opt:focus-visible::before { opacity: 1; transform: scale(1); }
.product-grid .opt:hover .ic, .product-grid .opt:focus-visible .ic {
  transform: translateY(-8px) scale(1.14);
  filter: drop-shadow(0 16px 26px rgba(0,0,0,0.5)) drop-shadow(0 6px 16px rgba(212,175,55,0.5));
}
.product-grid .opt:hover .name, .product-grid .opt:focus-visible .name { opacity: 1; transform: translateY(0); }

/* ── silver order system — distinct entry ───────────────────────────────── */
.silver {
  display: flex; align-items: center; justify-content: center; gap: 15px;
  margin-top: 14px; padding: 17px 20px; border-radius: 16px; cursor: pointer;
  border: 1px solid rgba(199,206,209,0.22);
  background: linear-gradient(100deg, rgba(199,206,209,0.07), rgba(199,206,209,0.02));
  transition: transform 0.45s, border-color 0.45s, background 0.45s;
  -webkit-tap-highlight-color: transparent;
}
.silver:hover, .silver:focus-visible {
  transform: translateY(-3px); outline: none;
  border-color: rgba(199,206,209,0.55);
  background: linear-gradient(100deg, rgba(199,206,209,0.13), rgba(199,206,209,0.04));
}
.silver .ic { width: 42px; height: 42px; flex: none; filter: drop-shadow(0 6px 14px rgba(0,0,0,0.5)); }
.silver .txt { display: flex; flex-direction: column; gap: 1px; text-align: start; }
.silver .t1 { font-weight: 500; font-size: 15.5px; color: var(--silver-lt, #EAEEF0); }
.silver .t2 { font-family: var(--font-latin); font-size: 11px; letter-spacing: 0.26em; color: var(--silver); opacity: 0.7; }
.silver .chev { margin-inline-start: auto; color: var(--silver); opacity: 0.55; font-size: 20px; }

/* ── explore links (navigate) ───────────────────────────────────────────── */
.explore { display: flex; align-items: center; justify-content: center; gap: 0; margin-top: 36px; }
.explore a {
  color: var(--gold-soft); font-weight: 300; font-size: 15px;
  padding: 8px 22px; opacity: 0.88; transition: opacity 0.3s;
}
.explore a:hover { opacity: 1; }
.explore .sep { width: 1px; height: 15px; background: var(--hairline); }

@media (prefers-reduced-motion: reduce) {
  .product-grid .opt, .product-grid .opt .ic, .product-grid .opt .name,
  .product-grid .opt::before, .silver, .explore a, .backbtn { transition: none !important; }
}
