/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --text: #1f2937;
  --text-light: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f9fafb;
  --border: #e5e7eb;
  --shadow: rgba(0, 0, 0, 0.1);
  --radius: 12px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  padding: 0;
  margin: 0;
}

/* Header */
header {
  text-align: center;
  padding: 60px 20px 40px;
  /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
  color: #333;
}

.logo h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.tagline {
  font-size: 1.125rem;
  opacity: 0.95;
  font-weight: 300;
}

/* Main content */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

/* App cards */
.app-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  box-shadow: 0 4px 6px var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.app-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px var(--shadow);
}

.app-icon {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.app-card h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

.app-description {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 24px;
}

.app-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
}

.feature {
  background: var(--bg-alt);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.875rem;
  color: var(--text-light);
  border: 1px solid var(--border);
}

/* Store buttons */
.store-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.store-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
  min-height: 56px;
  font-weight: 500;
  border: 2px solid transparent;
}

.app-store {
  background: #000;
  color: #fff;
}

.app-store:hover {
  background: #333;
  transform: scale(1.02);
}

.play-store {
  background: #01875f;
  color: #fff;
}

.play-store:hover {
  background: #016d4c;
  transform: scale(1.02);
}

.store-button.disabled {
  background: #d1d5db;
  color: #9ca3af;
  cursor: not-allowed;
  opacity: 0.6;
}

.store-button.disabled:hover {
  transform: none;
  background: #d1d5db;
}

.store-text {
  font-size: 0.75rem;
  font-weight: 400;
  opacity: 0.9;
}

.store-name {
  font-size: 1.125rem;
  font-weight: 600;
}

/* Privacy link */
.privacy-link {
  display: inline-block;
  color: var(--primary);
  text-decoration: none;
  font-size: 0.875rem;
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.privacy-link:hover {
  border-bottom-color: var(--primary);
}

/* Footer */
footer {
  text-align: center;
  padding: 40px 20px;
  background: var(--bg-alt);
  color: var(--text-light);
  font-size: 0.875rem;
  border-top: 1px solid var(--border);
}

/* Privacy pages */
.privacy-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.privacy-page header {
  background: var(--bg);
  color: var(--text);
  padding: 40px 20px;
  margin-bottom: 40px;
}

.back-link {
  display: inline-block;
  color: var(--primary);
  text-decoration: none;
  margin-bottom: 20px;
  font-size: 0.9375rem;
}

.back-link:hover {
  text-decoration: underline;
}

.privacy-page h1 {
  font-size: 2.25rem;
  margin-bottom: 8px;
}

.privacy-page h2 {
  font-size: 1.5rem;
  margin: 32px 0 16px;
  color: var(--text);
}

.privacy-page h3 {
  font-size: 1.25rem;
  margin: 24px 0 12px;
  color: var(--text);
}

.privacy-page p {
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 16px;
}

.last-updated {
  color: var(--text-light);
  font-size: 0.9375rem;
  margin-bottom: 32px;
}

/* Responsive */
@media (max-width: 768px) {
  header {
    padding: 40px 20px 30px;
  }

  .logo h1 {
    font-size: 2rem;
  }

  .tagline {
    font-size: 1rem;
  }

  main {
    padding: 40px 16px;
  }

  .apps-grid {
    gap: 32px;
  }

  .app-card {
    padding: 24px;
  }

  .app-icon {
    width: 100px;
    height: 100px;
  }

  .app-card h2 {
    font-size: 1.5rem;
  }

  .privacy-page h1 {
    font-size: 1.75rem;
  }
}
