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

:root {
  /* Same palette as the app (mobile/lib/core/theme/app_theme.dart). Light only, like the app. */
  color-scheme: light;
  --green: #2E8B3A;
  --green-strong: #256F2E;
  --green-dark: #0B3A12;
  --green-pale: #CDF3C4;
  --terra: #D9542B;
  --terra-pale: #FFE0D2;
  --sky: #1B7FC4;
  --sky-pale: #D4ECFF;
  --bg: #FFFCF2;
  --surface: #FFFFFF;
  --surface-2: #F3F4E4;
  --line: #D7E2C8;
  --text: #1C2418;
  --muted: #4B5646;
  --shadow: 0 1px 2px rgba(11, 58, 18, .06), 0 8px 24px rgba(11, 58, 18, .08);
  --cat-vegetable: #CDF3C4; --cat-vegetable-ink: #1B5E20;
  --cat-fruit: #FFDDD0; --cat-fruit-ink: #8A2C0D;
  --cat-herb: #E6F5B8; --cat-herb-ink: #3E5A0A;
  --cat-tree: #FFEDB8; --cat-tree-ink: #6B4A00;
  --cat-flower: #FFD9EC; --cat-flower-ink: #8A1A5B;
}

html { scroll-behavior: smooth; }
/* Faint watercolour garden behind every page, as in the app. */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: url('/garden-bg.jpg') center top / cover no-repeat; opacity: .42;
}
body {
  position: relative;
  font-family: 'Nunito', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 19px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--green); }
img { max-width: 100%; display: block; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; color: var(--text); text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 1px 3px rgba(11, 58, 18, .25); }
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 700; padding: 10px 12px; border-radius: 10px; }
.nav-links a:hover { color: var(--text); background: var(--surface-2); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: 14px;
  font: inherit; font-weight: 800; text-decoration: none; border: 0; cursor: pointer;
  transition: transform .12s ease, background .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: var(--bg); }
.btn-primary:hover { background: var(--green-strong); }
.btn-ghost { background: var(--surface-2); color: var(--text); }

/* Hero */
.hero { padding: 72px 0 40px; display: grid; gap: 48px; grid-template-columns: 1.1fr .9fr; align-items: center; }
.eyebrow { display: inline-block; background: var(--green-pale); color: var(--green-dark); font-weight: 800; font-size: .95rem; padding: 6px 14px; border-radius: 99px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.08; font-weight: 900; letter-spacing: -.02em; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--green); }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 34rem; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.store-note { margin-top: 14px; font-size: 1rem; color: var(--muted); }

/* Phone mock */
.phone {
  justify-self: center; width: min(300px, 100%);
  background: var(--text); border-radius: 44px; padding: 12px;
  box-shadow: 0 30px 60px rgba(31, 77, 30, .25);
}
.screen { background: var(--bg); border-radius: 34px; padding: 22px 16px 18px; min-height: 520px; }
.screen h4 { font-size: 1.25rem; font-weight: 900; margin-bottom: 4px; }
.screen .sub { color: var(--muted); font-size: .85rem; margin-bottom: 16px; }
.mock-task { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 12px; margin-bottom: 10px; }
.mock-task .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; flex: none; }
.mock-task b { display: block; font-size: .95rem; }
.mock-task span { font-size: .8rem; color: var(--muted); }
.mock-task .check { margin-left: auto; width: 26px; height: 26px; border: 2px solid var(--line); border-radius: 50%; flex: none; }
.pill { display: inline-block; font-size: .75rem; font-weight: 800; padding: 3px 10px; border-radius: 99px; }

section { padding: 64px 0; }
.section-head { max-width: 40rem; margin-bottom: 36px; }
.section-head .kicker { color: var(--green-strong); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .9rem; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.15; font-weight: 900; letter-spacing: -.01em; margin: 6px 0 10px; }
.section-head p { color: var(--muted); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.card .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; margin-bottom: 14px; }
.card h3 { font-size: 1.08rem; font-weight: 800; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 1rem; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { counter-increment: step; padding: 24px; border-radius: 20px; background: var(--surface-2); }
.step::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: var(--bg); font-weight: 900; margin-bottom: 14px; }
.step h3 { font-weight: 800; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: 1rem; }

