:root {
  --guided-ink: #302833;
  --guided-muted: #6f6572;
  --guided-plum: #6d405c;
  --guided-plum-dark: #553248;
  --guided-rose: #bd7a89;
  --guided-sage: #768a78;
  --guided-line: rgba(72, 53, 68, 0.12);
  --guided-surface: rgba(255, 253, 251, 0.96);
}

html.janan-guided-entry-open,
html.janan-guided-entry-open body {
  overflow: hidden !important;
}

.janan-guided-entry {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display: grid;
  place-items: center;
  padding: clamp(12px, 2vw, 30px);
  color: var(--guided-ink);
  background:
    radial-gradient(circle at 12% 14%, rgba(190, 129, 143, 0.18), transparent 34%),
    radial-gradient(circle at 84% 86%, rgba(118, 138, 120, 0.16), transparent 30%),
    #f3efeb;
  direction: rtl;
  isolation: isolate;
}

.janan-guided-entry::before,
.janan-guided-entry::after {
  position: absolute;
  z-index: -1;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(109, 64, 92, 0.08);
  border-radius: 50%;
  content: "";
}

.janan-guided-entry::before { inset-block-start: -130px; inset-inline-end: -70px; }
.janan-guided-entry::after { inset-block-end: -150px; inset-inline-start: -90px; }

.janan-guided-entry *,
.janan-guided-entry *::before,
.janan-guided-entry *::after { box-sizing: border-box; }

.janan-guided-entry button,
.janan-guided-entry input { font: inherit; }

.janan-guided-entry button { cursor: pointer; }

.janan-guided-entry__shell {
  display: grid;
  grid-template-columns: minmax(330px, 0.78fr) minmax(560px, 1.22fr);
  width: min(1180px, 100%);
  height: min(820px, calc(100dvh - clamp(24px, 4vw, 60px)));
  min-height: 650px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 34px;
  background: var(--guided-surface);
  box-shadow: 0 32px 90px rgba(60, 43, 54, 0.16), 0 3px 10px rgba(60, 43, 54, 0.05);
  direction: ltr;
}

.janan-guided-entry__visual {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #ded5cb;
  direction: rtl;
}

.janan-guided-entry__visual::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 46%, rgba(40, 29, 35, 0.72) 100%);
  content: "";
  pointer-events: none;
}

.janan-guided-entry__visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 50%;
}

.janan-guided-entry__visual-copy {
  position: absolute;
  z-index: 1;
  inset-inline: 28px;
  inset-block-end: 28px;
  display: grid;
  gap: 7px;
  color: #fff;
  text-align: right;
}

.janan-guided-entry__visual-copy span {
  width: fit-content;
  padding: 5px 9px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.janan-guided-entry__visual-copy strong {
  max-width: 340px;
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  line-height: 1.55;
}

.janan-guided-entry__panel {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  padding: 26px clamp(28px, 4vw, 58px) 20px;
  background:
    linear-gradient(130deg, rgba(255,255,255,.94), rgba(255,252,250,.96)),
    var(--guided-surface);
  direction: rtl;
}

.janan-guided-entry__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.janan-guided-entry__brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--guided-ink);
  font-size: 19px;
  font-weight: 900;
  text-decoration: none;
}

.janan-guided-entry__brand i {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(145deg, #845771, #5c3c51);
  box-shadow: 0 8px 20px rgba(92,60,81,.2);
  font-style: normal;
}

.janan-guided-entry__secure {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--guided-muted);
  font-size: 12px;
  font-weight: 750;
}

.janan-guided-entry__secure span { color: var(--guided-sage); font-size: 19px; }

.janan-guided-entry__progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(20px, 1fr)) auto;
  align-items: center;
  gap: 7px;
  margin: 22px 0 8px;
}

.janan-guided-entry__progress > span {
  height: 4px;
  border-radius: 999px;
  background: #ece5e8;
  transition: background .25s ease;
}

.janan-guided-entry__progress > span.is-active {
  background: linear-gradient(90deg, var(--guided-rose), var(--guided-plum));
}

.janan-guided-entry__progress small {
  margin-inline-start: 7px;
  color: var(--guided-muted);
  font-size: 11px;
  white-space: nowrap;
}

.janan-guided-entry__progress b { color: var(--guided-plum); }

.janan-guided-entry__content {
  min-height: 0;
  overflow-y: auto;
  padding: 16px 4px 26px;
  scrollbar-width: thin;
  scrollbar-color: rgba(109,64,92,.25) transparent;
}

.janan-guided-entry__intro { max-width: 660px; }

.janan-guided-entry__intro--compact { margin-block-start: 16px; }

.janan-guided-entry__eyebrow {
  margin: 0 0 7px;
  color: var(--guided-plum);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .02em;
}

