/* Landing page. The hero's scanner is the one bold moment; everything after
   it is quiet, built from the same pieces the app uses. */

.landing { padding-bottom: 0; }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
  padding-top: 56px;
  padding-bottom: 88px;
}

.hero-title {
  font-size: clamp(46px, 6.4vw, 84px);
  font-weight: 800;
  font-variation-settings: "opsz" 96;
  letter-spacing: -0.045em;
  line-height: 0.96;
  max-width: 11ch;
  text-wrap: balance;
}

.hero-lede {
  margin-top: 24px;
  font-size: clamp(18px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--loam);
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--loam);
}

.hero-visual {
  position: relative;
  justify-self: center;
  width: min(100%, 440px);
}

/* The scanner: a real garden photo framed like the camera screen */
.scan-demo {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: 36px;
  overflow: hidden;
  background: var(--hedge);
  box-shadow: var(--shadow-hero);
  isolation: isolate;
}
.scan-demo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}
.scan-demo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 29, 22, 0.05) 45%, rgba(12, 29, 22, 0.55) 100%);
  z-index: 0;
}

.scan-corner {
  position: absolute;
  width: 54px;
  height: 54px;
  border: 4px solid #FFFFFF;
  z-index: 1;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}
.scan-corner--tl { top: 28px; left: 28px; border-right: 0; border-bottom: 0; border-top-left-radius: 18px; }
.scan-corner--tr { top: 28px; right: 28px; border-left: 0; border-bottom: 0; border-top-right-radius: 18px; }
.scan-corner--bl { bottom: 118px; left: 28px; border-right: 0; border-top: 0; border-bottom-left-radius: 18px; }
.scan-corner--br { bottom: 118px; right: 28px; border-left: 0; border-top: 0; border-bottom-right-radius: 18px; }

/* One sweep of the scan line when the page loads */
.scan-sweep {
  position: absolute;
  left: 36px;
  right: 36px;
  top: 34px;
  height: 3px;
  border-radius: 3px;
  background: #7CF2B9;
  box-shadow: 0 0 18px 4px rgba(124, 242, 185, 0.65);
  z-index: 1;
  opacity: 0;
  animation: scan-sweep 2.1s var(--ease) 0.35s 1 both;
}
@keyframes scan-sweep {
  0% { opacity: 0; transform: translateY(0); }
  12% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translateY(min(360px, 58vw)); }
}

.scan-demo-result {
  position: absolute;
  right: 16px;
  bottom: 40px;
  width: min(320px, 82%);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  color: #15201A;
  backdrop-filter: blur(12px);
  animation: result-in 0.45s var(--ease) 2.2s both;
}
@keyframes result-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.scan-demo-check {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #2EB67D;
  color: #FFFFFF;
  font-size: 17px;
}
.scan-demo-name {
  display: grid;
  min-width: 0;
}
.scan-demo-name strong {
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.scan-demo-name em {
  color: #5F6B63;
  font-size: 14px;
}
.scan-demo-match {
  margin-left: auto;
  display: grid;
  justify-items: end;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: #16704A;
  line-height: 1;
}
.scan-demo-match small {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: #5F6B63;
  margin-top: 3px;
}

/* Sits under the photo, nudged left so the two cards read as one stack */
.care-demo {
  position: relative;
  z-index: 3;
  margin: -30px 0 0 -34px;
  width: 260px;
  padding: 14px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-pop);
  animation: result-in 0.45s var(--ease) 2.45s both;
}
.care-demo-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.care-demo-head strong {
  font-family: var(--font-display);
  font-size: 16px;
}
.care-demo-sun {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--sprout);
  color: var(--turf-ink);
  font-size: 14px;
}
.care-demo ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.care-demo li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: var(--card-sunk);
  font-size: 14px;
  font-weight: 600;
}
.care-demo li .chip { margin-left: auto; height: 22px; font-size: 12px; padding: 0 8px; }

.task-dot {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 12px;
}
.task-dot--water { background: var(--water-soft); color: var(--water); }
.task-dot--mow { background: var(--mow-soft); color: var(--mow); }
.task-dot--feed { background: var(--sprout); color: var(--turf-ink); }

/* ---------- Features ---------- */
.features {
  display: grid;
  gap: 104px;
  padding-top: 24px;
  padding-bottom: 112px;
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: center;
}
.feature--flip .feature-copy { order: 2; }
.feature--flip .feature-visual { order: 1; }

.feature-copy h2 {
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.035em;
  max-width: 14ch;
  text-wrap: balance;
}
.feature-copy p {
  margin-top: 16px;
  font-size: 18px;
  color: var(--loam);
  max-width: 42ch;
}

