/* tiny plant landing page — scoped under #landing so it cannot affect the app.
   Palette variables come from the app's :root; this file only adds layout. */

#landing {
  /* content width cap from the original design — the palette variables come
     from the app's :root, but this one is landing-specific */
  --max: 1180px;
  scroll-behavior: smooth;
}
#landing button, #landing input { font: inherit; }
#landing a { color: inherit; text-decoration: none; }

/* The app's global .btn-* rules also match buttons inside the landing page.
   Neutralise the sizing ones the landing design doesn't expect (.btn-primary
   carries flex:1 in the app, which stretches the hero CTA). */
#landing .btn { flex: none; width: auto; }
#landing .skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--card);
  color: var(--green-dark);
  font-weight: 800;
}

#landing .skip-link:focus { top: 16px; }

#landing .hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background-image:
    linear-gradient(90deg, rgba(246, 243, 234, 0.98) 0%, rgba(246, 243, 234, 0.9) 31%, rgba(246, 243, 234, 0.12) 62%),
    url("/assets/tinyplant-hero.jpg");
  background-position: center;
  background-size: cover;
}

#landing .hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 22%;
  z-index: -1;
  background: linear-gradient(transparent, rgba(44, 94, 52, 0.13));
}

#landing .nav {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 10;
  display: flex;
  width: min(calc(100% - 56px), var(--max));
  height: 80px;
  align-items: center;
  justify-content: space-between;
  transform: translateX(-50%);
  border-bottom: 1px solid rgba(44, 94, 52, 0.16);
}

#landing .brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--green-dark);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.5px;
}

#landing .brand-mark svg {
  width: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#landing .nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14px;
  font-weight: 800;
}

#landing .nav-links > a:not(.nav-signin) {
  transition: color 0.18s ease;
}

#landing .nav-links > a:not(.nav-signin):hover { color: var(--green); }

#landing .nav-signin {
  padding: 9px 16px;
  border: 1.5px solid rgba(44, 94, 52, 0.28);
  border-radius: 12px;
}

#landing .menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
}

#landing .menu-button span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 6px 0;
  border-radius: 2px;
  background: var(--green-dark);
  transition: transform 0.2s ease;
}

#landing .hero-copy {
  width: min(calc(100% - 56px), var(--max));
  margin: 0 auto;
  padding-top: clamp(138px, 19vh, 190px);
}

#landing .hero-brand {
  display: flex;
  max-width: 600px;
  align-items: center;
  gap: 16px;
  animation: rise 0.65s both;
}

#landing .hero-sprout {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border-radius: 18px;
  background: rgba(228, 239, 226, 0.9);
  box-shadow: var(--shadow);
  font-size: 34px;
  animation: sprout 3.8s ease-in-out infinite;
}

#landing .hero h1 {
  margin: 0;
  color: var(--green-dark);
  font-size: clamp(3.5rem, 6.4vw, 5.6rem);
  font-weight: 900;
  letter-spacing: -3.6px;
  line-height: 0.98;
}

#landing .hero h2 {
  max-width: 650px;
  margin: 30px 0 16px;
  color: var(--text);
  font-size: clamp(2.2rem, 4.15vw, 4rem);
  font-weight: 900;
  letter-spacing: -2.2px;
  line-height: 1.08;
  text-wrap: balance;
  animation: rise 0.65s 0.1s both;
}

#landing .hero-copy > p {
  max-width: 590px;
  margin: 0;
  color: #59675a;
  font-size: clamp(1rem, 1.55vw, 1.15rem);
  line-height: 1.65;
  animation: rise 0.65s 0.2s both;
}

#landing .hero-actions {
  display: flex;
  gap: 10px;
  margin-top: 28px;
  animation: rise 0.65s 0.3s both;
}

#landing .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  transition: transform 0.08s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

#landing .btn:active { transform: scale(0.97); }

#landing .btn-large {
  min-width: 154px;
  padding: 14px 22px;
  font-size: 15px;
}

#landing .btn-primary {
  background: var(--green);
  color: white;
  box-shadow: 0 6px 18px rgba(44, 94, 52, 0.18);
}

#landing .btn-primary:hover {
  background: var(--green-dark);
  box-shadow: 0 8px 24px rgba(44, 94, 52, 0.24);
}

#landing .btn-ghost {
  border: 1.5px solid rgba(44, 94, 52, 0.2);
  background: rgba(246, 243, 234, 0.78);
  color: var(--green-dark);
}