.janan-guided-entry__intro h1,
.janan-guided-summary h1 {
  margin: 0;
  color: var(--guided-ink);
  font-size: clamp(1.75rem, 3.4vw, 2.65rem);
  line-height: 1.42;
  letter-spacing: -.03em;
}

.janan-guided-entry__intro > p:last-child,
.janan-guided-summary > p {
  margin: 10px 0 0;
  color: var(--guided-muted);
  font-size: 14px;
  line-height: 1.9;
}

.janan-path-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.janan-path-card,
.janan-guided-entry__unsure {
  border: 1px solid var(--guided-line);
  color: var(--guided-ink);
  background: rgba(255,255,255,.78);
  text-align: right;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.janan-path-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 11px;
  min-height: 94px;
  padding: 14px;
  border-radius: 20px;
}

.janan-path-card:hover,
.janan-path-card:focus-visible,
.janan-path-card[aria-checked="true"] {
  transform: translateY(-2px);
  border-color: rgba(109,64,92,.32);
  background: #fff;
  box-shadow: 0 12px 28px rgba(65,43,57,.09);
  outline: none;
}

.janan-path-card > span:not(.janan-path-icon) { display: grid; gap: 5px; min-width: 0; }
.janan-path-card strong { font-size: 14px; line-height: 1.55; }
.janan-path-card small { color: var(--guided-muted); font-size: 11.5px; line-height: 1.65; }
.janan-path-card > b { color: #a99aa4; font-size: 22px; text-align: center; }

.janan-path-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  border-radius: 17px;
  font-size: 22px;
  font-weight: 900;
}

