/* Landing Page Header Styling */
.vp-doc h1:first-of-type {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 2.5rem;
}

.vp-doc h1:first-of-type + p {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem auto;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--vp-c-text-2);
}

/* Bento Grid Styling */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 2rem 0;
  max-width: 100%;
}

.bento-card {
  background: var(--vp-c-bg-soft);
  border: 1px solid var(--vp-c-divider);
  border-radius: 12px;
  padding: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 180px;
}

.bento-card.large {
  grid-row: span 2;
  grid-column: span 1;
  height: 375px;
  padding: 1.5rem 1.25rem;
  justify-content: center;
}

.bento-card.wide {
  grid-column: span 2;
  height: 180px;
  padding: 1.25rem;
}

.bento-icon {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  display: block;
  line-height: 1.5;
  flex-shrink: 0;
}

.bento-card h3 {
  color: var(--vp-c-text-1);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.4rem 0;
  line-height: 1.5;
  flex-shrink: 0;
}

.bento-card p {
  color: var(--vp-c-text-2);
  font-size: 0.8rem;
  line-height: 1.5;
  margin: 0;
  flex-grow: 1;
  overflow: hidden;
}

.bento-card.large .bento-icon {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.bento-card.large h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
  font-weight: 700;
  line-height: 1.5;
}

.bento-card.large p {
  font-size: 0.8rem;
  line-height: 1.5;
}

.bento-card.wide .bento-icon {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.bento-card.wide h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
  line-height: 1.5;
}

.bento-card.wide p {
  font-size: 0.85rem;
  line-height: 1.5;
}

/* How It Works Image Grid */
.how-it-works-image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
  max-width: 100%;
}

.step-content {
  background: var(--vp-c-bg-soft);
  border: 1px solid var(--vp-c-divider);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.step-image {
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--vp-c-bg-soft);
  border: 1px solid var(--vp-c-divider);
  aspect-ratio: 1;
}

.step-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.step-content h3 {
  color: var(--vp-c-text-1);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  line-height: 1.5;
}

.step-content p {
  color: var(--vp-c-text-2);
  font-size: 0.8rem;
  line-height: 1.5;
  margin: 0;
}

/* Responsive How It Works Image Grid */
@media (max-width: 768px) {
  .how-it-works-image-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 1rem;
    margin: 1.5rem 0;
  }
  
  .step-content,
  .step-image {
    grid-column: 1;
    width: 100%;
  }
  
  .step-content {
    padding: 1.25rem;
    min-height: 120px;
  }
  
  .step-image {
    aspect-ratio: 1;
    width: 100%;
    height: auto;
  }
  
  .step-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* Responsive Bento Grid */
@media (max-width: 768px) {
  .bento-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin: 1.5rem 0;
  }
  
  .bento-card.large,
  .bento-card.wide {
    grid-column: span 1;
    grid-row: span 1;
    height: auto;
    padding: 1rem;
  }
  
  .bento-card {
    padding: 1rem;
    height: auto;
    min-height: 100px;
  }
  
  .bento-icon {
    font-size: 1.5rem;
    margin-bottom: 0.4rem;
    line-height: 1.5;
  }
  
  .bento-card p,
  .bento-card.large p,
  .bento-card.wide p {
    font-size: 0.8rem;
    line-height: 1.5;
  }
}

/* App Gallery Styling */
.app-gallery {
  margin: 2rem 0 3rem 0;
  width: 100%;
  position: relative;
}

