/* ============================================================
   GardenIQ — marketing landing page
   Aesthetic: botanical field-guide editorial × precise iOS app.
   Display: Fraunces (warm optical serif). UI/body: SF Pro Rounded
   (ui-rounded) to mirror the app exactly. Palette: brand board.
   ============================================================ */

:root {
  /* Brand palette (from docs/gardeniq-brand-board.png) */
  --evergreen: #1e5e46;
  --evergreen-deep: #143f31;
  --evergreen-night: #0d2b22;
  --botanical: #2e8b57;
  --sprout: #7ed957;
  --leaf-mist: #e8f5ec;
  --cream: #f7f9f5;
  --mist-gray: #7b847e;
  --clay: #d9846a;
  --water: #4da3e6;

  --ink: #14241d;
  --ink-soft: #41514a;
  --paper: #ffffff;
  --line: #e2e9e2;

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-rounded: ui-rounded, "SF Pro Rounded", "Hiragino Maru Gothic ProN",
    -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --maxw: 1140px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 40px;

  --shadow-card: 0 1px 2px rgba(20, 36, 29, 0.04), 0 12px 30px -12px rgba(20, 36, 29, 0.18);
  --shadow-phone: 0 40px 80px -30px rgba(13, 43, 34, 0.55), 0 8px 24px -10px rgba(13, 43, 34, 0.35);
  --shadow-float: 0 10px 28px -8px rgba(13, 43, 34, 0.35);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-rounded);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
