/* ------------------------------------------------------------------
   Plant Care Schedule — Landing page styles
   Single stylesheet, no external dependencies.
------------------------------------------------------------------ */

/* ---------- Reset / Base ----------------------------------------- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body,
h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ---------- Design tokens ---------------------------------------- */

:root {
  --green-primary: #4caf50;
  --green-dark: #2e7d32;
  --green-darker: #1b5e20;
  --green-light: #a5d6a7;
  --green-lighter: #e8f5e9;
  --green-tint: #f3faf3;

  --text: #1f2a24;
  --text-muted: #5a6b62;
  --text-soft: #8a9a90;

  --bg: #ffffff;
  --bg-soft: #fafdfb;
  --bg-card: #ffffff;

  --border: #e3ebe5;
  --border-strong: #cfd8d2;

  --shadow-sm: 0 1px 2px rgba(27, 94, 32, 0.04),
               0 1px 3px rgba(27, 94, 32, 0.06);
  --shadow-md: 0 4px 12px rgba(27, 94, 32, 0.06),
               0 2px 4px rgba(27, 94, 32, 0.04);
  --shadow-lg: 0 12px 32px rgba(27, 94, 32, 0.10),
               0 4px 8px rgba(27, 94, 32, 0.05);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --container: 960px;
  --container-narrow: 720px;

  --font-system:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

/* ---------- Typography ------------------------------------------- */

html {
  font-size: 16px;
}

body {
  font-family: var(--font-system);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 5vw + 1rem, 3.25rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.6rem, 2.5vw + 1rem, 2.25rem);
  letter-spacing: -0.015em;
}

h3 {
  font-size: 1.2rem;
}

p {
  color: var(--text-muted);
}

.lead {
  font-size: clamp(1.05rem, 1.2vw + 0.8rem, 1.25rem);
  color: var(--text-muted);
  max-width: 38ch;
}

/* ---------- Layout ----------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container-narrow {
  max-width: var(--container-narrow);
}

section {
  padding: 4.5rem 0;
}

@media (min-width: 768px) {
  section {
    padding: 6rem 0;
  }
}

.section-title {
  text-align: center;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  text-align: center;
  max-width: 56ch;
  margin: 0 auto 3rem;
}

/* ---------- Buttons ---------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--green-primary);
  color: #ffffff;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  color: var(--green-dark);
  border: 1.5px solid var(--border-strong);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--green-primary);
  color: var(--green-primary);
  background: var(--green-tint);
}

/* ---------- Header / Nav ----------------------------------------- */

.site-header {
  padding: 1.25rem 0;
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}

.brand-mark {
  font-size: 1.4rem;
  line-height: 1;
}

.site-header nav {
  display: none;
  gap: 1.5rem;
}

.site-header nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.site-header nav a:hover {
  color: var(--green-dark);
}

@media (min-width: 720px) {
  .site-header nav {
    display: inline-flex;
  }
}

/* ---------- Hero ------------------------------------------------- */

