/* ============================================
   Blockit - Interactive Demo Styles
   ============================================ */

/* --- Demo Sections --- */
.demo-section {
  padding: 80px 0;
  background: var(--bg-page);
}

.demo-section:nth-child(even) {
  background: var(--grey-50);
}

.demo-layout {
  display: flex;
  align-items: center;
  gap: 64px;
}

.demo-layout--reverse {
  flex-direction: row-reverse;
}

.demo-text {
  flex: 1;
  min-width: 0;
}

.demo-text .demo-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--blue-50);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.demo-text h2 {
  margin-bottom: 16px;
}

.demo-text p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 12px;
}

.demo-text p:last-child {
  margin-bottom: 0;
}

.demo-phone {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --- Phone Frame --- */
.phone-frame {
  width: 300px;
  height: 620px;
  background: #000;
  border-radius: 44px;
  padding: 12px;
  position: relative;
  box-shadow:
    0 0 0 2px #1a1a1a,
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 8px 24px rgba(0, 0, 0, 0.15),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 34px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Dynamic Island */
.phone-notch {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 28px;
  background: #000;
  border-radius: 20px;
  z-index: 10;
}

/* Status Bar */
.phone-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 24px 0;
  height: 52px;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  color: #1a1a1a;
  position: relative;
  z-index: 5;
}

.phone-status-bar .status-time {
  font-weight: 700;
  font-size: 13px;
}

.phone-status-icons {
  display: flex;
  align-items: center;
  gap: 5px;
}

.phone-status-icons svg {
  width: 16px;
  height: 16px;
}

/* Screen Content Area */
.phone-content {
  flex: 1;
  overflow: hidden;
  position: relative;
  padding: 8px 16px 0;
}

/* Home Bar (App Dock) */
.phone-home-bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 10px 16px 16px;
  background: rgba(245, 245, 245, 0.95);
  border-top: 1px solid var(--grey-200);
}

.phone-app-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.3s ease, filter 0.3s ease;
  position: relative;
}

.phone-app-icon:hover {
  transform: scale(1.08);
}

.phone-app-icon:active {
  transform: scale(0.95);
}

.phone-app-icon.greyed-out {
  opacity: 0.3;
  filter: grayscale(0.5);
  pointer-events: none;
  cursor: default;
}

.phone-app-icon.greyed-out:hover {
  transform: none;
}

/* App Icon Colors */
.phone-app-icon.instagram {
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.phone-app-icon.tiktok {
  background: #000;
}

.phone-app-icon.facebook {
  background: #1877F2;
}

.phone-app-icon svg {
  width: 26px;
  height: 26px;
  fill: #fff;
}

.phone-app-icon .app-icon-label {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* Home Indicator */
.phone-home-indicator {
  width: 120px;
  height: 4px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 2px;
  margin: 0 auto 8px;
}

/* --- Overlay Screens --- */
.phone-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.97);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.phone-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.phone-overlay.social-feed-active {
  padding: 0;
  align-items: stretch;
  justify-content: flex-start;
  background: #fff;
}

/* Blocked Overlay */
.blocked-overlay {
  text-align: center;
}

.blocked-overlay .blocked-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.blocked-overlay h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.blocked-overlay p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 4px;
}

.blocked-overlay .blocked-time {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  margin: 16px 0;
  font-variant-numeric: tabular-nums;
}

.blocked-overlay .blocked-buttons {
  width: 100%;
  max-width: 240px;
  margin: 12px auto 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.blocked-overlay .blocked-dismiss {
  padding: 10px 24px;
  background: none;
  border: 1.5px solid var(--grey-300);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-stack);
}

.blocked-overlay .blocked-dismiss:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* --- Focus Session Demo --- */
.focus-profile-card {
  background: #fff;
  border: 1.5px solid var(--grey-200);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 14px;
  transition: all 0.3s ease;
}

.focus-profile-card.active {
  border-color: var(--accent);
  background: var(--blue-50);
  box-shadow: 0 4px 16px rgba(30, 136, 229, 0.12);
}

.focus-profile-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.focus-profile-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--blue-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.focus-profile-card.active .focus-profile-icon {
  background: rgba(255, 255, 255, 0.8);
}

.focus-profile-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.focus-profile-detail {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 1px;
}

.focus-apps-row {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}

.focus-app-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--grey-100);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
}

.focus-profile-card.active .focus-app-chip {
  background: rgba(255, 255, 255, 0.7);
}