section { position: relative; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-rounded);
  font-weight: 700; font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--botanical);
}
.eyebrow::before {
  content: ""; width: 18px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--sprout), var(--botanical));
}
.eyebrow--light { color: #bfe8cf; }
.eyebrow--light::before { background: linear-gradient(90deg, var(--sprout), #bfe8cf); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.04; letter-spacing: -0.015em; }
h2.section-title { font-size: clamp(30px, 4.6vw, 52px); }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head p { color: var(--ink-soft); font-size: clamp(16px, 1.6vw, 19px); margin-top: 18px; }
em { font-style: italic; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  background: color-mix(in srgb, var(--cream) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.nav.is-stuck { border-color: var(--line); background: color-mix(in srgb, var(--cream) 90%, transparent); }
.nav__row { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; }
.brand img { width: 32px; height: 32px; border-radius: 9px; box-shadow: 0 2px 8px -2px rgba(13,43,34,0.4); }
.brand__name { font-family: var(--font-display); font-size: 21px; font-weight: 600; letter-spacing: -0.01em; color: var(--evergreen); }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { font-weight: 600; font-size: 15px; color: var(--ink-soft); transition: color 0.2s; }
.nav__links a:hover { color: var(--evergreen); }
.nav__cta { display: inline-flex; }
/* The Download CTA is a .store button inside .nav__links; keep its text/logo
   white (the generic .nav__links a rule above would otherwise win on specificity). */
.nav__links a.nav__cta,
.nav__links a.nav__cta:hover { color: #fff; }
@media (max-width: 760px) { .nav__links a:not(.nav__cta) { display: none; } }

/* ============================================================
   BUTTONS / APP STORE BADGE
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  border: none; border-radius: 999px; font-weight: 700; font-size: 15px;
  padding: 12px 22px; transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.store {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink); color: #fff; border-radius: 14px;
  padding: 11px 20px 11px 18px; transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.2s;
  box-shadow: 0 10px 24px -12px rgba(0,0,0,0.6);
}
.store:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(0,0,0,0.7); }
.store:active { transform: translateY(0); }
.store svg { width: 26px; height: 26px; flex: none; }
.store__txt { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.store__txt small { font-size: 11px; font-weight: 600; opacity: 0.82; letter-spacing: 0.01em; }
.store__txt strong { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.store--ever { background: var(--evergreen); }
.store--on-dark { background: #fff; color: var(--ink); }

.ghost {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 15px; color: var(--evergreen);
}
.ghost svg { width: 16px; height: 16px; transition: transform 0.2s; }
.ghost:hover svg { transform: translateX(3px); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding-top: 56px; padding-bottom: 90px; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 78% 8%, rgba(126,217,87,0.16), transparent 70%),
    radial-gradient(70% 60% at 12% 0%, rgba(46,139,87,0.14), transparent 72%);
}
.hero__bg::after { /* faint botanical contour lines */
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600'%3E%3Cg fill='none' stroke='%231e5e46' stroke-opacity='0.05' stroke-width='1.4'%3E%3Cpath d='M-50 480C120 360 200 520 360 400S620 320 760 440'/%3E%3Cpath d='M-50 560C120 440 200 600 360 480S620 400 760 520'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 760px;
  opacity: 0.6;
}
.hero .wrap { position: relative; z-index: 1; }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center;
}
.hero__copy { max-width: 560px; }
.hero h1 {
  font-size: clamp(42px, 6.4vw, 76px); margin-top: 22px; color: var(--ink);
}
.hero h1 .accent { color: var(--evergreen); font-style: italic; font-weight: 400; }
.hero__lede {
  margin-top: 24px; font-size: clamp(17px, 1.8vw, 20px); color: var(--ink-soft);
  max-width: 480px;
}
.hero__actions { margin-top: 34px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }

/* QR card */
.qr {
  display: inline-flex; align-items: center; gap: 20px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 18px 24px 18px 18px; box-shadow: var(--shadow-card);
}
.qr__code {
  width: 168px; height: 168px; border-radius: 16px; background: #fff; padding: 11px;
  border: 1px solid var(--line); flex: none;
}
.qr__code img { width: 100%; height: 100%; }
.qr__label { font-size: 15px; line-height: 1.4; color: var(--ink-soft); max-width: 168px; }
.qr__label b { display: block; color: var(--ink); font-weight: 800; font-size: 17px; margin-bottom: 3px; }
@media (max-width: 420px) { .qr { display: none; } }

.hero__meta {
  margin-top: 30px; display: flex; gap: 26px; flex-wrap: wrap;
  font-size: 13.5px; color: var(--mist-gray); font-weight: 600;
}
.hero__meta span { display: inline-flex; align-items: center; gap: 7px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--sprout); }

/* hero device cluster */
.hero__stage { position: relative; display: flex; justify-content: center; }
.hero__stage .device { transform: rotate(2.5deg); }
.chip {
  position: absolute; z-index: 4;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--paper); border-radius: 14px; padding: 9px 13px;
  box-shadow: var(--shadow-float); font-weight: 700; font-size: 13.5px;
  border: 1px solid rgba(226,233,226,0.8);
}
.chip svg, .chip .ic { width: 17px; height: 17px; flex: none; }
.chip--match { top: 16%; left: -6%; }
.chip--healthy { top: 6%; right: -2%; color: var(--botanical); }
.chip--water { bottom: 16%; right: -8%; }
.chip__pill {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%; color: #fff; font-size: 11px;
}
.float { animation: bob 6s ease-in-out infinite; }
.float--b { animation-delay: -2s; }
.float--c { animation-delay: -4s; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ============================================================
   DEVICE (CSS iPhone frame around real screenshots)
   ============================================================ */
.device {
  --w: 286px;
  position: relative; width: var(--w); aspect-ratio: 1320 / 2868;
  background: linear-gradient(160deg, #1a3329, #0b231b);
  border-radius: calc(var(--w) * 0.155);
  padding: calc(var(--w) * 0.032);
  box-shadow: var(--shadow-phone);
  flex: none;
}
.device::before { /* side button highlight */
  content: ""; position: absolute; inset: 2px; border-radius: inherit;
  background: linear-gradient(160deg, rgba(255,255,255,0.10), transparent 40%);
  pointer-events: none;
}
.device__screen {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  border-radius: calc(var(--w) * 0.125);
  background: var(--cream);
}
.device__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.device__island {
  position: absolute; z-index: 3; top: calc(var(--w) * 0.052); left: 50%; transform: translateX(-50%);
  width: 31%; height: calc(var(--w) * 0.085); background: #06120d; border-radius: 999px;
}

/* ============================================================
   MARQUEE — real plant names from the app
   ============================================================ */
.marquee {
  border-block: 1px solid var(--line); background: var(--leaf-mist);
  overflow: hidden; padding: 16px 0;
}
.marquee__track { display: flex; gap: 0; width: max-content; animation: scroll 38s linear infinite; }
.marquee__track span {
  font-family: var(--font-display); font-style: italic; font-size: 19px;
  color: var(--evergreen); padding: 0 30px; white-space: nowrap; opacity: 0.85;
}
.marquee__track span::after { content: "❧"; margin-left: 30px; color: var(--botanical); opacity: 0.5; font-style: normal; }
@keyframes scroll { to { transform: translateX(-50%); } }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ============================================================
   FEATURE ROWS
   ============================================================ */
.features { padding: 96px 0 30px; }
.frow {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  padding: 50px 0;
}
.frow--rev .frow__media { order: 2; }
.frow__media { display: flex; justify-content: center; position: relative; }
.frow__copy { max-width: 480px; }
.frow__copy h2 { font-size: clamp(28px, 3.6vw, 42px); margin-top: 16px; }
.frow__copy > p { margin-top: 16px; color: var(--ink-soft); font-size: 17.5px; }

.bullets { margin-top: 26px; display: grid; gap: 14px; }
.bullets li { display: flex; gap: 13px; align-items: flex-start; list-style: none; }
.bullets li .bi {
  flex: none; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center;
  background: var(--leaf-mist); color: var(--botanical); margin-top: 1px;
}
.bullets li .bi svg { width: 16px; height: 16px; }
.bullets li b { font-weight: 700; }
.bullets li span { color: var(--ink-soft); }

.frow__media .tag {
  position: absolute; z-index: 4; background: var(--paper); border: 1px solid var(--line);
  border-radius: 13px; padding: 8px 12px; box-shadow: var(--shadow-float);
  font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; gap: 7px;
}

/* ============================================================
   CARE-AT-A-GLANCE replica grid (real app data)
   ============================================================ */
.glance { padding: 70px 0 96px; }
.glance__panel {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--shadow-card); padding: clamp(28px, 4vw, 52px);
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 4vw, 56px); align-items: center;
}
.glance__intro h2 { font-size: clamp(26px, 3.4vw, 40px); }
.glance__intro p { color: var(--ink-soft); margin-top: 16px; font-size: 17px; }
.glance__intro .plant {
  margin-top: 22px; display: inline-flex; align-items: baseline; gap: 10px;
  font-family: var(--font-display);
}
.glance__intro .plant b { font-size: 22px; color: var(--evergreen); }
.glance__intro .plant em { color: var(--mist-gray); font-size: 15px; }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.stat {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 16px 16px 18px; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.stat:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.stat__top { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mist-gray); }
.stat__ic { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; flex: none; }
.stat__ic svg { width: 14px; height: 14px; }
.stat b { display: block; margin-top: 9px; font-size: 17px; font-weight: 800; }
.stat span { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-soft); }

/* ============================================================
   STEPS — how it works
   ============================================================ */
.steps { background: var(--leaf-mist); padding: 96px 0; border-block: 1px solid var(--line); }
.steps__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 54px; }
.step {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 30px 28px 32px; position: relative; box-shadow: var(--shadow-card);
}
.step__no {
  font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--botanical);
  display: inline-flex; align-items: center; gap: 8px; letter-spacing: 0.04em;
}
.step__no::before { content: ""; width: 26px; height: 1.5px; background: var(--botanical); opacity: 0.5; }
.step__ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin: 18px 0 16px; background: var(--leaf-mist); color: var(--evergreen); }
.step__ic svg { width: 24px; height: 24px; }
.step h3 { font-size: 23px; }
.step p { margin-top: 10px; color: var(--ink-soft); font-size: 15.5px; }

