/* =============================================
   BA Stack — Home Page
   ============================================= */

/* --- Hero --- */
.hero {
  position: relative;
  padding: var(--sp-3xl) 0 calc(var(--sp-3xl) + 20px);
  overflow: hidden;
}
.hero__sub {
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-top: var(--sp-lg);
  line-height: 1.7;
}
.hero__actions {
  display: flex;
  gap: var(--sp-md);
  justify-content: center;
  margin-top: var(--sp-xl);
  flex-wrap: wrap;
}
.hero__micro {
  color: var(--text-muted);
  font-size: 0.78rem;
  margin-top: var(--sp-lg);
  opacity: 0.7;
}
.hero__glow {
  position: absolute;
  bottom: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(124,77,255,0.15) 0%, transparent 70%);
  pointer-events: none;
}

@media (max-width: 768px) {
  .hero { padding: var(--sp-2xl) 0; }
  .hero__actions { flex-direction: column; align-items: center; }
  .hero__actions .btn { width: 100%; max-width: 320px; }
}

/* --- Steps --- */
.step__number {
  width: 48px;
  height: 48px;
  background: var(--purple-glow);
  color: var(--purple);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
}
.step__link {
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-block;
}

/* --- Resource Icons --- */
.resource-icon {
  font-size: 2rem;
  line-height: 1;
}

/* --- Video Cards --- */
.video-card {
  text-decoration: none;
  color: inherit;
  padding: 0;
  overflow: hidden;
}
.video-card:hover { text-decoration: none; }
.video-card__thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--grey-100);
}
.video-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.video-card:hover .video-card__thumb img { transform: scale(1.04); }
.video-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: rgba(0,0,0,0.7);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.2s;
}
.video-card:hover .video-card__play { opacity: 1; }
.video-card h3 { padding: var(--sp-md) var(--sp-lg) var(--sp-lg); }

/* --- Foundation Pro Pitch --- */
.pro-pitch {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--sp-2xl);
  align-items: center;
}
.pro-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-lg);
}
.pro-features li {
  display: flex;
  gap: var(--sp-md);
  align-items: flex-start;
}
.pro-features__icon {
  width: 28px;
  height: 28px;
  background: var(--purple);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}
