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

/* Colors from src/lib/theme.ts */
:root {
  --primary: #4CAF50;
  --primary-light: #E8F5E9;
  --primary-dark: #2E7D32;
  --text: #333;
  --text-secondary: #666;
  --text-muted: #999;
  --bg: #fff;
  --bg-secondary: #f5f5f5;
  --bg-tertiary: #f9f9f9;
  --border: #ddd;
  --border-light: #eee;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--text);
}

.logo img { height: 32px; width: 32px; border-radius: 8px; }

nav a {
  margin-left: 24px;
  color: var(--text-secondary);
}

/* Hero */
.hero {
  padding: 80px 0 60px;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  color: var(--text);
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 32px;
}

.store-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--text);
  color: white;
  border-radius: 8px;
  font-weight: 500;
}

.store-btn:hover { opacity: 0.9; text-decoration: none; }

/* Showcase Section - Split Layout */
.showcase {
  padding: 60px 0 80px;
  background: var(--bg-secondary);
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.showcase-content {
  position: relative;
  min-height: 180px;
}

.slide-copy {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

.slide-copy.active {
  position: relative;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.showcase-content h2 {
  font-size: 2rem;
  color: var(--text);
  margin-bottom: 16px;
}

.showcase-content p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
}

.showcase-phone {
  display: flex;
  justify-content: center;
}

.carousel-wrapper {
  position: relative;
  width: 280px;
  height: 580px;
}

.carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.phone-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 280px;
  height: 580px;
  background: linear-gradient(145deg, #e8e8e8, #d0d0d0);
  border-radius: 44px;
  padding: 10px;
  box-shadow:
    0 8px 40px rgba(0,0,0,0.12),
    inset 0 1px 0 rgba(255,255,255,0.8);
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.phone-frame.active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--bg);
  border-radius: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1rem;
  text-align: center;
  padding: 20px;
  overflow: hidden;
}

/* Placeholder content styling */
.phone-screen svg {
  margin-bottom: 16px;
  color: var(--primary);
  opacity: 0.5;
}

.phone-screen span {
  color: var(--text-secondary);
  font-weight: 500;
}

/* For actual screenshots - img fills the screen */
.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 28px;
}

.carousel-dots {
  display: flex;
  gap: 10px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, transform 0.3s;
}

.dot:hover {
  background: var(--text-muted);
}

.dot.active {
  background: var(--primary);
  transform: scale(1.3);
}

/* Features */
.features {
  padding: 60px 0;
  background: var(--bg);
}

.features h2 {
  text-align: center;
  margin-bottom: 40px;
  color: var(--text);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg);
  padding: 24px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.feature-card h3 {
  color: var(--primary-dark);
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Footer */
footer {
  padding: 40px 0;
  border-top: 1px solid var(--border-light);
  text-align: center;
  background: var(--bg);
}

footer nav {
  margin-bottom: 16px;
}

footer nav a {
  margin: 0 12px;
  color: var(--text-secondary);
}

footer p {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Legal pages */
.page-content {
  padding: 60px 0;
}

.page-content h1 {
  margin-bottom: 8px;
  color: var(--text);
}

.page-content .updated {
  color: var(--text-muted);
  margin-bottom: 32px;
}

.page-content h2 {
  margin-top: 32px;
  margin-bottom: 12px;
  font-size: 1.25rem;
  color: var(--text);
}

.page-content p, .page-content ul {
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.page-content ul {
  padding-left: 24px;
}

/* Support page */
.support-card {
  background: var(--bg-secondary);
  padding: 32px;
  border-radius: 12px;
  margin-bottom: 40px;
}

.support-card h2 { margin-bottom: 16px; }

.email-link {
  font-size: 1.25rem;
  font-weight: 500;
}

/* Mobile */
@media (max-width: 800px) {
  .hero { padding: 50px 0 40px; }
  .hero h1 { font-size: 2rem; }
  nav { display: none; }

  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .showcase-content {
    order: 1;
  }

  .showcase-phone {
    order: 2;
  }

  .carousel-dots {
    justify-content: center;
  }

  .carousel-wrapper {
    width: 240px;
    height: 500px;
  }

  .phone-frame {
    width: 240px;
    height: 500px;
    border-radius: 38px;
  }

  .phone-screen {
    border-radius: 30px;
  }

  .feature-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .carousel-wrapper {
    width: 220px;
    height: 460px;
  }

  .phone-frame {
    width: 220px;
    height: 460px;
    border-radius: 34px;
  }

  .phone-screen {
    border-radius: 26px;
  }
}
