/* ============================================================
   StepPlant — Marketing Site
   Mint Fresh design tokens (shared with app handoffs)
   ============================================================ */

:root {
  /* Surfaces */
  --bg:           #edf3ee;
  --bg-soft:      #e3ece4;
  --surface:      #ffffff;
  --cream:        #f5efe6;
  --cream-soft:   #ece4d3;

  /* Ink */
  --ink:          #1a3a28;
  --ink-soft:     #2a4a38;
  --ink-dim:      #6a8a78;
  --hairline:     rgba(26,58,40,0.10);
  --hairline-strong: rgba(26,58,40,0.16);

  /* Tier accents */
  --common-bg:    #bce0c8;
  --common-fg:    #1a4830;
  --common-soft:  #7ec895;
  --common-room:  #e6ede7;

  --rare:         #f0c860;
  --rare-fg:      #3a2818;
  --rare-deep:    #b8881e;
  --rare-room:    #f3ecd9;

  --legendary-bg:  #1a3a28;
  --legendary-fg:  #f5efe6;
  --legendary-acc: #f0c860;

  /* Type */
  --font: "Outfit", -apple-system, system-ui, "Segoe UI", sans-serif;

  /* Radii */
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 22px;
  --r-xl: 28px;
  --r-pill: 999px;
}

* { box-sizing: border-box; -webkit-font-smoothing: antialiased; }
html { scroll-behavior: smooth; }
body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ── Layout container ───────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}
.container--narrow { max-width: 880px; }

/* ── Nav ────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(237,243,238,0.78);
  backdrop-filter: saturate(140%) blur(18px);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  border-bottom: 1px solid var(--hairline);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.4px;
}
.brand__mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--common-bg);
  display: grid; place-items: center;
  flex-shrink: 0;
  overflow: hidden;
}
.brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.brand__word--alt { color: var(--common-fg); }
.nav__links {
  display: flex;
  gap: 30px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
}
.nav__links a { transition: color .12s ease; }
.nav__links a:hover { color: var(--ink); }
.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.1px;
  transition: transform .12s ease, box-shadow .12s ease;
}
.nav__cta:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(26,58,40,0.22); }

@media (max-width: 760px) {
  .nav__links { display: none; }
}

/* ── Type scale ─────────────────────────────────────────────── */
.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.eyebrow--mint {
  color: var(--common-fg);
  background: var(--common-bg);
  padding: 6px 10px;
  border-radius: var(--r-pill);
  letter-spacing: 1.2px;
}
.h-display {
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 700;
  letter-spacing: -2.2px;
  line-height: 0.96;
  margin: 0;
}
.h-display em {
  font-style: normal;
  color: var(--common-fg);
}
.h-section {
  font-size: clamp(32px, 4.2vw, 52px);
  font-weight: 700;
  letter-spacing: -1.2px;
  line-height: 1.04;
  margin: 0;
}
.h-card {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.4px;
  line-height: 1.15;
  margin: 0;
}
.lede {
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-soft);
  font-weight: 400;
  margin: 0;
  max-width: 56ch;
  text-wrap: pretty;
}

/* ── App Store button (brand) ───────────────────────────────── */
.btn-appstore {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 22px 0 20px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  letter-spacing: -0.2px;
  transition: transform .14s ease, box-shadow .14s ease;
  box-shadow: 0 10px 28px rgba(26,58,40,0.22);
}
.btn-appstore:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(26,58,40,0.30);
}
.btn-appstore__icon { width: 28px; height: 28px; }
.btn-appstore__text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.btn-appstore__hint { font-size: 11px; font-weight: 500; opacity: 0.7; letter-spacing: 0.2px; margin-bottom: 4px; }
.btn-appstore__store { font-size: 19px; font-weight: 700; letter-spacing: -0.3px; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 56px;
  padding: 0 22px;
  border-radius: 14px;
  background: transparent;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  border: 1.5px solid var(--hairline-strong);
  transition: background .14s ease;
}
.btn-ghost:hover { background: rgba(26,58,40,0.05); }

/* ── Brand mark glyph (leaf + bolt) ─────────────────────────── */
.glyph-leaf {
  display: block;
}

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--ink);
  color: var(--legendary-fg);
  padding: 80px 0 36px;
  margin-top: 120px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(245,239,230,0.10);
}
.footer__brand .brand__mark { background: rgba(245,239,230,0.10); }
.footer__brand .brand__mark img { opacity: 0.95; }
.footer__brand .brand { color: var(--legendary-fg); }
.footer__brand .brand__word--alt { color: var(--legendary-acc); }
.footer__tagline {
  margin: 18px 0 0;
  color: rgba(245,239,230,0.62);
  font-size: 14.5px;
  max-width: 28ch;
}
.footer__col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: rgba(245,239,230,0.50);
  margin: 0 0 18px;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer__col a {
  color: rgba(245,239,230,0.82);
  font-size: 15px;
  font-weight: 500;
  transition: color .12s ease;
}
.footer__col a:hover { color: var(--legendary-acc); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-size: 12px;
  color: rgba(245,239,230,0.55);
  letter-spacing: 0.4px;
}
.footer__bottom strong { color: var(--legendary-acc); font-weight: 700; }

@media (max-width: 860px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* ── Long-form prose (privacy / terms) ──────────────────────── */
.prose {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.prose h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.6px;
  color: var(--ink);
  margin: 56px 0 14px;
  scroll-margin-top: 90px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin: 28px 0 8px;
  letter-spacing: -0.2px;
}
.prose p { margin: 0 0 14px; max-width: 68ch; }
.prose ul { padding-left: 22px; margin: 0 0 18px; }
.prose li { margin-bottom: 6px; max-width: 64ch; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose code {
  background: rgba(26,58,40,0.06);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 14px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
.prose a {
  color: var(--common-fg);
  border-bottom: 1px solid currentColor;
  font-weight: 500;
}

/* Document-page header (privacy / terms / contact) */
.doc-header {
  padding: 80px 0 56px;
  border-bottom: 1px solid var(--hairline);
}
.doc-header__meta {
  display: flex;
  gap: 18px;
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--ink-dim);
  font-weight: 500;
}
.doc-header__meta strong { color: var(--ink); font-weight: 600; }
.doc-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 80px;
  padding: 64px 0 40px;
}
.doc-toc {
  position: sticky;
  top: 96px;
  align-self: start;
  font-size: 13.5px;
}
.doc-toc h5 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin: 0 0 14px;
}
.doc-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  counter-reset: tocnum;
}
.doc-toc li { counter-increment: tocnum; }
.doc-toc a {
  display: flex;
  gap: 10px;
  padding: 4px 0;
  color: var(--ink-soft);
  font-weight: 500;
  transition: color .12s ease;
}
.doc-toc a::before {
  content: counter(tocnum, decimal-leading-zero);
  color: var(--ink-dim);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  padding-top: 1px;
}
.doc-toc a:hover { color: var(--ink); }

@media (max-width: 900px) {
  .doc-body { grid-template-columns: 1fr; gap: 24px; }
  .doc-toc { position: static; padding-bottom: 24px; border-bottom: 1px solid var(--hairline); }
}
