/* =========================================================
   MyGrowPal — landing page styles
   Palette pulled from the app's garden theme
   ========================================================= */

:root {
  /* Greens */
  --forest: #2D6A4F;
  --moss:   #40916C;
  --sage:   #74C69D;
  --leaf:   #95D5B2;

  /* Accents */
  --terra:  #E07A5F;
  --sun:    #F4A261;
  --bloom:  #90BE6D;
  --sky:    #A8DADC;

  /* Neutrals */
  --cream:  #F7FAF5;
  --soil:   #1B3A2F;
  --ink:    #1B3A2F;
  --muted:  #5b6f64;
  --line:   #e2ece5;
  --white:  #ffffff;

  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 10px rgba(27, 58, 47, 0.06);
  --shadow:    0 18px 50px rgba(27, 58, 47, 0.12);
  --shadow-lg: 0 30px 80px rgba(27, 58, 47, 0.22);

  --maxw: 1140px;
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--forest); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--soil);
  line-height: 1.1;
  margin: 0 0 0.5em;
  font-weight: 600;
}

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow { max-width: 820px; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--moss);
  background: rgba(116, 198, 157, 0.18);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.muted { color: var(--muted); }
.hl { color: var(--moss); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 999px;
  padding: 14px 26px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-sm { padding: 9px 18px; font-size: 0.92rem; }

.btn-primary { background: var(--forest); color: var(--white); }
.btn-primary:hover { background: var(--moss); color: #fff; box-shadow: var(--shadow-sm); }

.btn-ghost {
  background: transparent;
  color: var(--forest);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--sage); background: rgba(116,198,157,0.1); }

/* Google Play button */
.btn-play {
  background: var(--soil);
  color: #fff;
  padding: 12px 24px;
  box-shadow: var(--shadow-sm);
}
.btn-play:hover { background: #102a20; color: #fff; box-shadow: var(--shadow); }
.btn-play-text { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.btn-play-text small { font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85; }
.btn-play-text strong { font-size: 1.12rem; font-weight: 700; }
.btn-play-lg { padding: 16px 30px; }
.btn-play-lg .btn-play-text strong { font-size: 1.25rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 250, 245, 0.82);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 70px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--forest);
}
.brand:hover { text-decoration: none; }
.brand-mark { display: inline-flex; }
.brand-name { color: var(--forest); }

.nav {
  margin-left: auto;
  display: flex;
  gap: 28px;
}
.nav a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.96rem;
  position: relative;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--moss);
  transition: width .2s ease;
}
.nav a:hover { text-decoration: none; }
.nav a:hover::after { width: 100%; }

.header-cta { margin-left: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 70px 0 90px;
  overflow: hidden;
  background:
    radial-gradient(1100px 480px at 85% -8%, rgba(149, 213, 178, 0.4), transparent 60%),
    radial-gradient(900px 500px at -5% 10%, rgba(168, 218, 220, 0.28), transparent 55%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  letter-spacing: -0.01em;
  margin-bottom: 0.4em;
}
.lede {
  font-size: 1.16rem;
  color: #36473e;
  max-width: 36ch;
  margin-bottom: 1.8em;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-note { margin-top: 18px; font-size: 0.9rem; color: var(--muted); }

/* ---------- Phone mockup ---------- */
.hero-art { position: relative; display: flex; justify-content: center; }
.phone {
  position: relative;
  width: 290px;
  height: 590px;
  background: #0e231b;
  border-radius: 44px;
  padding: 14px;
  box-shadow: var(--shadow-lg);
  z-index: 2;
}
.phone-notch {
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  width: 120px; height: 26px;
  background: #0e231b;
  border-radius: 0 0 16px 16px;
  z-index: 3;
}
.phone-screen {
  width: 100%; height: 100%;
  background: linear-gradient(180deg, #ffffff, var(--cream));
  border-radius: 32px;
  padding: 40px 20px 22px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.app-statusbar {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 18px;
  letter-spacing: 0.04em;
}
.app-greet { margin-bottom: 18px; }
.app-hello { font-size: 0.82rem; color: var(--muted); margin: 0; }
.app-greet h3 { font-size: 1.35rem; margin: 4px 0 0; }

.app-tasks { list-style: none; margin: 0 0 18px; padding: 0; }
.app-tasks li {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 10px;
  font-size: 0.85rem;
  color: #2c3b33;
  box-shadow: var(--shadow-sm);
}
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot-leaf  { background: var(--moss); }
.dot-sun   { background: var(--sun); }
.dot-terra { background: var(--terra); }
.dot-sky   { background: var(--sky); }

.app-weather {
  margin-top: auto;
  background: linear-gradient(120deg, var(--forest), var(--moss));
  border-radius: 18px;
  padding: 16px 18px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.app-weather-temp { font-family: var(--font-head); font-size: 1.8rem; margin: 0; line-height: 1; }
.app-weather-label { margin: 4px 0 0; font-size: 0.74rem; opacity: 0.9; }
.app-weather-emoji { font-size: 2rem; }

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  z-index: 1;
}
.blob-1 {
  width: 180px; height: 180px;
  background: rgba(244, 162, 97, 0.45);
  top: -10px; right: 6px;
}
.blob-2 {
  width: 150px; height: 150px;
  background: rgba(168, 218, 220, 0.55);
  bottom: 10px; left: 0;
}

/* ---------- Trust strip ---------- */
.strip {
  background: var(--soil);
  color: #eaf3ee;
}
.strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding: 34px 24px;
}
.strip-item { display: flex; flex-direction: column; gap: 4px; }
.strip-item strong { color: var(--leaf); font-size: 1.02rem; }
.strip-item span { font-size: 0.86rem; color: #c3d6cb; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: #eef5ee; }

.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--sage);
}
.card-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  font-size: 1.5rem;
  background: rgba(116, 198, 157, 0.18);
  border-radius: 14px;
  margin-bottom: 16px;
}
.card h3 { font-size: 1.18rem; margin-bottom: 0.35em; }
.card p { font-size: 0.94rem; color: var(--muted); margin: 0; }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
}
.step-num {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 16px;
}
.step h3 { font-size: 1.15rem; }
.step p { color: var(--muted); font-size: 0.94rem; margin: 0; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--forest), var(--moss) 70%, var(--bloom));
  color: #fff;
  padding: 64px 0;
}
.cta-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 0.3em; }
.cta-banner p { color: rgba(255,255,255,0.9); margin: 0; font-size: 1.08rem; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 14px; }
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 4px 20px;
  box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--soil);
  padding: 16px 28px 16px 0;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--moss);
  transition: transform .2s ease;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 0 0 16px; }

