/* App Tour — Cultivate shell + dark app phone mockups */

.tour-page {
  min-height: 100vh;
  background: #e7e5df;
  color: #2b271f;
}

.tour-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: rgba(244, 240, 230, 0.96);
  border-bottom: 1px solid #e0d8c4;
  backdrop-filter: blur(12px);
}

.tour-header a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #8a8475;
  text-decoration: none;
}

.tour-header a:hover { color: #9a3d23; }

.tour-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Spectral', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: #2b271f;
  text-decoration: none;
}

.tour-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 6rem;
  align-items: center;
}

.tour-copy .tour-step-tag {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9a3d23;
  margin-bottom: 0.75rem;
}

.tour-copy h1 {
  font-family: 'Spectral', Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  line-height: 1.15;
  color: #2b271f;
  margin-bottom: 0.5rem;
}

.tour-copy .tour-subtitle {
  font-size: 1rem;
  font-weight: 600;
  color: #9a3d23;
  margin-bottom: 1rem;
}

.tour-copy p {
  font-size: 1rem;
  line-height: 1.65;
  color: #5b564a;
  margin-bottom: 1.25rem;
}

.tour-tip {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(199, 86, 54, 0.08);
  border: 1px solid rgba(199, 86, 54, 0.18);
  font-size: 0.85rem;
  color: #5b564a;
}

.tour-tip strong { color: #9a3d23; }

.tour-nav-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 1rem 1.5rem;
  background: rgba(244, 240, 230, 0.98);
  border-top: 1px solid #e0d8c4;
  backdrop-filter: blur(12px);
}

.tour-dots {
  display: flex;
  gap: 0.4rem;
}

.tour-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: #cabfa6;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s;
}

.tour-dot.active {
  width: 24px;
  border-radius: 4px;
  background: #c75636;
}

.tour-dot.done { background: rgba(199, 86, 54, 0.45); }

.tour-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
}

.tour-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.tour-nav-back {
  background: transparent;
  color: #5b564a;
  border: 1.5px solid #cabfa6;
}

.tour-nav-back:not(:disabled):hover {
  background: rgba(43, 39, 31, 0.05);
}

.tour-nav-next {
  background: #2b271f;
  color: #f4f0e6;
}

.tour-nav-next:hover {
  background: #3d3830;
}

/* Phone frame */
.phone-frame {
  width: min(320px, 100%);
  margin: 0 auto;
  border-radius: 36px;
  padding: 12px;
  background: linear-gradient(145deg, #3d3830, #2b271f);
  box-shadow: 0 24px 60px rgba(43, 39, 31, 0.25), 0 0 0 1px rgba(255,255,255,0.08) inset;
}

.phone-screen {
  position: relative;
  aspect-ratio: 9 / 19;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 24px;
  background: #020617;
  border-radius: 0 0 16px 16px;
  z-index: 5;
}

.tour-screenshot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* App chrome inside phone */
.app-chrome {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
}

.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 36px 14px 8px;
  z-index: 4;
}

.app-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
}

.app-brand-pill {
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.02em;
}

.app-viz {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.app-mandala {
  position: relative;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 1px solid rgba(139, 92, 246, 0.2);
  opacity: 0.5;
  animation: mandala-spin 24s linear infinite;
}

.app-mandala::before,
.app-mandala::after {
  content: '';
  position: absolute;
  inset: 20%;
  border-radius: 50%;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.app-mandala::after {
  inset: 35%;
  border-color: rgba(199, 86, 54, 0.3);
}

@keyframes mandala-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.app-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  z-index: 2;
}

/* Rolodex cards */
.rolodex {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  perspective: 800px;
}

.mock-card {
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.15);
  background: linear-gradient(145deg, rgba(30,41,59,0.95), rgba(15,23,42,0.98));
  padding: 14px;
  color: #fff;
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}

.mock-card.side {
  width: 52px;
  height: 140px;
  opacity: 0.45;
  transform: scale(0.85);
  flex-shrink: 0;
}

.mock-card.center {
  width: 100%;
  max-width: 220px;
  z-index: 2;
  margin: 0 -8px;
}

.mock-card-header {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.mock-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.mock-card-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.mock-card-desc {
  font-size: 10px;
  color: rgba(255,255,255,0.65);
  margin-top: 2px;
}

.mock-card-hz {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  color: rgba(255,255,255,0.45);
  margin-top: 4px;
}

.mock-toggles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.mock-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 6px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.6);
}

.mock-toggle.on {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.25);
  color: #fff;
}

.mock-toggle.on::after {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse-dot 1.5s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.mock-toggle.wide {
  grid-column: span 2;
}

/* Bottom player */
.app-bottom {
  padding: 8px 12px 20px;
  z-index: 4;
}

.mock-player {
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
}

.mock-player-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.mock-player-label {
  font-size: 10px;
  font-weight: 600;
  color: #60a5fa;
}

.mock-player-track {
  font-size: 9px;
  color: rgba(255,255,255,0.5);
}

.mock-scrubber {
  height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,0.15);
  margin-bottom: 8px;
  overflow: hidden;
}

.mock-scrubber-fill {
  width: 38%;
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  border-radius: 2px;
}

.mock-player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.mock-play-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(139,92,246,0.4);
}

/* Volume panel overlay */
.mock-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 10;
  display: flex;
  align-items: flex-start;
  padding: 48px 12px 12px;
}

.mock-panel {
  width: 100%;
  border-radius: 16px;
  padding: 14px;
  background: linear-gradient(145deg, rgba(30,41,59,0.98), rgba(15,23,42,0.99));
  border: 1px solid rgba(255,255,255,0.12);
}

.mock-panel h3 {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.mock-slider-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.mock-slider-label {
  font-size: 9px;
  color: rgba(255,255,255,0.55);
  width: 52px;
  flex-shrink: 0;
}

.mock-slider-track {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.12);
  overflow: hidden;
}

.mock-slider-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, #c75636, #e6924f);
}

/* Research overlay */
.mock-research {
  position: absolute;
  inset: 16px 10px;
  top: 56px;
  border-radius: 16px;
  padding: 12px;
  background: linear-gradient(145deg, rgba(30,41,59,0.98), rgba(15,23,42,0.99));
  border: 1px solid rgba(255,255,255,0.12);
  z-index: 10;
  overflow: hidden;
}

.mock-research h3 {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.mock-research .hz {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: #e6924f;
  margin-bottom: 8px;
}

.mock-study-mini {
  padding: 8px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 6px;
}

.mock-study-mini p {
  font-size: 9px;
  color: rgba(255,255,255,0.75);
  line-height: 1.4;
  margin: 0;
}

.mock-badge {
  display: inline-block;
  font-size: 7px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 20px;
  background: rgba(74, 222, 128, 0.15);
  color: #4ade80;
  margin-bottom: 4px;
}

/* Welcome screen inside phone */
.app-welcome {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  z-index: 2;
}

.app-welcome .bloom {
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
}

.app-welcome h2 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.app-welcome p {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
}

.tour-step-panel { display: none; }
.tour-step-panel.active { display: block; }

@media (max-width: 900px) {
  .tour-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-bottom: 7rem;
  }
  .phone-frame { max-width: 280px; }
}
