* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: #ffffff;
  color: #1a1a1a;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.fff-header {
  padding: 1rem 1.5rem;
}

.back-link {
  font-size: 0.9rem;
  color: #555;
  text-decoration: none;
}

.back-link:hover {
  color: #1a1a1a;
}

.fff-main {
  flex: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.app-hero {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

.fff-icon {
  width: 240px;
  height: 240px;
  border-radius: 24px;
}

.hero-copy h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.fff-tagline {
  font-size: 1.05rem;
  color: #555;
  margin-bottom: 1rem;
}

.fff-description {
  max-width: 640px;
  font-size: 1rem;
  color: #333;
  margin-bottom: 0.75rem;
}

.fff-highlights {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.fff-store-links {
  margin-bottom: 0;
}

.store-link {
  font-size: 1rem;
  color: #1a1a1a;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.store-link:hover {
  color: #555;
}

.store-sep {
  margin: 0 0.5rem;
  color: #999;
}

/* Cards + Carousel layout */
.cards-carousel-section {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

.cards-stack {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.feature-card {
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 1.25rem 1.35rem;
  background: #fff;
}

.feature-card-selectable {
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.feature-card-selectable:hover {
  border-color: #ccc;
}

.feature-card-selectable.is-active {
  border-color: #1a1a1a;
  background: #fafafa;
}

.feature-card h2 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.feature-card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}

.carousel-panel {
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  max-width: 430px;
}

.carousel-viewport {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #f5f5f5;
}

.carousel-track {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.carousel-track.is-active {
  display: flex;
}

.carousel-track .phone-mockup {
  display: none;
  width: min(240px, 85%);
  max-height: 100%;
}

.carousel-track .phone-mockup.is-visible {
  display: block;
  animation: carousel-fade 0.4s ease;
}

/* Phone mockup frame */
.phone-mockup {
  position: relative;
  background: #1a1a1a;
  border-radius: 36px;
  padding: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.phone-mockup::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 8px;
  background: #0d0d0d;
  border-radius: 4px;
  z-index: 1;
}

.phone-mockup img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 9 / 19.5;
  object-fit: contain;
  background: #fff;
}

@keyframes carousel-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 1px solid #e8e8e8;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ddd;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.carousel-dot:hover {
  background: #bbb;
}

.carousel-dot.is-active {
  background: #1a1a1a;
}

.cta-band {
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
  margin-bottom: 2rem;
}

.cta-band h2 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.cta-band p {
  color: #555;
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
}

.fff-legal {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.fff-legal a {
  font-size: 0.9rem;
  color: #555;
  text-decoration: none;
}

.fff-legal a:hover {
  color: #1a1a1a;
  text-decoration: underline;
}

.fff-footer {
  padding: 1.5rem;
  text-align: center;
  border-top: 1px solid #e8e8e8;
}

.fff-footer-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.fff-footer-nav a {
  font-size: 0.9rem;
  color: #555;
  text-decoration: none;
}

.fff-footer-nav a:hover {
  color: #1a1a1a;
  text-decoration: underline;
}

@media (max-width: 960px) {
  .app-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .fff-icon {
    margin: 0 auto;
  }

  .fff-description {
    margin-left: auto;
    margin-right: auto;
  }

  .cards-carousel-section {
    grid-template-columns: 1fr;
  }

  .cards-stack {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .feature-card {
    flex: 1;
    min-width: 160px;
  }
}

@media (max-width: 640px) {
  .cards-stack {
    flex-direction: column;
  }

  .feature-card {
    min-width: 0;
  }

  .hero-copy h1 {
    font-size: 1.7rem;
  }

  /* Scale phone mockups to fit viewport on mobile – prevent cutoff */
  .carousel-track .phone-mockup {
    width: min(180px, 52%);
  }

  .phone-mockup {
    padding: 8px;
  }

  .phone-mockup::before {
    width: 48px;
    height: 6px;
    top: 10px;
  }

  .phone-mockup img {
    border-radius: 24px;
  }
}
