/* =============================================================
   APP TUTORIAL
   Swipeable feature-tour overlay shown once after first signup.
   Depends on: tokens.css
   ============================================================= */

/* ── Overlay ───────────────────────────────────────────────── */

.tutorial-overlay {
  position: fixed;
  inset: 0;
  z-index: 2100;
  background: var(--bg-color, #080b0a);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.tutorial-overlay[hidden] { display: none; }

/* ── Skip button (top-right) ───────────────────────────────── */

.tutorial-skip {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  padding: 6px 16px;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  background: transparent;
  color: var(--secondary-text);
  font-size: 0.82rem;
  cursor: pointer;
  box-shadow: none;
  margin: 0;
}

/* ── Slide track (horizontal scroll-snap) ──────────────────── */

.tutorial-track {
  flex: 1;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.tutorial-track::-webkit-scrollbar { display: none; }

/* ── Individual slide ──────────────────────────────────────── */

.tutorial-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 28px 32px;
  text-align: center;
  gap: 12px;
}

/* Icon container */
.tutorial-icon {
  width: 96px;
  height: 96px;
  border-radius: 28px;
  background: rgba(45, 125, 91, 0.12);
  border: 1px solid rgba(45, 125, 91, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.tutorial-icon svg {
  width: 44px;
  height: 44px;
  stroke: var(--primary, #2d7d5b);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tutorial-icon--highlight {
  background: linear-gradient(135deg, rgba(45,125,91,0.18), rgba(198,148,79,0.12));
  border-color: rgba(198, 148, 79, 0.3);
}

.tutorial-icon--highlight svg {
  stroke: var(--highlight, #c6944f);
}

/* Text */
.tutorial-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color);
  margin: 0;
  line-height: 1.3;
}

.tutorial-desc {
  font-size: 0.95rem;
  color: var(--secondary-text);
  margin: 0;
  line-height: 1.55;
  max-width: 320px;
}

/* Feature chips shown on some slides */
.tutorial-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 8px;
}

.tutorial-chip {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(45,125,91,0.3);
  background: rgba(45,125,91,0.08);
  color: var(--secondary-text);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: default;
  box-shadow: none;
  margin: 0;
}

/* ── Bottom controls ───────────────────────────────────────── */

.tutorial-controls {
  padding: 20px 28px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* Dot indicators */
.tutorial-dots {
  display: flex;
  gap: 8px;
}

.tutorial-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-color);
  transition: background 0.25s, transform 0.25s;
}

.tutorial-dot.active {
  background: var(--primary, #2d7d5b);
  transform: scale(1.3);
}

/* CTA button */
.tutorial-cta {
  width: 100%;
  max-width: 320px;
  padding: 14px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #38a870 0%, var(--primary) 55%, #245f47 100%);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity 0.2s;
  box-shadow: 0 4px 16px rgba(45,125,91,0.35);
  margin: 0;
}

/* ── Swipe hint animation ──────────────────────────────────── */

@keyframes tutorial-nudge {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(-8px); }
}

.tutorial-slide:first-child::after {
  content: '';
  display: block;
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: var(--border-color);
  margin-top: 20px;
  animation: tutorial-nudge 2s ease-in-out infinite;
}