.hero {
  position: relative;
  padding: 5rem 0 4.5rem;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(
      ellipse at top,
      var(--green-lighter) 0%,
      var(--green-tint) 35%,
      var(--bg) 70%
    );
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

.hero::before {
  width: 360px;
  height: 360px;
  top: -120px;
  left: -120px;
  background: radial-gradient(circle, var(--green-light), transparent 70%);
}

.hero::after {
  width: 420px;
  height: 420px;
  bottom: -180px;
  right: -160px;
  background: radial-gradient(circle, #c8e6c9, transparent 70%);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  color: var(--green-dark);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.hero h1 {
  margin-bottom: 1rem;
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 .accent {
  color: var(--green-dark);
}

.hero .lead {
  margin: 0 auto 0.5rem;
  max-width: 44ch;
}

.hero-sub {
  color: var(--text-soft);
  font-size: 0.95rem;
  margin: 0 auto 2rem;
  max-width: 48ch;
}

.hero-cta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.hero-phone {
  margin: 3.5rem auto 0;
  width: min(280px, 70vw);
  aspect-ratio: 9 / 18;
  background: linear-gradient(180deg, #ffffff 0%, var(--green-lighter) 100%);
  border-radius: 36px;
  border: 1px solid var(--border);
  box-shadow:
    0 30px 60px -20px rgba(27, 94, 32, 0.25),
    0 10px 20px -10px rgba(27, 94, 32, 0.15);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.1rem;
}

.hero-phone::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 18px;
  background: #1f2a24;
  border-radius: 99px;
}

.phone-title {
  margin-top: 2rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}

.phone-subtitle {
  font-size: 0.75rem;
  color: var(--text-soft);
  margin-bottom: 0.85rem;
}

.phone-card {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.8rem;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 0.5rem;
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.phone-card .emoji {
  font-size: 1.4rem;
}

.phone-card .name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
}

.phone-card .meta {
  font-size: 0.65rem;
  color: var(--text-soft);
}

.phone-card.due {
  border-color: var(--green-primary);
  background: var(--green-lighter);
}

.phone-card.due .name {
  color: var(--green-darker);
}

/* ---------- Features --------------------------------------------- */

.features {
  background: var(--bg-soft);
}

.feature-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.6rem 1.4rem;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.feature:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-light);
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  border-radius: var(--radius-sm);
  background: var(--green-lighter);
  margin-bottom: 1rem;
}

.feature h3 {
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
}

.feature p {
  font-size: 0.95rem;
}

/* ---------- How it works ----------------------------------------- */

.steps {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  counter-reset: step;
}

@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem 1.4rem 1.4rem;
  text-align: left;
}

.step-num {
  position: absolute;
  top: -18px;
  left: 1.4rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green-primary);
  color: #fff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.step h3 {
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
}

.step p {
  font-size: 0.95rem;
}

/* ---------- Pricing ---------------------------------------------- */

.pricing {
  background: var(--bg-soft);
}

.price-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  max-width: 760px;
  margin: 0 auto;
}

@media (min-width: 700px) {
  .price-grid {
    grid-template-columns: repeat(2, 1fr);
    align-items: stretch;
  }
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.6rem;
  display: flex;
  flex-direction: column;
  text-align: left;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.price-card.featured {
  border-color: var(--green-primary);
  box-shadow: var(--shadow-md);
  position: relative;
}

.price-card.featured::after {
  content: "Best value";
  position: absolute;
  top: -12px;
  right: 1.4rem;
  background: var(--green-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  letter-spacing: 0.02em;
}

.price-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.price-tier {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 0.4rem;
}

.price-amount {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.price-amount small {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-soft);
  margin-left: 0.25rem;
}

.price-tagline {
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.price-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1.5rem;
}

.price-list li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.price-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green-primary);
  font-weight: 700;
}

.price-card .btn {
  margin-top: auto;
  align-self: stretch;
}

/* ---------- Footer ----------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  background: var(--bg);
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: center;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--green-dark);
}

.footer-credit {
  font-size: 0.9rem;
  color: var(--text-soft);
}

/* ---------- Legal / content pages -------------------------------- */

.legal {
  padding: 3.5rem 0 5rem;
}

.legal .container {
  max-width: var(--container-narrow);
}

.legal h1 {
  font-size: clamp(1.7rem, 2.5vw + 0.9rem, 2.3rem);
  margin-bottom: 0.5rem;
}

.legal .updated {
  color: var(--text-soft);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.legal h2 {
  font-size: 1.3rem;
  margin: 2.2rem 0 0.6rem;
}

.legal h3 {
  font-size: 1.05rem;
  margin: 1.4rem 0 0.4rem;
}

.legal p,
.legal li {
  color: var(--text);
  line-height: 1.7;
}

.legal p {
  margin-bottom: 1rem;
}

.legal ul {
  list-style: disc;
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}

.legal ul li {
  margin-bottom: 0.4rem;
}

.legal a {
  color: var(--green-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal a:hover {
  color: var(--green-primary);
}

.legal .placeholder {
  background: #fff8e1;
  border: 1px dashed #f0c14b;
  color: #6d4c00;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-family:
    ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--green-dark);
  font-weight: 600;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.back-link:hover {
  color: var(--green-primary);
}

/* ---------- Utility ---------------------------------------------- */

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
