/* ============================================
   MYPLANTS — styles.css
   Mobile-first, responsive
   ============================================ */

/* CONFIG */
:root {
  --logo-green: #6FBF3A;
  --primary-green: #3A8F6B;
  --secondary-green: #E7F2EC;
  --app-background: #F6FAF7;
  --image-background: #EAF2EE;
  --muted-text: #8AA19A;
  --dim-text: #7A8F88;
  --status-healthy: #4CAF50;
  --toggle-track: #DDE7E3;
  --dark: #1a2e26;
  --white: #ffffff;

  --font: 'Inter', sans-serif;

  --radius: 16px;
  --radius-sm: 8px;
  --max-width: 1100px;
  --nav-height: 64px;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background-color: var(--app-background);
  color: var(--dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ============================================
   NAV
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 250, 247, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--toggle-track);
  height: var(--nav-height);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--dark);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--dim-text);
  transition: color 0.2s;
}

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

/* Hide nav links on small screens */
@media (max-width: 600px) {
  .nav-links {
    display: none;
  }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  padding: 72px 24px 64px;
}

.hero-inner:not(:has(.hero-visual)) {
  justify-content: center;
}

.hero-inner:not(:has(.hero-visual)) .hero-text {
  max-width: 640px;
  text-align: center;
}

.hero-inner:not(:has(.hero-visual)) .hero-sub {
  max-width: 100%;
}

.hero-inner:not(:has(.hero-visual)) .hero-actions {
  justify-content: center;
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

@media (min-width: 768px) {
  .hero-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.hero-text {
  flex: 1;
  max-width: 520px;
}

.hero-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--primary-green);
  background: var(--secondary-green);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 600;
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 16px;
}

.hero-sub {
  font-size: 17px;
  font-weight: 400;
  color: var(--dim-text);
  margin-bottom: 36px;
  max-width: 440px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  position: relative;
  display: inline-block;
}

.store-badge {
  height: 52px;
  width: auto;
  border-radius: var(--radius-sm);
}

.coming-soon-pill {
  position: absolute;
  top: -10px;
  right: -10px;
  background: var(--primary-green);
  color: white;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 999px;
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: 260px;
  background: var(--white);
  border-radius: 40px;
  box-shadow: 0 32px 80px rgba(58, 143, 107, 0.15), 0 8px 24px rgba(0,0,0,0.08);
  overflow: hidden;
  border: 6px solid var(--toggle-track);
}

.phone-mockup .screenshot {
  width: 100%;
  height: auto;
}

@media (min-width: 768px) {
  .phone-mockup {
    width: 300px;
  }
}

/* ============================================
   FEATURES
   ============================================ */
.features {
  padding: 80px 24px;
  background: var(--white);
}

.features-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.feature-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

@media (min-width: 768px) {
  .feature-row {
    flex-direction: row;
    gap: 64px;
  }

  .feature-row.reverse {
    flex-direction: row-reverse;
  }
}

.feature-text {
  flex: 1;
}

.feature-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted-text);
  margin-bottom: 12px;
}

.feature-text h2 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 14px;
  line-height: 1.25;
}

.feature-text p {
  font-size: 16px;
  color: var(--dim-text);
  line-height: 1.7;
}

.feature-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.feature-image img {
  width: 240px;
  border-radius: 28px;
  box-shadow: 0 16px 48px rgba(58, 143, 107, 0.12), 0 4px 16px rgba(0,0,0,0.06);
  border: 4px solid var(--toggle-track);
}

@media (min-width: 768px) {
  .feature-image img {
    width: 280px;
  }
}

/* ============================================
   CTA
   ============================================ */
.cta {
  padding: 80px 24px;
  background: var(--secondary-green);
  text-align: center;
}

.cta-inner {
  max-width: 560px;
  margin: 0 auto;
}

.cta-logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  margin: 0 auto 24px;
}

.cta h2 {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 12px;
}

.cta p {
  font-size: 16px;
  color: var(--dim-text);
  margin-bottom: 28px;
}

.btn-outline {
  display: inline-block;
  padding: 12px 28px;
  border: 2px solid var(--primary-green);
  color: var(--primary-green);
  font-size: 15px;
  font-weight: 500;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.btn-outline:hover {
  background: var(--primary-green);
  color: white;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 48px 24px 24px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-bottom: 40px;
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  color: white;
}

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

.footer-links {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-heading {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}

/* ============================================
   LEGAL PAGES (privacy.html, terms.html)
   ============================================ */
.legal-page {
  padding: 64px 24px 80px;
}

.legal-inner {
  max-width: 720px;
  margin: 0 auto;
}

.legal-inner h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
}

.legal-meta {
  font-size: 14px;
  color: var(--muted-text);
  margin-bottom: 40px;
}

.legal-inner h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--dark);
  margin-top: 40px;
  margin-bottom: 12px;
}

.legal-inner h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  margin-top: 24px;
  margin-bottom: 8px;
}

.legal-inner p {
  font-size: 15px;
  color: var(--dim-text);
  line-height: 1.75;
  margin-bottom: 16px;
}

.legal-inner ul {
  margin: 0 0 16px 24px;
}

.legal-inner ul li {
  font-size: 15px;
  color: var(--dim-text);
  line-height: 1.75;
  margin-bottom: 6px;
}

.legal-inner a {
  color: var(--primary-green);
  text-decoration: underline;
}

.legal-inner a:hover {
  opacity: 0.8;
}