/* Catalog */
.catalog-tools { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.chip { min-height: 44px; padding: 8px 16px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--green); color: var(--bg); border-color: var(--green); }
.plants { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.plant { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.plant .img { aspect-ratio: 1; background: var(--surface-2); }
.plant .img img { width: 100%; height: 100%; object-fit: cover; }
.plant .body { padding: 10px 12px 14px; }
.plant b { display: block; font-size: 1.05rem; line-height: 1.3; }
.plant span { font-size: .95rem; color: var(--muted); text-transform: capitalize; }
.catalog-empty { color: var(--muted); padding: 24px 0; }

.cta { background: var(--green-dark); color: var(--bg); border-radius: 28px; padding: 48px 32px; text-align: center; }
.cta h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 900; margin-bottom: 8px; }
.cta p { opacity: .85; margin-bottom: 0; }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 1rem; background: var(--bg); }
footer .wrap { display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap; }
footer a { color: var(--muted); }

/* Prose pages */
.prose { max-width: 44rem; padding: 48px 0 72px; }
.prose h1 { font-size: 2.2rem; font-weight: 900; line-height: 1.15; margin-bottom: 8px; }
.prose .updated { color: var(--muted); margin-bottom: 32px; }
.prose h2 { font-size: 1.25rem; font-weight: 800; margin: 32px 0 8px; }
.prose p, .prose li { color: var(--text); margin-bottom: 12px; }
.prose ul { padding-left: 22px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .features, .steps { grid-template-columns: 1fr; }
  .nav-links a.hide-sm { display: none; }
}

/* Plant cards are links */
a.plant { display: block; color: inherit; text-decoration: none; transition: transform .12s ease, box-shadow .12s ease; }
a.plant:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.see-all { margin-top: 20px; }

/* Plant pages */
.plant-page { padding-top: 20px; padding-bottom: 56px; }
.crumbs { font-size: 1rem; color: var(--muted); margin-bottom: 20px; }
.crumbs a { color: var(--muted); }
.plant-hero { display: grid; grid-template-columns: minmax(0, 380px) 1fr; gap: 36px; align-items: start; margin-bottom: 12px; }
.plant-photo { border-radius: 24px; overflow: hidden; background: var(--surface-2); aspect-ratio: 1; box-shadow: var(--shadow); }
.plant-photo img { width: 100%; height: 100%; object-fit: cover; }
.plant-hero h1, .list-title { font-size: clamp(1.9rem, 4.2vw, 2.8rem); line-height: 1.1; font-weight: 900; letter-spacing: -.02em; margin-bottom: 6px; }
.species { font-style: italic; color: var(--muted); margin-bottom: 14px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.pill-link { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 99px; background: var(--green-pale); color: var(--green-dark); font-weight: 800; font-size: 1rem; text-decoration: none; }
.plant-hero .lead { font-size: 1.12rem; margin-bottom: 12px; }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; }
.block { padding: 36px 0 0; }
.block h2 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); font-weight: 900; margin-bottom: 14px; letter-spacing: -.01em; }

