/* ****************** StudyLumo — Page-specific styles for index.html ****************** */

/* ─── Hero Mockup Cards ─────────────────────────────────── */
.mockup-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.mockup-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  box-shadow: var(--shadow-sm);
  animation: fadeUp 0.5s ease both;
}

.mockup-card:nth-child(2) {
  animation-delay: 0.15s;
}

.mockup-card:nth-child(3) {
  animation-delay: 0.30s;
}

.mockup-card__emoji {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-primary-trans);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.mockup-card__label {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
}

.mockup-card__sub {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-top: 2px;
}

.mockup-card__badge {
  margin-left: auto;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--color-primary-trans);
  color: var(--color-primary-mid);
  flex-shrink: 0;
}

/* ─── Features Section Layout ─────────────────────────────── */
.features-section {
  position: relative;
}

.features-section .section__header {
  max-width: 640px;
}

/* ─── How It Works ──────────────────────────────────────── */
.steps-connector {
  display: none;
}

@media (min-width: 1024px) {
  .steps-connector {
    display: block;
    position: absolute;
    top: 22px;
    left: calc(33.33% + var(--space-xl));
    right: calc(33.33% + var(--space-xl));
    height: 2px;
    border-top: 2px dashed var(--color-primary-border);
  }
}



/* ─── Stats Banner ──────────────────────────────────────── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-block: var(--space-4xl);
}

@media (min-width: 640px) {
  .stats-bar {
    grid-template-columns: repeat(4, 1fr);
  }
}

#stats-section {
  padding-bottom: var(--space-xs);
  padding-top: var(--space-xs);
}

.stats-bar__item {
  background: var(--surface);
  padding: var(--space-xl);
  text-align: center;
}

.stats-bar__number {
  font-size: var(--text-3xl);
  font-weight: var(--weight-extrabold);
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stats-bar__label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* ─── App Preview section ───────────────────────────────── */
.app-preview {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

@media (min-width: 1024px) {
  .app-preview {
    grid-template-columns: 1fr 1fr;
  }

  .app-preview--reverse {
    direction: rtl;
  }

  .app-preview--reverse>* {
    direction: ltr;
  }
}

.app-preview__phones {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  position: relative;
}

.phone {
  width: 160px;
  aspect-ratio: 9/19;
  background: var(--surface);
  border-radius: 28px;
  border: 2px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.phone--tall {
  align-self: flex-start;
}

.phone--short {
  align-self: flex-end;
  margin-top: var(--space-xl);
}

.phone__screen {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: var(--space-md);
  gap: var(--space-sm);
}

.phone__bar {
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--border);
}

.phone__bar--brand {
  background: var(--color-primary-trans);
  width: 60%;
}

.phone__bar--short {
  width: 45%;
}

.phone__bar--long {
  width: 85%;
}

.phone__pill {
  height: 32px;
  border-radius: var(--radius-md);
  background: var(--color-primary-trans);
  border: 1px solid var(--color-primary-border);
  display: flex;
  align-items: center;
  padding-inline: var(--space-sm);
  gap: var(--space-xs);
}

.phone__pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
}

.phone__pill-line {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--color-primary-border);
}