/* ============================================================================
   Page
   ============================================================================ */

.page-wrapper {
  position: relative;
  min-height: 100vh;
  background-color: var(--background);
}

/* ============================================================================
   Heading Typography
   ============================================================================ */

h1, h2 {
  font-family: var(--font-ibm-plex);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -1.5px;
  color: var(--foreground);
}

/* ============================================================================
   Hero Section
   ============================================================================ */

.hero {
  position: relative;
  width: 100%;
}

.hero-carousel {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero-carousel {
    height: 611px;
  }
}

.carousel-track {
  display: flex;
  height: 100%;
  will-change: transform;
  visibility: hidden;
}

.hero-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  flex-shrink: 0;
  width: 150px;
}

@media (min-width: 768px) {
  .hero-slide {
    width: 300px;
  }
}

/* Product Card */
.product-card {
  background-color: #000000;
  border-radius: var(--radius-full);
}

.product-card-image {
  position: relative;
  overflow: hidden;
  height: 220px;
  border-radius: var(--radius-lg);
}

.product-card-info {
  padding: 16px;
}

.product-card-name {
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-ibm-plex);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
}

.product-card-price {
  color: #888888;
  font-family: var(--font-ibm-plex);
  font-size: 12px;
  font-weight: 400;
}

@media (min-width: 768px) {
  .product-card-image {
    height: 450px;
  }

  .product-card-name,
  .product-card-price {
    font-size: 16px;
  }
}

/* Phone Overlay */
.hero-phone-overlay {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-phone-overlay .phone-mockup {
  height: 390px;
  width: 192px;
}

@media (min-width: 768px) {
  .hero-phone-overlay .phone-mockup {
    height: 612px;
    width: 300px;
  }
}

/* CTA Content */
.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 2.5rem 1.25rem;
}

.hero-heading {
  text-align: center;
  font-size: 36px;
  letter-spacing: -1px;
}

@media (min-width: 768px) {
  .hero-heading {
    font-size: 60px;
    letter-spacing: -1.8px;
  }
}

.hero-subtitle {
  text-align: center;
  color: var(--foreground);
  font-size: 20px;
  font-weight: 400;
}

.hero-cta-button {
  height: 55px;
  width: 340px;
  font-size: 16px;
  gap: 5px;
}

.hero-store-badge {
  margin-top: 3rem;
  margin-bottom: -3rem;
}

/* ============================================================================
   Feature Section
   ============================================================================ */

.feature-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5rem 1.25rem;
}

.feature-heading {
  text-align: center;
  font-size: 36px;
  width: 100%;
  max-width: 34rem;
}

@media (min-width: 768px) {
  .feature-heading {
    font-size: 60px;
    max-width: 650px;
  }
}

.feature-phone {
  margin-top: 2.5rem;
}

.feature-description {
  margin-top: 2rem;
  text-align: center;
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--foreground);
  max-width: 400px;
  position: relative;
  /* Symmetric inline padding reserves room for the absolutely-positioned
     .feature-emoji so it respects the section gutter while the text itself
     remains centered as if the icon were not there. */
  padding-left: 36px;
  padding-right: 36px;
}

@media (min-width: 768px) {
  .feature-description {
    font-size: 1.5rem;
    max-width: 500px;
    padding-left: 44px;
    padding-right: 44px;
  }
}

.feature-text {
  position: relative;
}

.feature-emoji {
  position: absolute;
  right: calc(100% + 8px);
  top: calc((1.4em - 28px) / 2);
  width: 28px;
  height: 28px;
  filter: invert(1);
}

@media (min-width: 768px) {
  .feature-emoji {
    right: calc(100% + 12px);
    top: calc((1.4em - 32px) / 2);
    width: 32px;
    height: 32px;
  }
}

.dark .feature-emoji {
  filter: none;
}

/* ============================================================================
   FAQ Section
   ============================================================================ */

.faq-section {
  margin: 0 auto;
  width: 100%;
  max-width: 500px;
  padding: 0 1rem;
}

.faq-heading {
  font-size: 50px;
}

.faq-spacer {
  height: 50px;
}

.faq-divider {
  margin: 30px 0;
  height: 0.15rem;
  background-color: color-mix(in srgb, var(--foreground) 10%, transparent);
}

.faq-item {
  margin: 0 25px;
  cursor: pointer;
}

.faq-item:active {
  opacity: 1;
}

.faq-item:active .faq-question {
  opacity: 0.7;
}

.faq-question {
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-chevron {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  transition: transform 300ms;
  transform: rotate(0deg);
}

.faq-chevron.open {
  transform: rotate(180deg);
}

.faq-question-text {
  font-size: 18px;
  line-height: normal;
  color: var(--foreground);
}

.faq-answer {
  overflow: hidden;
  transition: max-height 300ms, opacity 300ms;
  max-height: 0;
  opacity: 0;
}

.faq-answer.open {
  max-height: 500px;
  opacity: 1;
}

.faq-answer-text {
  padding-top: 15px;
  padding-left: 31px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--foreground);
}

/* ============================================================================
   Bottom CTA
   ============================================================================ */

.bottom-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5rem 1.25rem 0;
}

.bottom-cta-heading {
  text-align: center;
  font-size: 60px;
  letter-spacing: -1.8px;
}

.bottom-cta-heading .accent {
  color: var(--primary);
}

.bottom-cta-subtitle {
  margin-top: 1.5rem;
  text-align: center;
  color: var(--foreground);
  font-size: 20px;
  font-weight: 400;
}

.bottom-cta .input-group {
  margin-top: 2rem;
}

.bottom-cta-button {
  margin-top: 1rem;
  height: 55px;
  width: 340px;
  font-size: 16px;
  gap: 5px;
}

