/* App Landing Page - Ultra Minimalist Dark Theme */
/* Inspired by magneta.app - for iOS app landing pages */

/* ========================================
   CSS Variables for App Landing
   ======================================== */
:root {
  --app-landing-bg: #000000;
  --app-landing-text: #ffffff;
  --app-landing-text-muted: rgba(255, 255, 255, 0.7);
  --app-landing-text-subtle: rgba(255, 255, 255, 0.5);
  --app-landing-accent: #4ADE80; /* Calm health green for Pepio */
}

/* ========================================
   Base Styles
   ======================================== */
body.app-landing-page {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-color: var(--app-landing-bg);
  color: var(--app-landing-text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   Hero Section - Centered Content
   ======================================== */
.app-landing-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  min-height: 100vh;
}

/* App Title with Emoji */
.app-landing-title {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: clamp(3rem, 10vw, 5rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  margin: 0 0 1rem 0;
  color: var(--app-landing-text);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.app-landing-emoji {
  font-size: 0.9em;
  display: inline-block;
}

/* Tagline */
.app-landing-tagline {
  font-size: clamp(1rem, 3vw, 1.25rem);
  font-weight: 300;
  color: var(--app-landing-text-muted);
  margin: 0 0 3rem 0;
  letter-spacing: 0.05em;
}

/* ========================================
   App Store Buttons
   ======================================== */
.app-landing-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.app-store-badge {
  display: inline-block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

.app-store-badge img {
  height: 54px;
  width: auto;
}

/* ========================================
   Hero → Tools "scroll cue" pill
   ======================================== */
.app-landing-tools-pill {
  margin-top: 3rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--app-landing-text-muted);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  animation: fadeInUp 0.8s ease-out 0.35s both;
}

.app-landing-tools-pill:hover {
  border-color: var(--app-landing-accent);
  color: var(--app-landing-text);
  transform: translateY(-1px);
}

.app-landing-tools-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--app-landing-accent);
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
}

.app-landing-tools-pill-arrow {
  transition: transform 0.2s ease;
}

.app-landing-tools-pill:hover .app-landing-tools-pill-arrow {
  transform: translateX(2px);
}

/* ========================================
   Free Tools Section
   ======================================== */
.app-landing-tools {
  padding: 6rem 2rem 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.app-landing-tools-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.app-landing-tools-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.app-landing-tools-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  font-weight: 500;
  color: var(--app-landing-accent);
  margin: 0 0 1rem 0;
  text-transform: uppercase;
}

.app-landing-tools-title {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  margin: 0 0 1rem 0;
  color: var(--app-landing-text);
}

.app-landing-tools-subtitle {
  font-size: 1rem;
  font-weight: 300;
  color: var(--app-landing-text-muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

.app-landing-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.app-landing-tool-card {
  display: block;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.015);
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.app-landing-tool-card:hover {
  border-color: rgba(74, 222, 128, 0.4);
  transform: translateY(-2px);
  background: rgba(74, 222, 128, 0.03);
}

.app-landing-tool-icon {
  display: inline-block;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.app-landing-tool-name {
  font-size: 1rem;
  font-weight: 500;
  color: var(--app-landing-text);
  margin: 0 0 0.5rem 0;
  letter-spacing: 0.01em;
}

.app-landing-tool-desc {
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--app-landing-text-muted);
  margin: 0;
  line-height: 1.55;
}

.app-landing-tools-cta {
  text-align: center;
  margin-top: 3rem;
}

.app-landing-tools-link {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  color: var(--app-landing-accent);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.app-landing-tools-link:hover {
  border-bottom-color: var(--app-landing-accent);
}

/* ========================================
   Footer (multi-column, ChatSupportBot-style)
   ======================================== */
.app-landing-footer {
  padding: 4rem 2rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.01);
  font-size: 0.875rem;
}

.app-landing-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
}

.app-landing-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.app-landing-footer-brand-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 400;
  margin: 0;
  color: var(--app-landing-text);
}

.app-landing-footer-brand-tag {
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--app-landing-text-muted);
  margin: 0;
  line-height: 1.55;
}

.app-landing-footer-badge {
  display: inline-block;
  margin-top: 0.5rem;
}

.app-landing-footer-badge img {
  height: 40px;
  width: auto;
}

.app-landing-footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.app-landing-footer-col-title {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--app-landing-text);
  margin: 0 0 1rem 0;
}

.app-landing-footer-col-title-spaced {
  margin-top: 1.75rem;
}

.app-landing-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.app-landing-footer-col a {
  color: var(--app-landing-text-muted);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 300;
  line-height: 1.45;
  transition: color 0.15s ease;
  display: inline-block;
}

.app-landing-footer-col a:hover {
  color: var(--app-landing-accent);
}

.app-landing-footer-bottom {
  grid-column: 1 / -1;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.app-landing-footer-disclaimer {
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--app-landing-text-subtle);
  margin: 0;
  line-height: 1.55;
  max-width: 720px;
}

.app-landing-footer-copy {
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--app-landing-text-subtle);
  margin: 0;
}

/* ========================================
   Responsive Design
   ======================================== */

/* Tablet — collapse tools grid + footer to 2 columns */
@media (max-width: 900px) {
  .app-landing-tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .app-landing-footer-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .app-landing-footer-cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Phone */
@media (max-width: 600px) {
  .app-landing-hero {
    padding: 1.5rem;
  }

  .app-landing-title {
    flex-direction: row;
    gap: 0.25rem;
  }

  .app-store-badge img {
    height: 48px;
  }

  .app-landing-tools {
    padding: 4rem 1.25rem 3rem;
  }

  .app-landing-tools-header {
    margin-bottom: 2.5rem;
  }

  .app-landing-tools-grid {
    grid-template-columns: 1fr;
  }

  .app-landing-footer {
    padding: 3rem 1.25rem 5.5rem; /* Bottom space for mobile app banner */
  }

  .app-landing-footer-cols {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .app-landing-footer-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
  }
}

/* ========================================
   Subtle Animations
   ======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.app-landing-title {
  animation: fadeInUp 0.8s ease-out;
}

.app-landing-tagline {
  animation: fadeInUp 0.8s ease-out 0.1s both;
}

.app-landing-buttons {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* ========================================
   Optional: Subtle Background Effect
   ======================================== */
.app-landing-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    ellipse at center top,
    rgba(74, 222, 128, 0.04) 0%,
    transparent 50%
  );
  pointer-events: none;
  z-index: -1;
}

/* Position hero relative for the pseudo-element */
.app-landing-hero {
  position: relative;
}