/* ---------- Privacy ---------- */
.privacy-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
}
.privacy-box p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--soil);
  color: #cfe0d6;
  padding: 48px 0 28px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-name { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: #fff; margin: 0; }
.footer-tag { margin: 0; font-size: 0.88rem; color: #9fb8a8; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a { color: #cfe0d6; font-size: 0.94rem; }
.footer-nav a:hover { color: #fff; }
.footer-base {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 22px;
  font-size: 0.86rem;
  color: #9fb8a8;
}
.footer-base p { margin: 0; }
.footer-base .muted { color: #9fb8a8; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { text-align: center; }
  .lede { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .strip-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav { display: none; }
  .header-cta { margin-left: auto; }
  .section { padding: 64px 0; }
  .hero { padding: 48px 0 64px; }
}

@media (max-width: 520px) {
  .feature-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .strip-inner { grid-template-columns: 1fr; }
  .phone { width: 250px; height: 510px; }
  .cta-banner-inner { flex-direction: column; align-items: flex-start; }
}

/* ---------- Article / editorial pages ---------- */
.article-hero {
  position: relative;
  padding: 56px 0 48px;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 10% 0%, rgba(244, 162, 97, 0.22), transparent 58%),
    radial-gradient(800px 380px at 95% 20%, rgba(149, 213, 178, 0.38), transparent 55%),
    linear-gradient(180deg, #f3f8f3 0%, var(--cream) 100%);
  border-bottom: 1px solid var(--line);
}
.article-hero-inner { max-width: 760px; }
.article-hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.45em;
}
.article-hero h1 em {
  font-style: normal;
  color: var(--terra);
}
.article-hero-sub {
  font-size: 1.14rem;
  color: #36473e;
  line-height: 1.65;
  margin-bottom: 1.4em;
  max-width: 58ch;
}
.article-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.article-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--soil);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  box-shadow: var(--shadow-sm);
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-top: 20px;
  font-size: 0.88rem;
  color: var(--muted);
}
.article-meta a { font-weight: 600; }

.article-page {
  padding: 48px 0 88px;
}
.article-wrap {
  max-width: 720px;
  margin: 0 auto;
}
.article-wrap .lead {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--soil);
  margin-bottom: 1.4em;
}
.article-wrap h2 {
  font-size: clamp(1.45rem, 2.8vw, 1.85rem);
  margin-top: 2.2em;
  margin-bottom: 0.55em;
  padding-top: 0.2em;
}
.article-wrap h3 {
  font-size: 1.15rem;
  margin-top: 1.6em;
  margin-bottom: 0.45em;
}
.article-wrap p {
  color: #36473e;
  font-size: 1.05rem;
  line-height: 1.75;
}
.article-wrap ul,
.article-wrap ol {
  color: #36473e;
  font-size: 1.02rem;
  line-height: 1.7;
  padding-left: 1.35em;
  margin: 0 0 1.2em;
}
.article-wrap li { margin-bottom: 0.45em; }
.article-wrap a { color: var(--moss); font-weight: 600; }