#landing .btn-ghost:hover { background: var(--card); }

#landing .hero-wash {
  position: absolute;
  right: 10%;
  top: 13%;
  z-index: -1;
  width: 28vw;
  height: 28vw;
  border-radius: 50%;
  background: rgba(255, 245, 182, 0.16);
  filter: blur(22px);
  animation: glow 7s ease-in-out infinite;
}

#landing .feature,
#landing .device-note {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  align-items: center;
  gap: clamp(56px, 9vw, 126px);
  padding: clamp(92px, 11vw, 150px) max(28px, calc((100vw - var(--max)) / 2));
}

#landing .feature-copy { max-width: 520px; }

#landing .section-label {
  margin: 0 0 10px !important;
  color: var(--green) !important;
  font-size: 15px !important;
  font-weight: 900;
  line-height: 1.4 !important;
}

#landing .feature-copy h2,
#landing .closing h2 {
  margin: 0 0 18px;
  color: var(--green-dark);
  font-size: clamp(2.35rem, 4.25vw, 4rem);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1.08;
  text-wrap: balance;
}

#landing .feature-copy > p:last-child {
  margin: 0;
  color: var(--text);
  font-size: 16.5px;
  line-height: 1.72;
}

#landing .feature-schedule {
  background:
    radial-gradient(circle at 10% 8%, rgba(228, 239, 226, 0.8), transparent 27%),
    var(--bg);
}

#landing .product-stage {
  position: relative;
  padding: clamp(22px, 4vw, 46px);
  overflow: hidden;
  border-radius: 28px;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.64), rgba(228, 239, 226, 0.7)),
    var(--green-soft);
  box-shadow: inset 0 0 0 1px rgba(44, 94, 52, 0.08);
}

#landing .app-chrome,
#landing .profile-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 0 2px;
}

#landing .chrome-brand {
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 900;
}

#landing .chrome-date {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
}

#landing .mock-card {
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  font-size: 13.5px;
}

#landing .schedule-card { padding: 17px 19px; }

#landing .mock-head {
  margin-bottom: 8px;
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 900;
}

#landing .mock-sched {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

#landing .mock-sched > span:first-child { width: 22px; text-align: center; }

#landing .mock-sched b { color: var(--green-dark); }

#landing .mock-when {
  margin-left: auto;
  color: var(--muted);
  font-size: 12.5px;
}

#landing .mock-when.due { color: var(--amber); font-weight: 800; }

#landing .feature-reminders {
  grid-template-columns: 1.08fr 0.92fr;
  background: var(--green-pale);
}

#landing .reminders-stage { background: rgba(228, 239, 226, 0.75); }

#landing .mock-tip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow);
  font-size: 13.5px;
  line-height: 1.5;
}

#landing .mock-tip > span:first-child { align-self: flex-start; }

#landing .mock-tip b { color: var(--green-dark); }

#landing .mock-pill {
  flex: 0 0 auto;
  display: inline-block;
  white-space: nowrap;
  padding: 5px 11px;
  border: 0;
  border-radius: 10px;
  background: var(--green-pale);
  color: var(--green-dark);
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 800;
  transition: transform 0.08s ease, background-color 0.18s ease;
}

#landing .mock-pill:active { transform: scale(0.97); }

#landing .mock-pill.confirmed { background: var(--green-dark); color: white; }

#landing .due-card { margin-top: 12px; }

#landing .due-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#landing .up-count {
  display: inline-flex;
  min-width: 24px;
  height: 22px;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-radius: 99px;
  background: var(--green-pale);
  color: var(--green-dark);
  font-size: 12.5px;
  font-weight: 900;
}

#landing .mock-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 8px;
  font-size: 14.5px;
}

#landing .mock-thumb {
  display: flex;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: var(--green-soft);
  font-size: 16px;
}

#landing .mock-due {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  color: var(--amber);
  font-weight: 700;
}

#landing .mock-pill.solid { background: var(--green); color: white; }

#landing .mock-pill.solid.is-done { background: var(--green-pale); color: var(--green-dark); }

#landing .feature-history {
  background:
    radial-gradient(circle at 90% 16%, rgba(250, 238, 222, 0.85), transparent 25%),
    var(--bg);
}

#landing .history-stage {
  background:
    linear-gradient(rgba(240, 245, 236, 0.76), rgba(240, 245, 236, 0.92)),
    url("/assets/tinyplant-hero.jpg") center / cover;
}