.gallery-container {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 1rem 0;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Hide scrollbar on desktop */
.gallery-container::-webkit-scrollbar {
  height: 0px;
  background: transparent;
}

/* Arrow buttons - positioned over images */
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #ffffff;
  z-index: 10;
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 
    0 8px 32px rgba(59, 130, 246, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 1px 0 rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.gallery-arrow-left {
  left: -20px;
}

.gallery-arrow-right {
  right: -20px;
}

.gallery-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 
    0 12px 40px rgba(255, 255, 255, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 1px 0 rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(25px) saturate(200%);
  -webkit-backdrop-filter: blur(25px) saturate(200%);
}

.gallery-arrow:active {
  transform: translateY(-50%) scale(0.95);
  background: rgba(255, 255, 255, 0.4);
  box-shadow: 
    0 4px 16px rgba(255, 255, 255, 0.3),
    inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gallery-arrow svg {
  transition: transform 0.2s ease;
}

.gallery-arrow:hover svg {
  transform: scale(1.1);
}

.gallery-image {
  flex: 0 0 auto;
  width: 260px;
  height: 560px;
  /* object-fit: cover; */
  border-radius: 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-image:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .gallery-arrow {
    display: none;
  }
  
  .gallery-container {
    gap: 0.75rem;
    padding: 0.75rem 0;
    max-width: 100%;
  }
  
  /* Show scrollbar on mobile */
  .gallery-container::-webkit-scrollbar {
    height: 4px;
    background: var(--vp-c-bg-soft);
  }
  
  .gallery-container::-webkit-scrollbar-track {
    background: var(--vp-c-bg-soft);
    border-radius: 2px;
  }
  
  .gallery-container::-webkit-scrollbar-thumb {
    background: var(--vp-c-brand-1);
    border-radius: 2px;
  }
  
  .gallery-image {
    width: 220px;
    height: 480px;
  }
}

@media (max-width: 480px) {
  .gallery-image {
    width: 180px;
    height: 390px;
  }
  
  .gallery-container {
    gap: 0.5rem;
    padding: 0.5rem 0;
  }
}

/* Apps Grid Styling */
.apps-grid {
  display: block;
  margin: 1.5rem 0;
  line-height: 2.2;
}

.apps-grid > p {
  margin: 0;
  display: inline-block;
}

.apps-grid a {
  color: var(--vp-c-brand-1);
  text-decoration: none;
  transition: all 0.2s ease;
  background-color: var(--vp-c-bg-soft);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  display: inline-block;
  font-weight: 600;
  margin: 0.4rem 0.6rem 0.4rem 0;
}

.apps-grid a:hover {
  background-color: var(--vp-c-brand-1);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* App Promotion Section */
.app-promotion-section {
  background: linear-gradient(135deg, var(--vp-c-bg-soft) 0%, var(--vp-c-bg-alt) 100%);
  border-radius: 16px;
  padding: 3rem 2rem;
  margin: 3rem 0;
  border: 1px solid var(--vp-c-divider);
  display: flex;
  gap: 3rem;
  align-items: center;
}

.app-screenshot {
  max-width: 280px !important;
  border-radius: 20px;
}

.app-benefits h3 {
  margin-bottom: 2rem;
  font-size: 1.5rem;
  line-height: 1.5;
}

.benefit-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.benefit-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.benefit-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.benefit-item strong {
  display: block;
  color: var(--vp-c-text-1);
  margin-bottom: 0.5rem;
}

.benefit-item p {
  color: var(--vp-c-text-2);
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Download Section within App Promotion */
.download-section {
  text-align: left;
  margin-top: 2rem;
}

.download-buttons {
  display: flex;
  gap: .5rem;
  justify-content: left;
  margin-bottom: 1.5rem;
}

.store-badge {
  height: 48px;
  transition: transform 0.2s ease;
}

.store-badge:hover {
  transform: scale(1.05);
}

.app-highlights p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
}

.trial-offer {
  color: var(--vp-c-brand-1);
  font-weight: 600;
}

.rating {
  color: #f59e0b;
}

/* Responsive Design */
@media (max-width: 768px) {
  .app-promotion-section {
    flex-direction: column;
    text-align: left;
    padding: 2rem 1rem;
    gap: 2rem;
  }
  
  .app-benefits {
    text-align: center;
  }
  
  .download-section {
    text-align: center;
  }
  
  .download-buttons {
    flex-direction: row;
  }
  
  .benefit-item {
    flex-direction: column;
    text-align: left;
    gap: 0.5rem;
    align-items: left;
  }
  
  .apps-grid a {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    margin: 0.3rem 0.4rem 0.3rem 0;
  }
}

/* Dark mode adjustments */
.dark .app-promotion-section {
  background: var(--vp-c-bg-soft);
}

.dark .gallery-arrow {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
  box-shadow: 
    0 8px 32px rgba(255, 255, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.05);
}

.dark .gallery-arrow:hover {
  background: rgba(255, 255, 255, 0.4);
  border-color: rgba(255, 255, 255, 0.6);
  color: #ffffff;
  box-shadow: 
    0 12px 40px rgba(255, 255, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 1px 0 rgba(255, 255, 255, 0.1);
} 