/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Minimal white/gray palette with strategic color accents */
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --accent-color: #f59e0b;
  --text-primary: #111827;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --background: #ffffff;
  --background-section: #fafafa;
  --background-subtle: #f8f9fa;
  --divider: #f1f3f4;
  --shadow-minimal: 0 1px 2px 0 rgb(0 0 0 / 0.03);
  --shadow-hover: 0 4px 8px 0 rgb(0 0 0 / 0.08);

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  /* Spacing */
  --container-max-width: 1200px;
  --section-spacing: 6rem;
  --content-spacing: 2rem;

  /* Transitions */
  --transition: all 0.2s ease;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;
    --background: #111827;
    --background-section: #1f2937;
    --background-subtle: #374151;
    --divider: #374151;
  }
}

/* Base Typography */
body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Navigation - Simple and Minimal */
.nav {
  padding: 2rem 0;
  background: var(--background);
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 3rem;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--primary-color);
}

@media (max-width: 768px) {
  .nav-links {
    gap: 2rem;
  }

  .nav-links a {
    font-size: 0.9rem;
  }
}

/* Main Apps Layout */
.apps-main {
  background: var(--background);
}

/* App Sections */
.app-section {
  padding: var(--section-spacing) 0;
}

/* Alternate background sections */
.app-section-alt {
  background: var(--background-section);
}


/* App Grid */
.app-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.app-grid-reverse {
  direction: rtl;
}

.app-grid-reverse > * {
  direction: ltr;
}

@media (max-width: 1024px) {
  .app-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .app-grid-reverse {
    direction: ltr;
  }

  /* Fix bullet alignment on tablet too */
  .app-description {
    text-align: left;
  }

  .feature-list {
    text-align: left;
  }

  .feature-list li {
    text-align: left;
  }

  /* Fix title alignment on tablet/landscape mobile */
  .app-header {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .app-title-group {
    text-align: left;
    width: 100%;
    max-width: 500px;
  }

  .app-title,
  .app-tagline {
    text-align: left !important;
  }
}

/* App Content */
.app-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.app-icon {
  width: 80px;
  height: 80px;
  border-radius: 1rem;
  flex-shrink: 0;
}

.app-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.app-tagline {
  color: var(--text-secondary);
  font-size: 1.125rem;
  font-weight: 400;
}

.app-description {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* Feature List - Clean and minimal */
.feature-list {
  list-style: none;
  margin: 0 0 2.5rem 0;
  padding: 0;
}

.feature-list li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.5rem;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

.feature-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  top: 0.5rem;
  color: var(--primary-color);
  font-weight: 700;
}

/* App Actions */
.app-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.btn-store img {
  height: 50px;
  width: auto;
  transition: var(--transition);
}

.btn-store:hover img {
  transform: scale(1.02);
}

.btn-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
}

.btn-link:hover {
  color: var(--primary-hover);
}

/* App Meta */
.app-meta {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.app-meta span {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.rating {
  color: var(--accent-color);
  font-size: 0.9rem;
  font-weight: 600;
}

/* App Media */
.screenshot-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.screenshot-main {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  transition: var(--transition);
}

.screenshot-main:hover {
  transform: scale(1.01);
  box-shadow: var(--shadow-hover);
}

/* Video specific styling */
video.screenshot-main {
  max-height: 500px;
  width: auto;
  object-fit: contain;
}

@media (max-width: 768px) {
  video.screenshot-main {
    max-height: 350px;
  }
}

/* Footer - Minimal */
.footer {
  background: var(--background-section);
  padding: 3rem 0 2rem;
  margin-top: 2rem;
}

.footer-simple {
  text-align: center;
}

.footer-simple p {
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.footer-simple a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

.footer-simple a:hover {
  color: var(--primary-hover);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .app-section {
    padding: 4rem 0;
  }

  .app-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .app-title-group {
    text-align: left;
    width: 100%;
  }

  .app-title-group .app-title,
  .app-title-group .app-tagline {
    text-align: left;
  }

  .app-title {
    font-size: 2rem;
  }

  .app-tagline {
    font-size: 1rem;
  }

  .app-description {
    font-size: 1rem;
    text-align: left;
  }

  .app-actions {
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
  }

  .app-meta {
    justify-content: center;
    gap: 1rem;
  }

  /* Fix bullet alignment on mobile */
  .feature-list {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
  }

  .feature-list li {
    padding: 0.5rem 0 0.5rem 1.2rem;
    text-align: left;
  }

  .feature-list li::before {
    left: 0;
  }
}

/* Focus and Accessibility */
a:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Privacy Policy Styles */
.privacy-main {
  background: var(--background);
}

.privacy-section {
  padding: 4rem 0;
}

.privacy-content {
  max-width: 800px;
  margin: 0 auto;
}

.privacy-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.last-updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 3rem;
}

.policy-section {
  margin-bottom: 2.5rem;
}

.policy-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.policy-section p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.policy-section a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

.policy-section a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .privacy-content h1 {
    font-size: 2rem;
  }

  .policy-section h2 {
    font-size: 1.25rem;
  }

  .policy-section p {
    font-size: 1rem;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}