/* ─── Design tokens ────────────────────────────────── */
:root {
  --c-primary:      #4C662B;
  --c-primary-dark: #3A4F20;
  --c-bg:           #F7F4EF;
  --c-surface:      #FFFFFF;
  --c-text:         #1C1B1A;
  --c-text-muted:   #5C5A57;
  --c-border:       #E2DED8;
  --c-water:        #CDE7F6;
  --c-fertilise:    #F8E3BD;
  --c-cleanup:      #F6DDD2;

  --radius:         16px;
  --radius-sm:      8px;
  --shadow-sm:      0 1px 4px rgba(0,0,0,0.07);
  --shadow:         0 3px 14px rgba(0,0,0,0.09);
  --shadow-hover:   0 8px 28px rgba(0,0,0,0.13);

  --max-w:          1080px;
  --gap:            24px;
}

/* ─── Reset & base ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ─── Layout ───────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
}

/* ─── Site header ──────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 244, 239, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-border);
}

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

.wordmark {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--c-primary);
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--c-text-muted);
  transition: color 0.15s;
}
.nav-link:hover { color: var(--c-primary); }

/* ─── Hero ─────────────────────────────────────────── */
.hero {
  padding: clamp(64px, 12vw, 120px) 0 clamp(48px, 8vw, 80px);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--c-text);
  max-width: 18ch;
}

.hero h1 em {
  font-style: normal;
  color: var(--c-primary);
}

.hero-sub {
  margin-top: 20px;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--c-text-muted);
  max-width: 52ch;
  line-height: 1.7;
}

/* ─── Section title ────────────────────────────────── */
.section-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-primary);
  margin-bottom: 24px;
}

/* ─── Apps grid ────────────────────────────────────── */
.apps { padding-bottom: clamp(64px, 10vw, 100px); }

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--gap);
}

.app-card {
  display: flex;
  flex-direction: column;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
}
.app-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.app-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.app-card__icon img { width: 100%; height: 100%; object-fit: cover; }

.app-card__body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.app-card__body p {
  font-size: 0.95rem;
  color: var(--c-text-muted);
  line-height: 1.6;
}

.app-card__cta {
  display: inline-block;
  margin-top: 24px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--c-primary);
}

/* ─── Site footer ──────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--c-border);
  padding: 32px 0;
}
.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: center;
}
.site-footer p {
  font-size: 0.875rem;
  color: var(--c-text-muted);
}
.site-footer a {
  color: var(--c-primary);
  transition: opacity 0.15s;
}
.site-footer a:hover { opacity: 0.75; }

/* ─── Product page — breadcrumb ────────────────────── */
.breadcrumb {
  padding: 20px 0 0;
}
.breadcrumb a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--c-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.breadcrumb a:hover { opacity: 0.75; }

/* ─── Product hero ─────────────────────────────────── */
.product-hero {
  padding: clamp(40px, 8vw, 80px) 0 clamp(32px, 6vw, 64px);
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.product-hero__icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  flex-shrink: 0;
}
.product-hero__icon img { width: 100%; height: 100%; object-fit: cover; }

.product-hero__text h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.product-hero__text .tagline {
  margin-top: 10px;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--c-text-muted);
}

/* ─── Feature grid ─────────────────────────────────── */
.features { padding-bottom: clamp(48px, 8vw, 80px); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--gap);
}

.feature-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 24px;
}

.feature-card__icon {
  font-size: 1.8rem;
  margin-bottom: 14px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.feature-card p {
  font-size: 0.9rem;
  color: var(--c-text-muted);
  line-height: 1.6;
}

.feature-card--schedule .feature-card__icon { background: var(--c-fertilise); }
.feature-card--plants   .feature-card__icon { background: var(--c-water); }
.feature-card--notify   .feature-card__icon { background: var(--c-cleanup); }
.feature-card--backup   .feature-card__icon { background: #E2EDD4; }
.feature-card--ai       .feature-card__icon { background: #EDE4F8; }

.badge-coming-soon {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #EDE4F8;
  color: #6B3FA0;
  padding: 2px 7px;
  border-radius: 20px;
  vertical-align: middle;
  margin-left: 6px;
  line-height: 1.6;
}

/* ─── Download section ─────────────────────────────── */
.download {
  padding: clamp(32px, 6vw, 60px) 0;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  margin-bottom: clamp(40px, 6vw, 64px);
}

.download h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.download p {
  color: var(--c-text-muted);
  margin-bottom: 28px;
  max-width: 50ch;
}

.play-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--c-text);
  color: #FFFFFF;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: default;
  opacity: 0.6;
}
.play-badge--live {
  cursor: pointer;
  opacity: 1;
  transition: background 0.15s;
}
.play-badge--live:hover { background: var(--c-primary); }

.play-badge__logo { font-size: 1.4rem; }

/* ─── Privacy section (product page) ──────────────── */
.privacy-callout {
  background: #EEF4E7;
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: clamp(48px, 8vw, 80px);
}
.privacy-callout h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--c-primary);
  margin-bottom: 8px;
}
.privacy-callout p {
  font-size: 0.9rem;
  color: var(--c-text-muted);
  line-height: 1.6;
}
.privacy-callout a {
  color: var(--c-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ─── Privacy page ─────────────────────────────────── */
.privacy-page { padding: clamp(40px, 8vw, 80px) 0; }
.privacy-page h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.privacy-page .subtitle {
  color: var(--c-text-muted);
  margin-bottom: 48px;
}
.privacy-page h2 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 36px 0 10px;
  color: var(--c-primary);
}
.privacy-page p {
  font-size: 0.95rem;
  color: var(--c-text-muted);
  line-height: 1.75;
  max-width: 70ch;
}
.privacy-page ul {
  padding-left: 20px;
  margin-top: 8px;
}
.privacy-page ul li {
  font-size: 0.95rem;
  color: var(--c-text-muted);
  line-height: 1.75;
  max-width: 70ch;
}