.cal { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 14px; overflow-x: auto; }
.cal-row { display: grid; grid-template-columns: 110px repeat(12, minmax(22px, 1fr)); gap: 4px; align-items: center; margin-bottom: 4px; min-width: 460px; }
.cal-row b { font-size: 1rem; }
.cal-row span { height: 26px; border-radius: 6px; background: var(--surface-2); }
.cal-head span { background: none; height: auto; text-align: center; font-size: .9rem; font-weight: 800; color: var(--muted); }
.cal-head i { font-style: normal; }
.cal-row span.on { background: var(--green); }
.cal-row span.on.sow { background: #8BC34A; }
.cal-row span.on.plant { background: var(--sky); }
.cal-row span.on.flowers { background: #D0508F; }
.cal-row span.on.harvest { background: var(--terra); }
.cal-row span.on.prune { background: #8D6E63; }
.cal-note { color: var(--muted); font-size: 1rem; margin-top: 10px; }

.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.facts div { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.facts dt { font-weight: 800; font-size: 1rem; color: var(--muted); margin-bottom: 2px; }
.facts dd { font-size: 1.05rem; }

.plan { list-style: none; counter-reset: plan; }
.plan li { counter-increment: plan; position: relative; padding: 0 0 22px 56px; }
.plan li::before { content: counter(plan); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--green); color: var(--bg); display: grid; place-items: center; font-weight: 900; }
.plan li:not(:last-child)::after { content: ''; position: absolute; left: 18px; top: 42px; bottom: 4px; width: 2px; background: var(--line); }
.plan .when { font-size: 1rem; font-weight: 800; color: var(--green-strong); }
.plan h3 { font-size: 1.2rem; font-weight: 800; margin: 2px 0 4px; }
.plan h3 small { font-weight: 600; color: var(--muted); }
.plan p { color: var(--text); }
.alt { color: var(--muted); font-size: 1rem; margin-top: 4px; }

.yearly { list-style: none; display: grid; gap: 10px; }
.yearly li { display: grid; grid-template-columns: 110px 1fr; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.yearly .month { font-weight: 900; color: var(--terra); }
.yearly p { color: var(--muted); }
.credit { color: var(--muted); font-size: 1rem; margin-top: 32px; }
.credit a { color: var(--muted); }
.cat-section { padding: 28px 0 8px; scroll-margin-top: 80px; }
.cat-section h2 { font-size: 1.5rem; font-weight: 900; margin-bottom: 14px; }
.cat-section h2 small { font-size: 1rem; color: var(--muted); font-weight: 700; }
a.chip { display: inline-flex; align-items: center; text-decoration: none; }

/* App promo card */
.app-promo { margin: 40px 0 8px; display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center;
  background: linear-gradient(135deg, #0B3A12, #2E8B3A); color: #fff; border-radius: 28px; padding: 32px; }
.app-promo .kicker { display: inline-block; background: rgba(255,255,255,.18); padding: 4px 12px; border-radius: 99px; font-weight: 800; font-size: .9rem; margin-bottom: 10px; }
.app-promo h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 900; line-height: 1.15; margin-bottom: 8px; color: #fff; }
.app-promo p { opacity: .92; margin-bottom: 12px; }
.app-promo ul { list-style: none; margin-bottom: 18px; }
.app-promo li { padding-left: 26px; position: relative; margin-bottom: 4px; }
.app-promo li::before { content: '✓'; position: absolute; left: 0; font-weight: 900; color: #C5F2A0; }
.promo-img img { width: 180px; height: 180px; object-fit: cover; border-radius: 24px; border: 4px solid rgba(255,255,255,.35); }
.store-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.store-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 18px; border-radius: 14px; background: #111; color: #fff; text-decoration: none; font-weight: 800; }
.store-btn small { display: block; font-weight: 600; font-size: .8rem; opacity: .8; line-height: 1.1; }
.store-btn.soon { background: rgba(0,0,0,.35); }
.store-ic { font-size: 1.4rem; }

@media (max-width: 860px) {
  .plant-hero { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .plant-photo { max-width: 420px; }
  .app-promo { grid-template-columns: 1fr; padding: 24px; }
  .promo-img { display: none; }
  .yearly li { grid-template-columns: 1fr; gap: 2px; }
}

.hero-stores { margin-top: 18px; }
.hero-stores .store-btn.soon { background: var(--text); color: var(--bg); }
.plant[hidden] { display: none; }

.plant-page article, .plant-hero > div { min-width: 0; }
.plant-hero h1 { overflow-wrap: anywhere; }

.pill-link.cat-vegetable { background: var(--cat-vegetable); color: var(--cat-vegetable-ink); }
.pill-link.cat-fruit { background: var(--cat-fruit); color: var(--cat-fruit-ink); }
.pill-link.cat-herb { background: var(--cat-herb); color: var(--cat-herb-ink); }
.pill-link.cat-tree { background: var(--cat-tree); color: var(--cat-tree-ink); }
.pill-link.cat-flower { background: var(--cat-flower); color: var(--cat-flower-ink); }

/* Readability over the garden background: text sits on cream panels. */
.panel, .plant-hero, .block, .plant-page > .section-head, .cat-section, .hero > div:first-child, #features .section-head,
#how .section-head, #catalog .section-head, .prose {
  background: rgba(255, 252, 242, .94);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.plant-hero, .hero > div:first-child { padding: 24px; }
.block { padding: 28px 28px 24px; margin-top: 24px; }
.block h2 { margin-top: 0; }
.plant-page > .section-head, #features .section-head, #how .section-head, #catalog .section-head { padding: 22px 26px; }
.cat-section { padding: 24px 24px 28px; margin-top: 24px; }
.prose { padding: 36px 32px; margin: 32px 0 40px; }
.plan li:last-child { padding-bottom: 4px; }
.yearly li, .facts div { background: var(--surface); }
.catalog-tools { background: rgba(255, 252, 242, .94); border-radius: 99px; padding: 8px; display: inline-flex; }
.see-all .btn { box-shadow: var(--shadow); }
.cal-note, .credit { margin-bottom: 0; }
@media (max-width: 860px) {
  body { font-size: 18px; }
  .block, .cat-section { padding: 22px 18px; }
  .plant-hero, .hero > div:first-child { padding: 18px; }
  .prose { padding: 26px 20px; }
  .catalog-tools { border-radius: 20px; }
}

.screen-shot { width: 100%; height: auto; border-radius: 34px; display: block; }
