/* Plant Rescue AI · Marketing site */

html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; background: var(--paper); }
body {
  font-family: var(--f-body);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'ss01', 'cv11';
  letter-spacing: -0.01em;
}

a { color: var(--accent-ink); text-decoration: none; }
a:hover { color: var(--accent); }

::selection { background: var(--accent-tint); }

.st-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 36px;
  box-sizing: border-box;
}

/* ── Nav ─────────────────────────────────────────── */
.st-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.st-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}
.st-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.st-nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
}
.st-nav-links a:hover { color: var(--ink); }
/* The CTA button sits inside .st-nav-links, whose anchor rule out-specifies
   .st-btn-ink — without this the label renders dark-on-black. */
.st-nav-links a.st-btn-ink { color: var(--paper); }
.st-nav-links a.st-btn-ink:hover { color: var(--paper); }

/* ── Type ────────────────────────────────────────── */
.st-kicker {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.st-h1 {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(44px, 5.6vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}
.st-h2 {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
.st-h3 {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0;
}
.st-body {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink-2);
  text-wrap: pretty;
  margin: 0;
}
.st-small {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

/* ── Buttons ─────────────────────────────────────── */
.st-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 26px;
  border-radius: var(--r-pill);
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: -0.005em;
  border: 0;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.st-btn:active { transform: translateY(1px); }
.st-btn-ink {
  background: var(--ink);
  color: var(--paper);
}
.st-btn-ink:hover { background: #2c2e32; color: var(--paper); }
.st-btn-ghost {
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--ink);
}
.st-btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.st-btn-paper {
  background: var(--paper);
  color: var(--ink);
}
.st-btn-paper:hover { background: #ffffff; color: var(--ink); }
.st-btn small {
  display: block;
  font-family: var(--f-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.62;
}
.st-btn .st-btn-lines { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; }

/* ── Sections ────────────────────────────────────── */
.st-section { padding: 110px 0; }
.st-section-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 620px;
  margin-bottom: 64px;
}

/* ── How it works ────────────────────────────────── */
.st-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.st-step {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.st-step-phone {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  padding: 28px 28px 0;
  overflow: hidden;
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

/* ── Features ────────────────────────────────────── */
.st-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.st-feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.st-feature-demo {
  margin-top: 10px;
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ── Screens strip ───────────────────────────────── */
.st-strip {
  display: flex;
  gap: 36px;
  overflow-x: auto;
  padding: 12px 36px 28px;
  scrollbar-width: none;
}
.st-strip::-webkit-scrollbar { display: none; }
/* Centre the phone strip on viewports wide enough to fit it, without
   breaking scroll-from-the-start on narrow ones (justify-content: center
   clips the leading edge of an overflowing flex row; auto margins don't). */
.st-strip > :first-child { margin-left: auto; }
.st-strip > :last-child { margin-right: auto; }
.st-strip-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* ── FAQ ─────────────────────────────────────────── */
.st-faq {
  max-width: 720px;
}
.st-faq details {
  border-bottom: 1px solid var(--line);
}
.st-faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.st-faq summary::-webkit-details-marker { display: none; }
.st-faq summary::after {
  content: '+';
  font-family: var(--f-mono);
  font-size: 18px;
  color: var(--muted);
  transition: transform 0.15s ease;
}
.st-faq details[open] summary::after { transform: rotate(45deg); }
.st-faq .st-faq-a {
  padding: 0 4px 24px;
  max-width: 600px;
}

/* ── Dark band ───────────────────────────────────── */
.st-band {
  background: #131416;
  color: #ece9e0;
  border-radius: var(--r-4);
  padding: 90px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
}
.st-band .st-h2 { color: #ece9e0; }
.st-band .st-body { color: #c8c4b8; }

/* ── Footer ──────────────────────────────────────── */
.st-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 56px;
}
.st-footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.st-footer a { color: var(--muted); font-size: 13.5px; }
.st-footer a:hover { color: var(--ink); }

/* ── Hero shared ─────────────────────────────────── */
.st-hero { overflow: hidden; }
.st-hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.st-hero-proof {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Reduced motion */
@media (prefers-reduced-motion: no-preference) {
  .st-float { animation: st-drift 7s ease-in-out infinite alternate; }
  @keyframes st-drift {
    from { transform: translateY(0); }
    to   { transform: translateY(-10px); }
  }
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 960px) {
  .st-steps { grid-template-columns: 1fr; }
  .st-features { grid-template-columns: 1fr; }
  .st-section { padding: 72px 0; }
  .st-nav-links a:not(:last-child) { display: none; }
  .st-hero-grid { grid-template-columns: 1fr !important; }
}
