.jp-feature-slider {
  --jp-ink: #3b352e;
  --jp-ivory: #e1dad3;
  --jp-paper: #faf7f3;
  --jp-muted: #8d8478;
  --jp-line: #cfc6ba;
  --jp-rose: #d7a49a;
  --jp-rose-deep: #b57e71;
  --jp-rose-soft: #ecd6d0;
  --card-ink: #3b352e;
  --card-qr: #fff;
  scroll-margin-top: 6.5rem;
  margin-top: 2.25rem;
  color: inherit;
}

.jp-feature-slider .jp-how-ui-qr {
  align-items: center;
  justify-content: center;
  padding: 8px 16px 16px;
  background: var(--jp-ivory);
}

.jp-feature-slider .jp-how-qr-sheet {
  width: 100%;
  border: 1px solid var(--jp-line);
  border-radius: 1.4rem;
  background: var(--jp-paper);
  color: var(--jp-ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  text-align: center;
  padding: 0.85rem 0.7rem 1rem;
  box-shadow: 0 18px 36px -24px rgba(28, 42, 68, 0.55);
}

.jp-feature-slider .jp-how-qr-sheet .jp-how-display { font-size: 15px; font-weight: 700; line-height: 1.15; }
.jp-feature-slider .jp-how-qr-sheet .jp-how-mono {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--jp-rose-deep);
}
.jp-feature-slider .jp-how-qr-note { margin: 0; font-size: 9px; color: var(--jp-muted); }
.jp-feature-slider .jp-how-qr {
  width: 72%;
  aspect-ratio: 1;
  border-radius: 0.45rem;
  background:
    linear-gradient(var(--card-ink) 0 0) 18% 18% / 22% 22% no-repeat,
    linear-gradient(var(--card-ink) 0 0) 60% 18% / 22% 22% no-repeat,
    linear-gradient(var(--card-ink) 0 0) 18% 60% / 22% 22% no-repeat,
    repeating-linear-gradient(90deg, var(--card-ink) 0 2px, transparent 2px 5px),
    repeating-linear-gradient(0deg, var(--card-ink) 0 2px, transparent 2px 5px),
    var(--card-qr);
}

.jp-feature-head {
  max-width: 40rem;
  margin: 0 auto 0.5rem;
  text-align: center;
}

.jp-feature-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.3rem 0.75rem;
  border: 1px solid color-mix(in srgb, currentColor 32%, transparent);
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.jp-feature-title {
  margin: 0.7rem 0 0;
  font-size: clamp(1.15rem, 2.4vw, 1.85rem);
  font-weight: 800;
  line-height: 1.2;
  color: inherit;
}

.jp-feature-sub {
  margin: 0.55rem 0 0;
  font-size: 0.875rem;
  line-height: 1.55;
  opacity: 0.78;
}

.jp-feature-slider .jp-tour {
  overflow: hidden;
  color: inherit;
  background: transparent;
}

.jp-feature-slider .jp-how-phone { width: 100%; }
.jp-feature-slider .jp-how-phone-scale { transform: scale(0.64); }
.jp-feature-slider .jp-how-bezel { box-shadow: 0 12px 22px -14px rgba(15, 23, 42, 0.45); }

.jp-feature-slider .jp-tour-stage {
  position: relative;
  min-height: 15rem;
  margin-top: 0.35rem;
  touch-action: pan-y;
  user-select: none;
  cursor: grab;
}

.jp-feature-slider .jp-tour-stage.is-drag { cursor: grabbing; }

.jp-feature-slider .jp-tour-card {
  width: min(11rem, 46vw);
  margin: 0 auto;
  transform-origin: center center;
}

.jp-feature-slider .jp-tour:not(.is-ready) .jp-tour-card { display: none; }
.jp-feature-slider .jp-tour:not(.is-ready) .jp-tour-card:first-child { display: block; }

.jp-feature-slider .jp-tour.is-ready .jp-tour-card {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  margin: 0;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s;
}

.jp-feature-slider .jp-tour-captions { min-height: 11rem; margin-top: 0.35rem; }
.jp-feature-slider .jp-tour-copy { max-width: 36rem; margin: 0.2rem auto 0; text-align: center; }
.jp-feature-slider .jp-tour-copy[hidden] { display: none !important; }

.jp-feature-slider .jp-tour-badge {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
}

.jp-feature-slider .jp-tour-copy h3 {
  margin: 0.3rem 0 0;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 800;
  line-height: 1.25;
  color: inherit;
}

.jp-feature-slider .jp-tour-body {
  margin: 0.4rem 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
  opacity: 0.78;
}

.jp-feature-slider .jp-tour-points {
  margin: 0.75rem auto 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
  max-width: 32rem;
  text-align: left;
}

.jp-feature-slider .jp-tour-points li {
  display: flex;
  gap: 0.45rem;
  align-items: flex-start;
  font-size: 0.8125rem;
  line-height: 1.45;
}

.jp-feature-slider .jp-tour-points p { margin: 0; }
.jp-feature-slider .jp-tour-points li { opacity: 0.9; }

.jp-feature-slider .jp-tour-check {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  margin-top: 0.12rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, currentColor 14%, transparent);
  color: inherit;
}

.jp-feature-slider .jp-tour-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.jp-feature-slider .jp-tour-nav button[data-jp-tour-prev],
.jp-feature-slider .jp-tour-nav button[data-jp-tour-next] {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, currentColor 35%, transparent);
  background: transparent;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.jp-feature-slider .jp-tour-nav button:hover {
  background: color-mix(in srgb, currentColor 8%, transparent);
}

.jp-feature-slider .jp-tour-nav svg { width: 14px; height: 14px; }
.jp-feature-slider .jp-tour-dots { display: flex; align-items: center; gap: 0.4rem; }

.jp-feature-slider .jp-tour-dot {
  width: 0.45rem;
  height: 0.45rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, currentColor 32%, transparent);
  cursor: pointer;
}

.jp-feature-slider .jp-tour-dot.is-on { width: 1.15rem; background: currentColor; }

.jp-feature-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1.1rem;
}

.jp-feature-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, currentColor 40%, transparent);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.2;
  color: inherit;
  text-decoration: none;
}

.jp-feature-actions a:hover {
  background: color-mix(in srgb, currentColor 8%, transparent);
}

@media (prefers-reduced-motion: reduce) {
  .jp-feature-slider .jp-tour.is-ready .jp-tour-card { transition: none; }
}