.focus-app-chip .chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.focus-duration-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.focus-duration-pill {
  flex: 1;
  padding: 8px 0;
  border: 1.5px solid var(--grey-200);
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  font-family: var(--font-stack);
}

.focus-duration-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.focus-duration-pill.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.focus-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-stack);
}

.focus-btn-start {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(30, 136, 229, 0.25);
}

.focus-btn-start:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(30, 136, 229, 0.3);
}

.focus-btn-stop {
  background: #E53935;
  color: #fff;
  box-shadow: 0 4px 12px rgba(229, 57, 53, 0.25);
}

.focus-btn-stop:hover {
  background: #C62828;
}

.focus-timer {
  text-align: center;
  margin-bottom: 14px;
}

.focus-timer-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.focus-timer-label {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.focus-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 12px;
}

.focus-status-badge.active {
  background: #E8F5E9;
  color: #43A047;
}

.focus-status-badge .pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #43A047;
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

/* --- Scroll Wheel Picker --- */
.picker-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  position: relative;
  height: 150px;
  background: var(--grey-50, #f5f5f5);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 16px;
}

.picker-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  height: 100%;
  width: 50%;
}

.picker-column-divider {
  width: 1px;
  height: 60%;
  background: var(--grey-200, #e0e0e0);
  flex-shrink: 0;
  align-self: center;
}

.picker-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary, #666);
  text-align: center;
  padding: 10px 0 4px;
  flex-shrink: 0;
}

.picker-scroll {
  flex: 1;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  position: relative;
  width: 100%;
}

.picker-scroll::-webkit-scrollbar {
  display: none;
}

.picker-item {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 400;
  color: var(--grey-400, #bdbdbd);
  scroll-snap-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
  font-variant-numeric: tabular-nums;
  user-select: none;
  font-family: var(--font-stack, 'Inter', sans-serif);
}

.picker-item.selected {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary, #1a1a1a);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  margin: 0 8px;
}

/* Highlight band across the picker */
.picker-highlight {
  position: absolute;
  top: 50%;
  left: 8px;
  right: 8px;
  height: 40px;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.85);
  border-radius: 10px;
  pointer-events: none;
  z-index: 1;
}

.picker-scroll {
  z-index: 2;
}

/* --- Profile Dropdown --- */
.focus-profile-dropdown {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 0 0 20px 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  z-index: 30;
  padding: 16px;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  pointer-events: none;
}