.feature-visual {
  display: flex;
  justify-content: center;
}
.feature-visual > * { width: min(100%, 480px); }

/* Identification */
.id-demo { padding: 24px; }
.id-demo-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.id-demo h3 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.id-demo-sci {
  font-style: italic;
  color: var(--loam);
  margin-top: 2px;
}
.id-demo-aka {
  font-size: 14px;
  color: var(--loam-soft);
  margin-top: 6px;
}
.match-pill {
  flex: 0 0 auto;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--sprout);
  color: var(--turf-ink);
  font-weight: 700;
  font-size: 14px;
}
.id-demo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 16px 0 20px;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}
.fact-grid > div {
  padding: 12px 14px;
  border-radius: var(--radius-tile);
  background: var(--card-sunk);
  border: 1px solid var(--hairline);
}
.fact-grid dt {
  font-size: 13px;
  color: var(--loam);
  display: flex;
  align-items: center;
  gap: 6px;
}
.fact-grid dt i { color: var(--turf); width: 14px; }
.fact-grid dd {
  margin: 4px 0 0;
  font-weight: 700;
}

/* Weeds */
.weed-demo { overflow: hidden; }
.weed-demo img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
}
.weed-demo-body { padding: 18px; }

.weed-callout {
  padding: 18px;
  border-radius: var(--radius-card);
  background: var(--weed-soft);
  border: 1px solid var(--weed-line);
}
.weed-callout-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.weed-callout-head strong {
  font-family: var(--font-display);
  font-size: 18px;
}
.weed-callout-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--weed) 22%, transparent);
  color: var(--weed);
  font-size: 14px;
}
.weed-callout p { color: var(--loam); }

.fix-steps {
  list-style: none;
  counter-reset: fix;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.fix-steps li {
  counter-increment: fix;
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: start;
}
.fix-steps li::before {
  content: counter(fix);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  background: color-mix(in srgb, var(--weed) 20%, transparent);
  color: var(--weed-ink);
}

/* Week plan */
.week-demo { padding: 20px; }
.week-demo-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}
.week-demo-day {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 12px 4px;
  border-radius: var(--radius-tile);
  background: var(--card-sunk);
  border: 1px solid var(--hairline);
}
.week-demo-day.is-today {
  background: var(--hedge);
  border-color: var(--hedge);
  color: var(--on-dark);
}
.week-demo-name { font-size: 13px; font-weight: 700; }
.week-demo-day i { font-size: 17px; color: var(--loam); }
.week-demo-day.is-today i { color: #FFD66B; }
.week-demo-temp { font-size: 13px; font-weight: 600; }
.week-demo-dots {
  display: flex;
  gap: 3px;
  min-height: 8px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.dot--water { background: var(--water); }
.dot--mow { background: var(--mow); }
.dot--feed { background: var(--turf); }
.week-demo-hint { margin-top: 14px; }

/* My Garden */
.garden-demo {
  display: grid;
  gap: 14px;
}
.conditions-demo { padding: 18px; }
.conditions-demo-place {
  font-weight: 600;
  color: var(--loam);
  display: flex;
  align-items: center;
  gap: 8px;
}
.conditions-demo-place i { color: var(--turf); }
.conditions-demo-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}
.conditions-demo-stats > div {
  display: grid;
  padding: 10px 12px;
  border-radius: var(--radius-tile);
  background: var(--card-sunk);
}
.conditions-demo-stats strong {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.1;
}
.conditions-demo-stats span { font-size: 13px; color: var(--loam); }
.conditions-demo-tip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.conditions-demo-tip i { color: var(--turf); }

.area-demo { overflow: hidden; }
.area-demo img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}
.area-demo-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
}
.area-demo-body > div { display: grid; }
.area-demo-body strong {
  font-family: var(--font-display);
  font-size: 18px;
}
.area-demo-body span { color: var(--loam); font-size: 14px; }

/* History */
.history-demo { padding: 8px 18px 14px; }
.history-demo-day {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  margin: 14px 0 8px;
}
.history-demo-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border-radius: var(--radius-tile);
  border: 1px solid var(--hairline);
  background: var(--card);
}
.history-demo-row + .history-demo-row { margin-top: 8px; }
.history-demo-row img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
}
.history-demo-row > span:first-of-type {
  display: grid;
  flex: 1;
}
.history-demo-row em { color: var(--loam); font-size: 14px; }
.history-demo-row > i { color: var(--loam-soft); }
.history-demo-add {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--turf);
  color: #FFFFFF;
}