.pro-price {
  display: flex;
  align-items: baseline;
  gap: var(--sp-md);
}
.pro-price__amount {
  font-size: 3rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.pro-price__note {
  color: var(--text-muted);
  font-size: 0.85rem;
}
.pro-checkout-note {
  color: var(--text-muted);
  font-size: 0.72rem;
  margin-top: var(--sp-sm);
  opacity: 0.7;
}

/* =============================================
   Device Mockups — CSS-rendered app screens
   ============================================= */
.devices {
  position: relative;
  min-height: 420px;
  padding-bottom: var(--sp-xl);
}

/* Shared device frame */
.device {
  position: absolute;
  background: var(--dark-card);
  border: 2px solid var(--dark-border);
  overflow: hidden;
}
.device__bar {
  padding: 7px 10px;
  display: flex;
  gap: 5px;
  background: #111019;
  border-bottom: 1px solid var(--dark-border);
}
.device__bar span {
  width: 7px; height: 7px; border-radius: 50%;
}
.device__bar span:nth-child(1) { background: #ef4444; }
.device__bar span:nth-child(2) { background: #f59e0b; }
.device__bar span:nth-child(3) { background: #22c55e; }
.device__notch {
  width: 32%;
  height: 5px;
  background: #1a1725;
  border-radius: 0 0 6px 6px;
  margin: 0 auto;
}
.device__screen {
  background: #0D0B14;
  padding: 10px;
  font-family: 'Poppins', sans-serif;
}

/* --- Desktop: Practice Mode --- */
.device--desktop {
  width: 340px;
  border-radius: 10px;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.device--desktop .device__screen { padding: 14px; }

.app-practice .app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.app-practice .app-title {
  color: #E8E0FF;
  font-size: 0.65rem;
  font-weight: 700;
}
.app-practice .app-badge {
  background: rgba(124,77,255,0.2);
  color: #7C4DFF;
  font-size: 0.5rem;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
}
.app-practice .app-progress-bar {
  height: 4px;
  background: #1A1725;
  border-radius: 2px;
  margin-bottom: 12px;
  overflow: hidden;
}
.app-practice .app-progress-fill {
  height: 100%;
  width: 35%;
  background: #7C4DFF;
  border-radius: 2px;
}
.app-practice .app-q-label {
  color: #7C4DFF;
  font-size: 0.48rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.app-practice .app-question {
  color: #E8E0FF;
  font-size: 0.58rem;
  line-height: 1.5;
  margin-bottom: 10px;
  font-weight: 500;
}
.app-practice .app-option {
  background: #13111A;
  border: 1.5px solid #2A2535;
  border-radius: 8px;
  padding: 7px 10px;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.app-practice .app-option-letter {
  width: 18px; height: 18px;
  background: #1A1725;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.45rem;
  color: #A89CC8;
  font-weight: 700;
  flex-shrink: 0;
}
.app-practice .app-option-text {
  color: #A89CC8;
  font-size: 0.5rem;
  line-height: 1.4;
}
.app-practice .app-option--selected {
  border-color: #7C4DFF;
  background: rgba(124,77,255,0.08);
}
.app-practice .app-option--selected .app-option-letter {
  background: #7C4DFF;
  color: white;
}
.app-practice .app-option--selected .app-option-text {
  color: #E8E0FF;
}

/* --- Phone: Free Preview --- */
.device--phone {
  width: 135px;
  border-radius: 18px;
  padding-top: 6px;
  bottom: 30px;
  left: 0;
  z-index: 3;
  box-shadow: 0 16px 48px rgba(0,0,0,0.45);
}
.device--phone .device__screen { padding: 8px; }

.app-preview .app-mini-header {
  color: #E8E0FF;
  font-size: 0.48rem;
  font-weight: 700;
  margin-bottom: 6px;
  text-align: center;
}
.app-preview .app-mini-badge {
  display: block;
  text-align: center;
  margin-bottom: 8px;
}
.app-preview .app-mini-badge span {
  background: rgba(34,197,94,0.15);
  color: #22c55e;
  font-size: 0.38rem;
  padding: 2px 6px;
  border-radius: 8px;
  font-weight: 600;
}
.app-preview .app-mini-score {
  text-align: center;
  margin-bottom: 8px;
}
.app-preview .app-mini-score-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: #7C4DFF;
  line-height: 1;
}
.app-preview .app-mini-score-label {
  color: #A89CC8;
  font-size: 0.38rem;
  display: block;
  margin-top: 2px;
}
.app-preview .app-mini-stat-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}
.app-preview .app-mini-stat {
  background: #13111A;
  border-radius: 6px;
  padding: 5px;
  text-align: center;
  flex: 1;
  margin: 0 2px;
}
.app-preview .app-mini-stat-val {
  color: #E8E0FF;
  font-size: 0.55rem;
  font-weight: 700;
  display: block;
}
.app-preview .app-mini-stat-lbl {
  color: #A89CC8;
  font-size: 0.32rem;
  display: block;
}
.app-preview .app-mini-btn {
  display: block;
  background: #7C4DFF;
  color: white;
  text-align: center;
  padding: 5px;
  border-radius: 6px;
  font-size: 0.4rem;
  font-weight: 700;
  margin-top: 8px;
}

/* --- Tablet: Flashcards --- */
.device--tablet {
  width: 195px;
  border-radius: 14px;
  padding-top: 7px;
  bottom: 15px;
  right: 0;
  z-index: 2;
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}
.device--tablet .device__screen { padding: 10px; }

.app-flash .app-flash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.app-flash .app-flash-title {
  color: #E8E0FF;
  font-size: 0.5rem;
  font-weight: 700;
}
.app-flash .app-flash-count {
  color: #A89CC8;
  font-size: 0.4rem;
}
.app-flash .app-flashcard {
  background: linear-gradient(135deg, #1A1725, #13111A);
  border: 1.5px solid #2A2535;
  border-radius: 10px;
  padding: 14px 10px;
  text-align: center;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.app-flash .app-flash-category {
  color: #7C4DFF;
  font-size: 0.38rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.app-flash .app-flash-q {
  color: #E8E0FF;
  font-size: 0.52rem;
  font-weight: 600;
  line-height: 1.5;
}
.app-flash .app-flash-hint {
  color: #A89CC8;
  font-size: 0.35rem;
  margin-top: 8px;
  opacity: 0.7;
}
.app-flash .app-flash-actions {
  display: flex;
  gap: 4px;
}
.app-flash .app-flash-btn {
  flex: 1;
  padding: 5px;
  border-radius: 6px;
  text-align: center;
  font-size: 0.4rem;
  font-weight: 600;
}
.app-flash .app-flash-btn--skip {
  background: #1A1725;
  color: #A89CC8;
}
.app-flash .app-flash-btn--flip {
  background: #7C4DFF;
  color: white;
}

.devices__caption {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.78rem;
  opacity: 0.7;
  margin-top: 10px;
}

@media (max-width: 768px) {
  .pro-pitch { grid-template-columns: 1fr; }
  .pro-pitch__visual { order: -1; }
  .pro-price__amount { font-size: 2.4rem; }
  .devices { min-height: 340px; }
  .device--desktop { width: 260px; }
  .device--phone { width: 110px; }
  .device--tablet { width: 155px; }
}

@media (max-width: 480px) {
  .devices { min-height: 280px; }
  .device--desktop { width: 200px; }
  .device--phone { width: 90px; left: -5px; }
  .device--tablet { width: 130px; right: -5px; }
}

/* --- Story Card --- */
.story-card__author {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
}
.story-card__author strong { display: block; }