.focus-profile-dropdown.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.focus-dropdown-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.focus-dropdown-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.focus-dropdown-profile:hover {
  background: var(--grey-50, #f5f5f5);
}

.focus-dropdown-profile.active {
  background: var(--blue-50, #e3f2fd);
}

.focus-dropdown-profile-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.focus-dropdown-profile-icon.blue { background: var(--blue-50, #e3f2fd); }
.focus-dropdown-profile-icon.purple { background: #F3E5F5; }
.focus-dropdown-profile-icon.green { background: #E8F5E9; }

.focus-dropdown-profile-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.focus-dropdown-profile-desc {
  font-size: 10px;
  color: var(--text-secondary);
  margin-top: 1px;
}

.focus-dropdown-divider {
  height: 1px;
  background: var(--grey-200, #e0e0e0);
  margin: 8px 0;
}

.focus-dropdown-info {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 4px;
}

.focus-dropdown-info svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 1px;
}

.focus-dropdown-info p {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.focus-dropdown-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.2);
  z-index: 29;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.focus-dropdown-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* --- Intervention Shared Styles --- */
.intervention-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 8px 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.intervention-screen.active {
  opacity: 1;
}

.intervention-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 4px;
}

.intervention-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 16px;
}

.intervention-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* Completion state */
.intervention-complete {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  padding: 16px;
  background: #fff;
  z-index: 15;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.intervention-complete.active {
  opacity: 1;
  pointer-events: auto;
}

.usage-count-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
  width: 100%;
}

.usage-count-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--blue-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.usage-count-icon svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.usage-count-text {
  font-size: 12px;
  color: var(--text-primary);
  line-height: 1.4;
}

.usage-count-text strong {
  font-weight: 700;
}

.intervention-btn {
  width: 100%;
  padding: 11px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  font-family: var(--font-stack);
}

.intervention-btn-cancel {
  background: var(--accent);
  color: #fff;
  border: none;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px rgba(30, 136, 229, 0.2);
}

.intervention-btn-cancel:hover {
  background: var(--accent-hover);
}

.intervention-btn-continue {
  background: #fff;
  color: var(--text-secondary);
  border: 1.5px solid var(--grey-300);
}

.intervention-btn-continue:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Idle prompt (tap an app) */
.intervention-idle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: 20px;
  gap: 16px;
}

.intervention-idle-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.intervention-idle svg {
  width: 64px;
  height: 64px;
  color: var(--accent);
  filter: drop-shadow(0 4px 12px rgba(30, 136, 229, 0.25));
  animation: pulse-hand 2s ease-in-out infinite;
}

@keyframes pulse-hand {
  0%, 100% { 
    transform: scale(1);
    opacity: 1;
  }
  50% { 
    transform: scale(1.15);
    opacity: 0.8;
  }
}

.intervention-idle-glow {
  position: absolute;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(30, 136, 229, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse-glow 2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pulse-glow {
  0%, 100% { 
    transform: scale(1);
    opacity: 0.5;
  }
  50% { 
    transform: scale(1.4);
    opacity: 0;
  }
}

.intervention-idle p {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.5;
  max-width: 200px;
}

.intervention-idle-arrow {
  width: 24px;
  height: 24px;
  color: var(--accent);
  animation: bounce-arrow 1.5s ease-in-out infinite;
  margin-top: 8px;
}

@keyframes bounce-arrow {
  0%, 100% { 
    transform: translateY(0);
    opacity: 1;
  }
  50% { 
    transform: translateY(8px);
    opacity: 0.6;
  }
}

/* --- Breathing Demo --- */
.breathing-container {
  position: relative;
  width: 200px;
  height: 200px;
}

.breathing-canvas {
  width: 200px;
  height: 200px;
}

.breathing-center-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 1.5px;
  color: var(--text-primary);
  transition: opacity 0.3s ease;
}

/* --- Math Demo --- */
.math-container {
  width: 100%;
  padding: 0 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.math-difficulty-row {
  display: flex;
  gap: 6px;
}

.math-difficulty-pill {
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-stack);
}

.math-difficulty-pill.selected {
  background: var(--accent);
  color: #fff;
}

.math-difficulty-pill:not(.selected) {
  background: var(--grey-200);
  color: var(--text-secondary);
}

.math-difficulty-pill:not(.selected):hover {
  background: var(--grey-300);
}

.math-problem {
  font-size: 28px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.math-input-wrapper {
  position: relative;
}

.math-input {
  width: 120px;
  padding: 10px 16px;
  border: 2px solid var(--grey-200);
  border-radius: 12px;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  outline: none;
  transition: all 0.2s ease;
  font-family: var(--font-stack);
  color: var(--text-primary);
  background: #fff;
}

.math-input:focus {
  border-color: var(--blue-400);
}

.math-input.correct {
  border-color: #43A047;
  background: #E8F5E9;
  color: #2E7D32;
}

.math-input.wrong {
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

/* --- Mirror Demo --- */
.mirror-container {
  position: relative;
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mirror-canvas {
  width: 180px;
  height: 180px;
  position: absolute;
  top: 0;
  left: 0;
}

.mirror-face {
  width: 140px;
  height: 140px;
  border-radius: 20px;
  background: linear-gradient(145deg, var(--grey-100), var(--grey-200));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.mirror-face svg {
  width: 72px;
  height: 72px;
  color: var(--grey-400);
  transition: color 0.3s ease;
}

.mirror-face.pulsing {
  animation: mirror-pulse 2s ease-in-out infinite;
}

@keyframes mirror-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(30, 136, 229, 0.2); }
  50% { box-shadow: 0 0 24px 8px rgba(30, 136, 229, 0.15); }
}

.mirror-face.complete svg {
  color: #43A047;
}

.mirror-timer {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.mirror-start-btn {
  margin-top: 36px;
  padding: 10px 28px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-stack);
}

.mirror-start-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* --- Rotation Demo --- */
.rotation-container {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rotation-canvas {
  width: 200px;
  height: 200px;
  position: absolute;
  top: 0;
  left: 0;
  cursor: grab;
  touch-action: none;
}

.rotation-canvas:active {
  cursor: grabbing;
}

.rotation-center {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  pointer-events: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(30, 136, 229, 0.15);
}

.rotation-center.complete {
  border-color: #43A047;
  box-shadow: 0 4px 16px rgba(67, 160, 71, 0.2);
}

.rotation-center svg {
  width: 32px;
  height: 32px;
  color: var(--accent);
  transition: all 0.3s ease;
}

.rotation-center.complete svg {
  color: #43A047;
}

.rotation-progress-text {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.rotation-hint {
  position: absolute;
  bottom: -48px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  transition: opacity 0.3s ease;
}

/* Orbiting hand hint */
.rotation-orbit-hint {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  animation: orbit-spin 2.5s linear infinite;
  transition: opacity 0.4s ease;
}

.rotation-orbit-hint.hidden {
  opacity: 0;
}

.rotation-orbit-hand {
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  color: var(--accent);
  filter: drop-shadow(0 2px 4px rgba(30, 136, 229, 0.3));
}

.rotation-orbit-trail {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 88px;
  height: 88px;
  transform: translate(-50%, -50%);
  border: 2px dashed rgba(30, 136, 229, 0.2);
  border-radius: 50%;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.rotation-orbit-trail.hidden {
  opacity: 0;
}

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

/* --- Analytics Demo --- */
.analytics-screen {
  padding: 4px 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  gap: 16px;
}

/* Usage Trend Card */
.analytics-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--grey-200);
  padding: 16px;
  flex-shrink: 0;
}

.analytics-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.analytics-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.analytics-toggle {
  display: flex;
  background: var(--blue-50);
  border-radius: 8px;
  overflow: hidden;
}

.analytics-toggle-btn {
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  background: transparent;
  color: var(--accent);
  transition: all 0.2s ease;
  font-family: var(--font-stack);
}

.analytics-toggle-btn.selected {
  background: var(--accent);
  color: #fff;
}

.analytics-chart-canvas {
  width: 100%;
  height: 120px;
  display: block;
}

.analytics-chart-desc {
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 6px;
}

.analytics-stats-row {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--grey-100);
}

.analytics-stat {
  text-align: center;
}

.analytics-stat-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.analytics-stat-label {
  font-size: 10px;
  color: var(--text-secondary);
  margin-top: 1px;
}

/* Lifetime Projection Card */
.projection-header {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.projection-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}

.projection-row + .projection-row {
  border-top: 1px solid var(--grey-100);
}

.projection-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.projection-icon svg {
  width: 16px;
  height: 16px;
}

.projection-icon.blue {
  background: var(--blue-50);
  color: var(--accent);
}

.projection-icon.orange {
  background: #FFF3E0;
  color: #FB8C00;
}

.projection-icon.red {
  background: #FFEBEE;
  color: #E53935;
}

.projection-timeframe {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}

.projection-value {
  margin-left: auto;
  font-size: 17px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.projection-value.blue { color: var(--accent); }
.projection-value.orange { color: #FB8C00; }
.projection-value.red { color: #E53935; }

/* --- Hero Phone Adjustments --- */
.hero .phone-frame {
  margin: 0 auto;
}

.hero .demo-phone {
  display: flex;
  justify-content: center;
  position: relative;
  flex-direction: column;
  align-items: center;
}

/* Interactive Demo Badge - all phones */
.hero-interactive-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--text-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 24px;
  margin-bottom: 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #4CAF50;
  border-radius: 50%;
  display: inline-block;
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(76,175,80,0.5); }
  50% { opacity: 0.7; box-shadow: 0 0 0 5px rgba(76,175,80,0); }
}

/* ---- Interactive hint glows (per-element dismissal) ---- */

/* Shared green pulse keyframes â€” all elements use the same timing */
@keyframes hintGlow {
  0%, 100% { box-shadow: 0 0 6px 1px rgba(30,136,229,0.65); }
  50% { box-shadow: 0 0 10px 2px rgba(30,136,229,0.9); }
}

@keyframes btnGlow {
  0%, 100% { box-shadow: 0 2px 8px rgba(30,136,229,0.65); transform: scale(1); }
  50% { box-shadow: 0 2px 12px 1px rgba(30,136,229,0.9); transform: scale(1.03); }
}

/* Profile selector glow */
.focus-profile-selector:not(.active-session) {
  box-shadow: 0 0 6px 1px rgba(30,136,229,0.65);
  animation: hintGlow 2.5s ease-in-out infinite;
}

.profile-interacted .focus-profile-selector {
  animation: none !important;
  box-shadow: none !important;
}

/* App icons glow â€” all pulse together (no stagger) */
.phone-app-icon {
  box-shadow: 0 0 6px 1px rgba(30,136,229,0.65);
  animation: hintGlow 2.5s ease-in-out infinite;
}

.apps-interacted .phone-app-icon {
  animation: none !important;
  box-shadow: none !important;
}

/* Start Focus Session button glow */
.focus-btn-start {
  animation: btnGlow 2.5s ease-in-out infinite;
}

.btn-interacted .focus-btn-start {
  animation: none !important;
  box-shadow: 0 4px 12px rgba(30,136,229,0.25) !important;
  transform: none !important;
}

.focus-btn-start:hover {
  animation: none;
  box-shadow: 0 6px 20px rgba(30,136,229,0.4);
  transform: translateY(-1px);
}



/* Stop button should never have glow effects */
.focus-btn-stop {
  animation: none !important;
}

/* Hint badge */
.phone-hint {
  position: absolute;
  bottom: 82px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  white-space: nowrap;
  z-index: 25;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.phone-hint.visible {
  opacity: 1;
}

/* --- Focus Demo App-style Layout --- */
.focus-demo-app {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 32px 0 0;
  gap: 0;
}

.focus-profile-selector {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--grey-300);
  border-radius: 12px;
  background: #fff;
  margin-bottom: 12px;
  transition: border-color 0.3s ease, background 0.3s ease;
  cursor: pointer;
}

.focus-profile-selector:hover {
  border-color: var(--grey-400);
}

.focus-profile-selector.active-session {
  border-color: var(--accent);
  background: var(--blue-50);
  cursor: default;
}

.focus-profile-selector-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.focus-profile-selector-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.focus-profile-selector-icon svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.focus-profile-selector-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.focus-profile-selector-chevron {
  transition: transform 0.3s ease;
}

.focus-profile-selector-chevron.open {
  transform: rotate(180deg);
}

.focus-hero-time {
  font-size: 48px;
  font-weight: 200;
  color: var(--text-primary);
  text-align: center;
  letter-spacing: 2px;
  font-variant-numeric: tabular-nums;
  margin: 4px 0 4px;
  line-height: 1;
  font-family: var(--font-stack);
}

.focus-hero-time .focus-hero-unit {
  font-size: 20px;
  font-weight: 300;
  color: var(--text-secondary);
  letter-spacing: 0;
  margin-left: 2px;
}

.focus-hero-time.active {
  color: var(--accent);
  font-size: 48px;
  margin: 28px 0 8px;
}

.focus-hero-label {
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 16px;
}

.focus-demo-app .focus-duration-row {
  margin-bottom: 16px;
}

.focus-demo-app .focus-btn-start {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  margin-bottom: 30px;
}

.focus-demo-app .focus-btn-start svg {
  flex-shrink: 0;
}

/* --- App Opened State --- */
.app-opened-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 0 4px;
}

.app-opened-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.app-opened-header .app-opened-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  pointer-events: none;
}

.app-opened-header .app-opened-icon svg {
  width: 22px;
  height: 22px;
}

.app-opened-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.app-opened-feed {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 4px;
  margin-bottom: 16px;
}

.feed-placeholder {
  width: 100%;
  height: 12px;
  background: var(--grey-200);
  border-radius: 6px;
  animation: feed-shimmer 1.5s ease-in-out infinite;
}

.feed-placeholder.short {
  width: 60%;
}

.feed-placeholder.medium {
  width: 80%;
}

.feed-placeholder.wide {
  height: 64px;
  border-radius: 10px;
  background: var(--grey-100);
}

@keyframes feed-shimmer {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.intervention-btn-done {
  background: var(--grey-200);
  color: var(--text-primary);
  border: none;
  margin-top: auto;
}

.intervention-btn-done:hover {
  background: var(--grey-300);
}

/* --- Feature Cards Clickable --- */
.feature-card[data-scroll] {
  cursor: pointer;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .demo-layout,
  .demo-layout--reverse {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }

  .demo-text {
    order: 1;
  }

  .demo-phone {
    order: 2;
  }

  .demo-section {
    padding: 56px 0;
  }
}

@media (max-width: 640px) {
  .demo-layout,
  .demo-layout--reverse {
    gap: 32px;
  }

  .phone-frame {
    width: 270px;
    height: 558px;
    border-radius: 40px;
    padding: 10px;
  }

  .phone-screen {
    border-radius: 30px;
  }

  .phone-notch {
    width: 88px;
    height: 24px;
    top: 18px;
  }

  .phone-app-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
  }

  .phone-app-icon svg {
    width: 22px;
    height: 22px;
  }

  .focus-hero-time {
    font-size: 42px;
  }

  .focus-hero-time.active {
    font-size: 38px;
  }
}