#landing .profile-line {
  justify-content: flex-start;
  gap: 10px;
}

#landing .profile-thumb { width: 40px; height: 40px; border-radius: 12px; }

#landing .profile-line b,
#landing .profile-line small { display: block; }

#landing .profile-line b { color: var(--green-dark); font-size: 15px; }

#landing .profile-line small { margin-top: 1px; color: var(--muted); font-size: 12px; }

#landing .mock-photos {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

#landing .mock-photos button {
  flex: 1;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}

#landing .mock-photos button > span {
  display: flex;
  aspect-ratio: 1 / 0.72;
  align-items: center;
  justify-content: center;
  background: var(--green-soft);
  font-size: 28px;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

#landing .mock-photos button:hover > span { transform: scale(1.04); background: #d9e8d7; }

#landing .mock-photos small {
  display: block;
  padding-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

#landing .mock-log {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

#landing .log-icon {
  display: flex;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: var(--green-pale);
}

#landing .mock-log b,
#landing .mock-log small { display: block; }

#landing .mock-log b { color: var(--text); font-size: 13.5px; }

#landing .mock-log small { margin-top: 1px; color: var(--muted); font-size: 12px; }

#landing .device-note {
  grid-template-columns: 1fr 1fr;
  background: var(--green-dark);
  color: white;
}

#landing .device-note .section-label { color: #bcd5b9 !important; }

#landing .device-note .feature-copy h2 { color: white; }

#landing .device-note .feature-copy > p:last-child { color: rgba(255, 255, 255, 0.72); }

#landing .device-art {
  position: relative;
  display: flex;
  min-height: 330px;
  align-items: center;
  justify-content: center;
}

#landing .device-art::before,
#landing .device-art::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
}

#landing .device-art::before { width: 320px; height: 320px; }

#landing .device-art::after { width: 220px; height: 220px; }

#landing .device-art span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
  border-radius: 28px;
  background: var(--bg);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
  font-size: 48px;
}

#landing .device-art span:nth-child(1) { transform: translate(34px, 68px) rotate(-6deg); }

#landing .device-art span:nth-child(2) { z-index: 2; transform: translateY(-34px) rotate(4deg); }

#landing .device-art span:nth-child(3) { transform: translate(-28px, 73px) rotate(7deg); }

#landing .closing {
  position: relative;
  overflow: hidden;
  padding: clamp(96px, 13vw, 170px) 28px;
  background:
    linear-gradient(rgba(246, 243, 234, 0.82), rgba(246, 243, 234, 0.96)),
    url("/assets/tinyplant-hero.jpg") center 62% / cover;
  text-align: center;
}

#landing .closing-copy { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }

#landing .closing-sprout { display: block; margin-bottom: 14px; font-size: 48px; }

#landing .closing h2 { margin-bottom: 10px; }

#landing .closing p { margin: 0 0 24px; color: var(--muted); font-size: 16px; }

#landing footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  padding: 34px max(28px, calc((100vw - var(--max)) / 2));
  background: #254f2d;
  color: white;
  font-size: 13px;
}

#landing .footer-brand { color: white; }

#landing .footer-brand > span:first-child { font-size: 24px; }

#landing footer > p { margin: 0; color: rgba(255, 255, 255, 0.55); }

#landing footer > div { display: flex; justify-content: flex-end; gap: 24px; font-weight: 700; }

#landing .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

#landing .reveal.visible { opacity: 1; transform: translateY(0); }

@keyframes rise {
  from { opacity: 0; transform: translateY(15px); }

  to { opacity: 1; transform: translateY(0); }

}

@keyframes sprout {
  0%, 100% { transform: rotate(-2deg) translateY(0); }

  50% { transform: rotate(3deg) translateY(-5px); }

}

@keyframes glow {
  0%, 100% { opacity: 0.5; transform: scale(1); }

  50% { opacity: 0.9; transform: scale(1.12); }

}

@media (max-width: 860px) {
#landing .nav { width: calc(100% - 40px); height: 72px; }

#landing .menu-button { display: block; }

#landing .nav-links {
    position: absolute;
    top: 62px;
    right: 0;
    display: none;
    width: 220px;
    padding: 20px;
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
    border-radius: 18px;
    background: var(--card);
    box-shadow: 0 12px 40px rgba(44, 94, 52, 0.18);
  }