/* ---------- Steps ---------- */
.steps {
  background: var(--card);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 88px 0;
}
.steps-title {
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 40px;
}
.steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.steps-list li {
  position: relative;
  padding-top: 20px;
  border-top: 2px solid var(--ink);
}
.steps-number {
  display: block;
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--turf);
  margin-bottom: 16px;
}
.steps-list h3 {
  font-size: 22px;
  margin-bottom: 8px;
}
.steps-list p { color: var(--loam); max-width: 30ch; }

/* ---------- Guide teaser ---------- */
.guide-teaser {
  padding-top: 96px;
  padding-bottom: 24px;
}
.guide-teaser-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.guide-teaser-head h2 {
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.035em;
}
.guide-teaser-head p {
  margin-top: 10px;
  color: var(--loam);
  max-width: 52ch;
}
.guide-teaser-links {
  display: flex;
  gap: 8px;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.guide-card {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: var(--radius-card);
  background: var(--card);
  border: 1px solid var(--hairline);
  color: var(--ink);
  transition: border-color 0.15s var(--ease);
}
.guide-card:hover {
  color: var(--ink);
  border-color: var(--hairline-strong);
}
.guide-card-media {
  flex: 0 0 auto;
  width: 84px;
  height: 84px;
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--sprout);
  color: var(--turf-ink);
  font-size: 26px;
}
.guide-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.guide-card-text {
  display: grid;
  gap: 2px;
  justify-items: start;
  min-width: 0;
}
.guide-card-text strong {
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.2;
}
.guide-card-text em {
  color: var(--loam);
  font-size: 14px;
}
.guide-card-text .chip { margin-top: 6px; }
.guide-card-credit {
  font-size: 11px;
  color: var(--loam-soft);
  line-height: 1.3;
  margin-top: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- FAQ ---------- */
.faq {
  padding-top: 96px;
  padding-bottom: 104px;
}
.faq-title {
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}
.faq-item {
  border-top: 1px solid var(--hairline-strong);
}
.faq-item:last-of-type { border-bottom: 1px solid var(--hairline-strong); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.015em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--card);
  border: 1px solid var(--hairline);
  font-size: 13px;
  color: var(--loam);
  transition: transform 0.2s var(--ease);
}
.faq-item[open] summary i { transform: rotate(45deg); }
.faq-item p {
  padding: 0 48px 22px 0;
  color: var(--loam);
  font-size: 17px;
}

/* ---------- Closing ---------- */
.closing {
  position: relative;
  color: #FFFFFF;
  background:
    linear-gradient(90deg, rgba(16, 44, 33, 0.92) 0%, rgba(16, 44, 33, 0.72) 48%, rgba(16, 44, 33, 0.2) 100%),
    url("/common/images/landing/closing-garden.jpg") center 60% / cover no-repeat;
}
.closing-inner {
  padding-top: 112px;
  padding-bottom: 112px;
}
.closing h2 {
  color: #FFFFFF;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.04em;
  max-width: 12ch;
}
.closing p {
  margin-top: 14px;
  font-size: 19px;
  color: rgba(255, 255, 255, 0.82);
}
.closing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.closing-web {
  border-color: rgba(255, 255, 255, 0.5);
  color: #FFFFFF;
}
.closing-web:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 32px;
    padding-bottom: 64px;
  }
  .hero-visual { width: min(100%, 400px); }
  .feature,
  .feature--flip {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .feature--flip .feature-copy,
  .feature--flip .feature-visual { order: initial; }
  .features { gap: 72px; padding-bottom: 80px; }
  .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* The copy runs the full width here, so darken the whole photo, not its left */
  .closing {
    background:
      linear-gradient(180deg, rgba(16, 44, 33, 0.9) 0%, rgba(16, 44, 33, 0.76) 100%),
      url("/common/images/landing/closing-garden.jpg") center 60% / cover no-repeat;
  }
}

@media (max-width: 640px) {
  .hero-title { font-size: 48px; }
  .hero-actions .btn { width: 100%; }
  /* No room to nudge it out of the gutter on a phone: line it up with the photo */
  .care-demo { margin-left: 0; width: min(260px, 86%); }
  .scan-corner { width: 40px; height: 40px; }
  .scan-corner--bl, .scan-corner--br { bottom: 104px; }
  .steps { padding: 64px 0; }
  .steps-list { grid-template-columns: 1fr; gap: 28px; }
  .steps-number { font-size: 48px; }
  .guide-grid { grid-template-columns: 1fr; }
  .week-demo { padding: 14px; }
  .week-demo-days { gap: 4px; }
  .week-demo-day { padding: 10px 2px; }
  .week-demo-temp { font-size: 12px; }
  .faq-item summary { font-size: 18px; }
  .faq-item p { padding-right: 0; }
  .closing-inner { padding-top: 80px; padding-bottom: 80px; }
  .closing-actions .btn { width: 100%; }
}