.janan-path-icon--rose { color: #8f5364; background: #f7e5e9; }
.janan-path-icon--plum { color: #694158; background: #eee4ea; }
.janan-path-icon--sage { color: #647968; background: #e7efe8; }
.janan-path-icon--gold { color: #866a3c; background: #f5eedf; }
.janan-path-icon--clay { color: #9a6557; background: #f5e9e5; }
.janan-path-icon--lavender { color: #705e82; background: #ece8f3; }

.janan-guided-entry__unsure {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 10px;
  padding: 10px 14px;
  border-style: dashed;
  border-radius: 17px;
}

.janan-guided-entry__unsure:hover { border-color: rgba(109,64,92,.35); background: #fff; }
.janan-guided-entry__unsure > span:first-child { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 12px; color: var(--guided-plum); background: #f2eaee; font-weight: 900; }
.janan-guided-entry__unsure > span:last-child { display: grid; gap: 2px; }
.janan-guided-entry__unsure strong { font-size: 13px; }
.janan-guided-entry__unsure small { color: var(--guided-muted); font-size: 11px; }

.janan-guided-entry__back {
  min-height: 40px;
  padding: 6px 0;
  border: 0;
  color: var(--guided-plum);
  background: transparent;
  font-size: 12px;
  font-weight: 850;
}

.janan-guided-entry__back:hover { color: var(--guided-plum-dark); }
.janan-guided-entry__back--center { margin-inline: auto; }

.janan-guided-entry__selected {
  display: flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
  margin-top: 2px;
  padding: 8px 12px 8px 16px;
  border: 1px solid var(--guided-line);
  border-radius: 18px;
  background: rgba(255,255,255,.82);
}

.janan-guided-entry__selected .janan-path-icon { width: 40px; height: 40px; flex-basis: 40px; border-radius: 14px; font-size: 18px; }
.janan-guided-entry__selected > span:last-child { display: grid; gap: 1px; }
.janan-guided-entry__selected small { color: var(--guided-muted); font-size: 10px; }
.janan-guided-entry__selected strong { font-size: 13px; }

.janan-guided-form { display: grid; gap: 20px; margin-top: 20px; }
.janan-guided-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.janan-guided-form legend { margin-bottom: 10px; color: #4a404b; font-size: 13px; font-weight: 850; }
.janan-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.janan-choice-grid label { cursor: pointer; }
.janan-choice-grid input { position: absolute; opacity: 0; pointer-events: none; }
.janan-choice-grid span {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--guided-line);
  border-radius: 15px;
  color: #554b56;
  background: rgba(255,255,255,.78);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.55;
  transition: .18s ease;
}
.janan-choice-grid input:checked + span { border-color: var(--guided-plum); color: var(--guided-plum-dark); background: #f6edf1; box-shadow: inset 0 0 0 1px var(--guided-plum); }
.janan-choice-grid input:focus-visible + span { outline: 3px solid rgba(109,64,92,.2); outline-offset: 2px; }

.janan-guided-form__actions { display: flex; align-items: center; gap: 12px; margin-top: 2px; }
.janan-guided-entry__primary {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 20px;
  border: 0;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #805269, #5f3b50);
  box-shadow: 0 12px 28px rgba(95,59,80,.2);
  font-size: 13px;
  font-weight: 900;
}
.janan-guided-entry__primary:hover { background: linear-gradient(135deg, #74475f, #523346); }
.janan-guided-entry__primary:disabled { cursor: not-allowed; opacity: .42; box-shadow: none; }
.janan-guided-entry__skip { min-height: 44px; padding: 8px 10px; border: 0; color: var(--guided-muted); background: transparent; font-size: 11px; font-weight: 800; }

.janan-helper-list { display: grid; gap: 8px; margin-top: 22px; }
.janan-helper-list button {
  min-height: 50px;
  padding: 11px 14px;
  border: 1px solid var(--guided-line);
  border-radius: 15px;
  color: #4e444f;
  background: rgba(255,255,255,.78);
  text-align: right;
  font-size: 12px;
  font-weight: 750;
}
.janan-helper-list button:hover { border-color: rgba(109,64,92,.34); background: #fff; }

.janan-guided-summary { display: grid; justify-items: start; max-width: 600px; margin: 24px auto 0; text-align: right; }
.janan-guided-summary__mark { position: relative; margin-bottom: 15px; }
.janan-guided-summary__mark .janan-path-icon { width: 64px; height: 64px; border-radius: 22px; font-size: 28px; }
.janan-guided-summary__mark > i { position: absolute; inset-inline-start: -5px; inset-block-end: -5px; width: 26px; height: 26px; display: grid; place-items: center; border: 3px solid #fff; border-radius: 50%; color: #fff; background: var(--guided-sage); font-size: 12px; font-style: normal; }
.janan-guided-summary ul { width: 100%; display: grid; gap: 9px; margin: 22px 0; padding: 0; list-style: none; }
.janan-guided-summary li { display: flex; align-items: center; gap: 9px; color: #4f4650; font-size: 13px; font-weight: 700; }
.janan-guided-summary li span { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; color: var(--guided-sage); background: #eaf1eb; font-size: 11px; }
.janan-guided-summary aside { display: grid; gap: 4px; width: 100%; margin-bottom: 20px; padding: 13px 15px; border: 1px solid rgba(118,138,120,.18); border-radius: 15px; background: #f3f7f3; }
.janan-guided-summary aside strong { color: #4d6251; font-size: 12px; }
.janan-guided-summary aside span { color: #68716a; font-size: 11px; line-height: 1.75; }
.janan-guided-summary .janan-guided-entry__primary { width: 100%; }

.janan-guided-entry__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 18px;
  padding-top: 12px;
  border-top: 1px solid var(--guided-line);
  color: var(--guided-muted);
  font-size: 10.5px;
}
.janan-guided-entry__footer span { display: inline-flex; align-items: center; gap: 5px; }
.janan-guided-entry__footer i { color: var(--guided-sage); font-style: normal; font-weight: 900; }

@media (max-width: 860px) {
  .janan-guided-entry { padding: 0; place-items: stretch; }
  .janan-guided-entry__shell { grid-template-columns: 1fr; width: 100%; height: 100dvh; min-height: 0; border: 0; border-radius: 0; }
  .janan-guided-entry__visual { display: none; }
  .janan-guided-entry__panel { padding: 18px clamp(16px, 5vw, 28px) calc(14px + env(safe-area-inset-bottom)); }
  .janan-guided-entry__progress { margin-top: 16px; }
  .janan-guided-entry__content { padding-top: 12px; }
}

@media (max-width: 520px) {
  .janan-guided-entry__secure { font-size: 10px; }
  .janan-guided-entry__brand span { font-size: 17px; }
  .janan-guided-entry__intro h1,
  .janan-guided-summary h1 { font-size: clamp(1.55rem, 8vw, 2rem); }
  .janan-guided-entry__intro > p:last-child,
  .janan-guided-summary > p { font-size: 12.5px; }
  .janan-path-grid { grid-template-columns: 1fr; margin-top: 18px; }
  .janan-path-card { min-height: 76px; grid-template-columns: 42px minmax(0,1fr) 16px; padding: 10px 12px; border-radius: 17px; }
  .janan-path-icon { width: 42px; height: 42px; flex-basis: 42px; border-radius: 14px; font-size: 19px; }
  .janan-path-card small { font-size: 11px; }
  .janan-choice-grid { grid-template-columns: 1fr; }
  .janan-guided-form { gap: 16px; }
  .janan-guided-form__actions { align-items: stretch; flex-direction: column; }
  .janan-guided-entry__primary { width: 100%; }
  .janan-guided-entry__footer { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .janan-guided-entry *,
  .janan-guided-entry *::before,
  .janan-guided-entry *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
.janan-guided-entry__topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.janan-guided-entry__close {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border: 1px solid rgba(94, 50, 66, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #5e3242;
  font: inherit;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.janan-guided-entry__close:hover {
  border-color: rgba(94, 50, 66, 0.32);
  background: #fff;
  transform: translateY(-1px);
}

.janan-guided-entry__close:focus-visible {
  outline: 3px solid rgba(130, 74, 96, 0.28);
  outline-offset: 2px;
}