#landing .nav.open .nav-links { display: flex; }

#landing .nav.open .menu-button span:first-child { transform: translateY(4px) rotate(45deg); }

#landing .nav.open .menu-button span:last-child { transform: translateY(-4px) rotate(-45deg); }

#landing .hero-copy { width: calc(100% - 40px); padding-top: 126px; }

#landing .hero { background-position: 60% center; }

#landing .feature,
#landing .device-note {
    grid-template-columns: 1fr;
    padding-right: 28px;
    padding-left: 28px;
  }

#landing .feature-reminders .reminders-stage { order: 2; }

#landing .feature-copy { max-width: 620px; }

#landing .device-art { order: 2; }

#landing footer { grid-template-columns: 1fr auto; }

#landing footer > p { display: none; }

}

@media (max-width: 560px) {
#landing .hero {
    min-height: 860px;
    background-image:
      linear-gradient(180deg, rgba(246, 243, 234, 0.98) 0%, rgba(246, 243, 234, 0.9) 45%, rgba(246, 243, 234, 0.08) 72%),
      url("/assets/tinyplant-hero.jpg");
    background-position: 67% bottom;
  }

#landing .hero-brand { gap: 11px; }

#landing .hero-sprout { width: 48px; height: 48px; border-radius: 14px; font-size: 27px; }

#landing .hero h1 { font-size: 3.4rem; letter-spacing: -2.5px; }

#landing .hero h2 {
    margin-top: 25px;
    font-size: 2.35rem;
    letter-spacing: -1.5px;
    line-height: 1.08;
  }

#landing .hero-copy > p { font-size: 15.5px; line-height: 1.58; }

#landing .hero-actions { flex-direction: column; align-items: stretch; max-width: 270px; }

#landing .feature,
#landing .device-note { gap: 50px; padding: 84px 20px; }

#landing .feature-copy h2,
#landing .closing h2 { font-size: 2.55rem; letter-spacing: -1.6px; }

#landing .product-stage { margin: 0 -2px; padding: 18px; border-radius: 24px; }

#landing .schedule-card { padding: 14px; }

#landing .mock-tip { align-items: flex-start; flex-wrap: wrap; }

#landing .mock-tip .mock-pill { margin-left: 28px; }

#landing .mock-due { align-items: flex-start; }

#landing .device-art { min-height: 270px; transform: scale(0.82); margin: -28px; }

#landing footer { grid-template-columns: 1fr; padding: 34px 20px; }

#landing footer > div { justify-content: flex-start; flex-wrap: wrap; }

}

@media (prefers-reduced-motion: reduce) {
#landing { scroll-behavior: auto; }

#landing *,
#landing *::before,
#landing *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

#landing .reveal { opacity: 1; transform: none; }

}

/* --- integration adjustments ------------------------------------------------
   At narrow widths the hero copy extends past where the original wash fades
   out, leaving the paragraph sitting on busy artwork. Carry the wash further
   so the text stays legible while the illustration still shows through. */

@media (max-width: 860px) {
  #landing .hero {
    background-image:
      linear-gradient(90deg, rgba(246, 243, 234, 0.98) 0%, rgba(246, 243, 234, 0.95) 46%, rgba(246, 243, 234, 0.62) 74%, rgba(246, 243, 234, 0.12) 100%),
      url("/assets/tinyplant-hero.jpg");
  }
}

@media (max-width: 560px) {
  #landing .hero {
    background-image:
      linear-gradient(180deg, rgba(246, 243, 234, 0.97) 0%, rgba(246, 243, 234, 0.94) 50%, rgba(246, 243, 234, 0.82) 76%, rgba(246, 243, 234, 0.1) 100%),
      url("/assets/tinyplant-hero.jpg");
  }
  #landing .hero-copy > p { color: #4c5a4d; }
}

/* Between the mobile breakpoint and a wide desktop the hero paragraph reaches
   past the original wash's fade-out; hold the wash a little longer there. */
@media (min-width: 861px) and (max-width: 1250px) {
  #landing .hero {
    background-image:
      linear-gradient(90deg, rgba(246, 243, 234, 0.98) 0%, rgba(246, 243, 234, 0.94) 40%, rgba(246, 243, 234, 0.5) 70%, rgba(246, 243, 234, 0.12) 92%),
      url("/assets/tinyplant-hero.jpg");
  }
}