/* ============================================================
   PLUS band
   ============================================================ */
.plus {
  background:
    radial-gradient(80% 120% at 85% 10%, rgba(126,217,87,0.18), transparent 60%),
    linear-gradient(165deg, var(--evergreen), var(--evergreen-night));
  color: #eaf3ec; padding: 100px 0; overflow: hidden;
}
.plus__grid { display: grid; grid-template-columns: 1fr 0.85fr; gap: 56px; align-items: center; }
.plus h2 { color: #fff; font-size: clamp(30px, 4vw, 50px); }
.plus__lede { margin-top: 20px; color: #cfe6d6; font-size: 18px; max-width: 460px; }
.plus__list { margin-top: 28px; display: grid; gap: 14px; }
.plus__list li { display: flex; gap: 12px; align-items: flex-start; list-style: none; color: #e7f2ea; }
.plus__list .bi { flex: none; width: 26px; height: 26px; border-radius: 8px; background: rgba(126,217,87,0.18); color: var(--sprout); display: grid; place-items: center; }
.plus__list .bi svg { width: 15px; height: 15px; }
.price {
  margin-top: 34px; display: inline-flex; align-items: stretch; gap: 0;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.16); border-radius: var(--r-md);
  overflow: hidden;
}
.price__cell { padding: 16px 24px; }
.price__cell + .price__cell { border-left: 1px solid rgba(255,255,255,0.14); }
.price__cell small { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #a9cdb4; }
.price__cell b { font-size: 24px; color: #fff; font-family: var(--font-display); font-weight: 600; }
.price__cell b span { font-family: var(--font-rounded); font-size: 13px; font-weight: 700; color: #cfe6d6; }
.price__note { margin-top: 14px; font-size: 13.5px; color: #9fc2aa; }
.plus__stage { display: flex; justify-content: center; }
.plus__stage .device { transform: rotate(-3deg); }

/* ============================================================
   FINAL CTA
   ============================================================ */
.cta { padding: 100px 0; text-align: center; }
.cta__card {
  position: relative; overflow: hidden;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--shadow-card); padding: clamp(40px, 6vw, 72px) 24px;
}
.cta__card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50% 80% at 50% 0%, rgba(126,217,87,0.12), transparent 70%);
}
.cta__inner { position: relative; max-width: 620px; margin-inline: auto; }
.cta h2 { font-size: clamp(32px, 5vw, 56px); }
.cta h2 .accent { color: var(--evergreen); font-style: italic; font-weight: 400; }
.cta p { color: var(--ink-soft); font-size: 18px; margin-top: 18px; }
.cta__actions { margin-top: 36px; display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap; }
.cta__qr { width: 132px; height: 132px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); padding: 12px; box-shadow: var(--shadow-card); }
.cta__qr img { width: 100%; height: 100%; }
.cta__qrwrap { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cta__qrwrap small { font-size: 12.5px; font-weight: 700; color: var(--mist-gray); letter-spacing: 0.02em; }

/* ============================================================
   FOOTER
   ============================================================ */
.foot { background: var(--evergreen-night); color: #b9cfc0; padding: 64px 0 40px; }
.foot__top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; align-items: flex-start; }
.foot__brand { max-width: 320px; }
.foot__brand .brand__name { color: #fff; }
.foot__tag { margin-top: 16px; font-family: var(--font-display); font-style: italic; font-size: 18px; color: #9fc2aa; }
.foot__cols { display: flex; gap: 64px; flex-wrap: wrap; }
.foot__col h4 { font-family: var(--font-rounded); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: #7fa28c; font-weight: 800; margin-bottom: 16px; }
.foot__col a, .foot__col p { display: block; font-size: 15px; color: #cadbcf; margin-bottom: 11px; transition: color 0.2s; }
.foot__col a:hover { color: #fff; }
.foot__bar { margin-top: 50px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: #7fa28c; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s cubic-bezier(0.2,0.7,0.2,1), transform 0.7s cubic-bezier(0.2,0.7,0.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

/* hero load stagger */
.hero__copy > * { opacity: 0; animation: rise 0.8s cubic-bezier(0.2,0.7,0.2,1) forwards; }
.hero__copy > *:nth-child(1) { animation-delay: 0.05s; }
.hero__copy > *:nth-child(2) { animation-delay: 0.13s; }
.hero__copy > *:nth-child(3) { animation-delay: 0.21s; }
.hero__copy > *:nth-child(4) { animation-delay: 0.29s; }
.hero__copy > *:nth-child(5) { animation-delay: 0.37s; }
.hero__stage { opacity: 0; animation: rise 0.9s cubic-bezier(0.2,0.7,0.2,1) 0.3s forwards; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero__copy { max-width: none; }
  .hero__stage { margin-top: 8px; }
  .frow { grid-template-columns: 1fr; gap: 36px; }
  .frow--rev .frow__media { order: 0; }
  .frow__copy { max-width: none; }
  .glance__panel { grid-template-columns: 1fr; }
  .steps__grid { grid-template-columns: 1fr; }
  .plus__grid { grid-template-columns: 1fr; gap: 44px; }
  .plus__stage { order: -1; }
}
@media (max-width: 560px) {
  .wrap { padding-inline: 18px; }
  .hero { padding-top: 32px; }
  .device { --w: 250px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .hero__actions { gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__copy > *, .hero__stage { opacity: 1; }
}
