/* ==========================================
   House Rules - Showcase Page Styles
   ========================================== */

/* ===== DEVICE MOCKUP ===== */
.device-mockup {
  position: relative;
  width: 260px;
  aspect-ratio: 393 / 852;
  background: #1C1C1E;
  border-radius: 44px;
  padding: 12px;
  box-shadow:
    0 0 0 2px rgba(255,255,255,0.08),
    0 24px 64px rgba(0,0,0,0.5),
    0 0 80px var(--orange-glow);
  margin: 0 auto;
}
.device-mockup::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 28px;
  background: #000;
  border-radius: 20px;
  z-index: 2;
}
.device-screen {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 32px;
  display: block;
}
.device-screen--placeholder {
  background: linear-gradient(135deg, var(--surface), var(--surface-raised));
  border-radius: 32px;
  width: 100%;
  height: 100%;
}

/* Device size variants */
.device-mockup--lg {
  width: 300px;
}

/* ===== SCALE REVEAL ANIMATION ===== */
.scale-reveal {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.8s ease, transform 0.8s var(--ease-out);
}
.scale-reveal.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* ===== HR HERO ===== */
.hr-hero {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  padding: 60px 0 40px;
}
.hr-hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.hr-hero-content h1 {
  margin-bottom: 20px;
  animation: hero-fade-up 0.7s ease forwards;
  animation-delay: 0.1s;
  opacity: 0;
}
.hr-hero-content .text-lg {
  max-width: 500px;
  margin-bottom: 36px;
  animation: hero-fade-up 0.7s ease forwards;
  animation-delay: 0.2s;
  opacity: 0;
}
.hr-hero-content .btn-group {
  margin-bottom: 24px;
}
.hr-hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 420px;
  animation: hero-fade-up 0.8s ease forwards;
  animation-delay: 0.35s;
  opacity: 0;
}

/* ===== APP STORE BADGE ===== */
.appstore-link {
  display: inline-block;
  animation: hero-fade-up 0.7s ease forwards;
  animation-delay: 0.35s;
  opacity: 0;
}
.appstore-badge {
  height: 48px;
  width: auto;
  transition: transform var(--t-fast), opacity var(--t-fast);
}
.appstore-badge:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

/* Inline App Store button for sections without the SVG badge */
.btn--appstore {
  background: #000;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 12px 24px;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--r-md);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--t-fast);
}
.btn--appstore:hover {
  background: #1a1a1a;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.btn--appstore svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ===== STORY GRID (Feature Rows) ===== */
.hr-story-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
}
.hr-story-grid--reverse {
  grid-template-columns: 0.9fr 1.1fr;
}
.hr-story-grid--reverse .hr-story-visual {
  order: -1;
}
.hr-story-text .label {
  margin-bottom: 10px;
}
.hr-story-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hr-story-text p {
  color: var(--text-2);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 16px;
}
.hr-story-text p:last-child {
  margin-bottom: 0;
}
.hr-story-visual {
  display: flex;
  justify-content: center;
}

/* ===== SOLUTION REVEAL ===== */
.solution-section {
  text-align: center;
}
.solution-icon {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  margin: 0 auto 32px;
}
.solution-text {
  max-width: 580px;
  margin: 32px auto 0;
}
.solution-text .label { margin-bottom: 12px; }
.solution-text h2 { margin-bottom: 14px; }
.solution-text p {
  color: var(--text-2);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

/* ===== GAME CHIPS ===== */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.game-chip {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: all var(--t-normal) var(--ease-out);
}
.game-chip:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.game-chip-emoji {
  font-size: 1.5rem;
  line-height: 1;
  min-width: 28px;
  text-align: center;
}
.game-chip-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
}
.game-chip--cta {
  border-color: var(--orange);
  border-style: dashed;
  background: var(--orange-soft);
}
.game-chip--cta:hover {
  background: rgba(255,107,53,0.18);
  border-color: var(--orange);
}
.game-chip--cta .game-chip-name {
  color: var(--orange);
}

/* ===== PRICING SECTION ===== */
.pricing-box {
  text-align: center;
  max-width: 580px;
  margin: 0 auto;
}
.pricing-box .label { margin-bottom: 12px; }
.pricing-box h2 { margin-bottom: 14px; }
.pricing-box p {
  color: var(--text-2);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

/* ===== PROBLEM CARDS ===== */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ===== FEATURE SECTION SPACING ===== */
.feature-section {
  padding: 80px 0;
}
.feature-section + .feature-section {
  padding-top: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hr-hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hr-hero-content .text-lg {
    margin-left: auto;
    margin-right: auto;
  }
  .hr-hero-content .btn-group {
    justify-content: center;
  }
  .hr-hero-content .appstore-link {
    display: flex;
    justify-content: center;
  }
  .hr-hero-visual {
    display: none;
  }
  .hr-story-grid,
  .hr-story-grid--reverse {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hr-story-grid--reverse .hr-story-visual {
    order: -1;
  }
  .device-mockup {
    width: 220px;
  }
  .device-mockup--lg {
    width: 260px;
  }
  .problem-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .device-mockup {
    width: 200px;
  }
  .device-mockup--lg {
    width: 240px;
  }
  .game-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .device-mockup {
    width: 180px;
  }
  .device-mockup--lg {
    width: 200px;
  }
  .game-grid {
    grid-template-columns: 1fr;
  }
}