.pot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 1.8em 0 2em;
}
.pot-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, border-color .2s ease;
}
.pot-card:hover {
  transform: translateY(-3px);
  border-color: var(--sage);
}
.pot-card .icon { font-size: 1.8rem; margin-bottom: 8px; }
.pot-card strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.02rem;
  color: var(--soil);
  margin-bottom: 4px;
}
.pot-card span {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}

.app-install-block {
  background: linear-gradient(135deg, var(--soil) 0%, var(--forest) 55%, var(--moss) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 30px 28px;
  margin: 2.4em 0;
  box-shadow: var(--shadow);
}
.app-install-block h3 {
  color: #fff;
  font-size: 1.35rem;
  margin: 0 0 0.5em;
}
.app-install-block p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
  margin-bottom: 1em;
}
.app-install-block ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4em;
  display: grid;
  gap: 8px;
}
.app-install-block li {
  position: relative;
  padding-left: 26px;
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.95rem;
}
.app-install-block li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--leaf);
  font-weight: 700;
}
.app-install-block .btn-play {
  background: #fff;
  color: var(--soil);
}
.app-install-block .btn-play:hover {
  background: var(--cream);
  color: var(--soil);
}

.tips-box {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--terra);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin: 1.8em 0 2em;
  box-shadow: var(--shadow-sm);
}
.tips-box h3 {
  margin-top: 0;
  font-size: 1.12rem;
}
.tips-box ol {
  margin-bottom: 0;
  padding-left: 1.25em;
}
.tips-box li { margin-bottom: 0.7em; }

.inline-tip {
  background: rgba(116, 198, 157, 0.14);
  border: 1px solid rgba(64, 145, 108, 0.25);
  border-radius: 14px;
  padding: 16px 20px;
  margin: 1.6em 0;
  font-size: 1rem;
  color: #2c4a38;
  line-height: 1.65;
}
.inline-tip strong { color: var(--forest); }

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.94rem;
  margin-bottom: 20px;
  color: var(--forest);
}

@media (max-width: 720px) {
  .article-hero { padding: 40px 0 36px; }
  .article-page { padding: 36px 0 64px; }
  .pot-grid { grid-template-columns: repeat(2, 1fr); }
  .app-install-block { padding: 24px 20px; }
}

@media (max-width: 480px) {
  .pot-grid { grid-template-columns: 1fr; }
  .article-wrap .lead { font-size: 1.1rem; }
}

/* ---------- Guides index ---------- */
.guides-hero {
  position: relative;
  padding: 56px 0 40px;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(149, 213, 178, 0.38), transparent 58%),
    radial-gradient(700px 360px at 5% 30%, rgba(168, 218, 220, 0.28), transparent 55%),
    linear-gradient(180deg, #f3f8f3 0%, var(--cream) 100%);
  border-bottom: 1px solid var(--line);
}
.guides-hero-inner { max-width: 680px; }
.guides-hero h1 {
  font-size: clamp(2rem, 4.6vw, 3rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.45em;
}
.guides-hero h1 em {
  font-style: normal;
  color: var(--moss);
}
.guides-hero-sub {
  font-size: 1.12rem;
  color: #36473e;
  line-height: 1.65;
  margin: 0;
  max-width: 52ch;
}

.guides-list { padding-top: 56px; padding-bottom: 72px; }

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.guide-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.guide-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--sage);
}
.guide-card-link {
  display: block;
  padding: 28px 26px;
  color: inherit;
  text-decoration: none;
}
.guide-card-link:hover { text-decoration: none; }
.guide-card-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--moss);
  background: rgba(116, 198, 157, 0.16);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.guide-card h2 {
  font-size: 1.28rem;
  line-height: 1.25;
  margin: 0 0 0.55em;
  color: var(--soil);
  transition: color .15s ease;
}
.guide-card:hover h2 { color: var(--forest); }
.guide-card p {
  font-size: 0.96rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 1em;
}
.guide-card-meta {
  font-size: 0.84rem;
  color: var(--muted);
  font-weight: 500;
}

@media (max-width: 720px) {
  .guide-grid { grid-template-columns: 1fr; }
  .guides-hero { padding: 40px 0 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover, .pot-card:hover, .guide-card:hover { transform: none; }
}
