/* ========================================
   Phoneless Garden — Styles
   ======================================== */

/* Reset & Base */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: #1a1a1a;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #339933;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========================================
   Placeholder Image Styles
   ======================================== */

img[src$=".svg"],
img[src$=".png"] {
  background: #e0e0e0;
  min-height: 1px;
}

/* ========================================
   Navigation
   ======================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #1a1a1a;
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
}

.nav-brand:hover {
  text-decoration: none;
}

.nav-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-links a {
  color: #666666;
  font-size: 15px;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #339933;
  text-decoration: none;
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
  padding: 100px 0 80px;
  text-align: center;
}

.hero h1 {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.2;
  max-width: 720px;
  margin: 0 auto 24px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 19px;
  color: #666666;
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.store-badges {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.badge-link {
  display: inline-block;
  transition: opacity 0.2s;
}

.badge-link:hover {
  opacity: 0.8;
  text-decoration: none;
}

.store-badge {
  height: 48px;
  width: auto;
}

.hero-screenshots {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin-top: 60px;
  position: relative;
  gap: 8px;
}

.screenshot-frame {
  width: clamp(230px, 22vw, 300px);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.screenshot-left {
  transform: translateX(20px) rotate(-3deg);
}

.screenshot-right {
  transform: translateX(-20px) rotate(3deg);
}

.screenshot-center {
  z-index: 2;
  width: clamp(260px, 25vw, 340px);
}

.screenshot {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 2;
  border-radius: 24px;
  background: #e8e8e8;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
  object-fit: cover;
}

/* ========================================
   How It Works
   ======================================== */

.how-it-works {
  padding: 100px 0;
}

.how-it-works h2 {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 60px;
  letter-spacing: -0.01em;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.step {
  text-align: center;
  padding: 0 16px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #339933;
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
}

.step h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step p {
  color: #666666;
  font-size: 16px;
}

/* ========================================
   Philosophy Callout
   ======================================== */

.philosophy {
  padding: 80px 0;
  background: #C7EEC7;
}

.philosophy-quote {
  border: none;
  padding: 0;
  margin: 0;
}

.philosophy-text {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
  max-width: 640px;
  margin: 0 auto 20px;
  letter-spacing: -0.01em;
}

.philosophy-supporting {
  text-align: center;
  color: #444444;
  font-size: 18px;
  max-width: 540px;
  margin: 0 auto;
}

/* ========================================
   Feature Highlights (Two Cards)
   ======================================== */

.feature-highlights {
  padding: 100px 0;
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.feature-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.feature-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #e8e8e8;
  overflow: hidden;
}

.feature-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-card h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 24px 24px 8px;
}

.feature-card p {
  color: #666666;
  font-size: 16px;
  margin: 0 24px 24px;
  line-height: 1.6;
}

/* ========================================
   Feature Grid
   ======================================== */

.feature-grid-section {
  padding: 100px 0;
  background: #fafafa;
}

.feature-grid-section h2 {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 60px;
  letter-spacing: -0.01em;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 28px 24px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.grid-card-icon {
  display: block;
  width: 32px;
  height: 32px;
  margin-bottom: 16px;
  color: #339933;
}

.grid-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.grid-card p {
  color: #666666;
  font-size: 15px;
  line-height: 1.5;
}

/* ========================================
   Bottom CTA
   ======================================== */

.bottom-cta {
  padding: 100px 0;
  text-align: center;
}

.cta-text {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 32px;
  letter-spacing: -0.01em;
}

/* ========================================
   Footer
   ======================================== */

.site-footer {
  background: #1A2E1A;
  color: rgba(255, 255, 255, 0.8);
  padding: 60px 0 32px;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-column a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  transition: color 0.2s;
}

.footer-column a:hover {
  color: #ffffff;
  text-decoration: none;
}

.footer-bottom {
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========================================
   Responsive — Tablet & Mobile
   ======================================== */

@media (max-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* Hero */
  .hero {
    padding: 64px 0 48px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 17px;
  }

  .store-badge {
    height: 42px;
    width: auto;
  }

  /* Screenshots: horizontal scroll on mobile */
  .hero-screenshots {
    margin-top: 40px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    padding: 0 24px 16px;
    scroll-snap-type: x mandatory;
    gap: 12px;
  }

  .screenshot-frame {
    width: 220px;
    scroll-snap-align: center;
  }

  .screenshot-left,
  .screenshot-right {
    transform: none;
  }

  .screenshot-center {
    width: 220px;
  }

  .screenshot {
    border-radius: 20px;
  }

  /* How It Works */
  .how-it-works {
    padding: 64px 0;
  }

  .how-it-works h2 {
    font-size: 24px;
    margin-bottom: 40px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 400px;
    margin: 0 auto;
  }

  /* Philosophy */
  .philosophy {
    padding: 48px 0;
  }

  .philosophy-text {
    font-size: 24px;
  }

  .philosophy-supporting {
    font-size: 16px;
  }

  /* Feature Highlights */
  .feature-highlights {
    padding: 64px 0;
  }

  .feature-cards {
    grid-template-columns: 1fr;
  }

  .feature-card h2 {
    font-size: 22px;
  }

  /* Feature Grid */
  .feature-grid-section {
    padding: 64px 0;
  }

  .feature-grid-section h2 {
    font-size: 24px;
    margin-bottom: 40px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Bottom CTA */
  .bottom-cta {
    padding: 64px 0;
  }

  .cta-text {
    font-size: 24px;
    margin-bottom: 24px;
  }

  /* Footer */
  .footer-columns {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  /* Nav */
  .nav-links {
    gap: 16px;
  }

  .nav-links a {
    font-size: 14px;
  }
}

/* ========================================
   Legal Pages (privacy.html, terms.html)
   ======================================== */

.legal-page {
  padding: 80px 24px 96px;
}

.legal-content {
  max-width: 720px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.75;
  color: #333333;
}

.legal-content h1 {
  font-size: 40px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.legal-meta {
  font-size: 14px;
  color: #888888;
  margin-bottom: 48px;
}

.legal-content h2 {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.01em;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.legal-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.legal-content p {
  margin-bottom: 1.25rem;
  color: #333333;
}

.legal-content ul {
  margin: 0 0 1.5rem 1.5rem;
  padding: 0;
}

.legal-content li {
  margin-bottom: 0.5rem;
  color: #333333;
}

.legal-content a {
  color: #339933;
  text-decoration: underline;
  word-break: break-word;
}

.legal-content a:hover {
  text-decoration: none;
}

.legal-copyright {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid #eeeeee;
  font-size: 14px;
  color: #888888;
  text-align: center;
}

@media (max-width: 768px) {
  .legal-page {
    padding: 48px 20px 64px;
  }

  .legal-content {
    font-size: 16px;
    line-height: 1.7;
  }

  .legal-content h1 {
    font-size: 30px;
  }

  .legal-content h2 {
    font-size: 21px;
    margin-top: 2rem;
  }

  .legal-content h3 {
    font-size: 17px;
  }

  .legal-meta {
    margin-bottom: 36px;
  }
}
