:root {
  color-scheme: light dark;
  --text: #1c1c1e;
  --muted: #6e6e73;
  --bg: #ffffff;
  --card: #f4f7f5;
  --green: #22a95c;
  --green-deep: #12703b;
  --gold: #f0b429;
}
@media (prefers-color-scheme: dark) {
  :root {
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --bg: #0f1210;
    --card: #1a201c;
  }
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
.wrap { max-width: 62rem; margin: 0 auto; padding: 0 1.5rem; }

header.hero {
  background: linear-gradient(160deg, #3cbd75 0%, var(--green) 100%);
  color: #fff;
  text-align: center;
  padding: 3.5rem 1.5rem 3rem;
}
.hero img.icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.hero h1 { font-size: 2.6rem; letter-spacing: -0.02em; margin: 1rem 0 0.3rem; }
.hero .tagline { font-size: 1.25rem; font-weight: 600; opacity: 0.95; }
.hero .sub { max-width: 34rem; margin: 0.8rem auto 0; opacity: 0.9; }
.badge {
  display: inline-block;
  margin-top: 1.4rem;
  background: var(--green-deep);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  padding: 0.55rem 1.3rem;
  font-weight: 600;
  color: #fff;
}
.hero .beta { display: block; margin-top: 0.8rem; font-size: 0.9rem; opacity: 0.85; }
.hero .beta a { color: #fff; text-decoration: underline; }

section { padding: 3rem 0; }
section h2 { font-size: 1.7rem; letter-spacing: -0.01em; margin-bottom: 0.4rem; }
section .lead { color: var(--muted); max-width: 40rem; margin-bottom: 1.6rem; }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.2rem;
}
.feature {
  background: var(--card);
  border-radius: 16px;
  padding: 1.2rem;
  text-align: center;
}
.feature img {
  width: 100%;
  max-width: 220px;
  border-radius: 18px;
  border: 1px solid rgba(128,128,128,0.25);
}
.feature h3 { font-size: 1.05rem; margin: 0.8rem 0 0.2rem; }
.feature p { font-size: 0.92rem; color: var(--muted); }

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; }
.card {
  background: var(--card);
  border-radius: 16px;
  padding: 1.5rem 1.6rem;
}
.card h3 { margin-bottom: 0.5rem; }
.card ul { padding-left: 1.3rem; }
.card li { margin-bottom: 0.45rem; }
.card .star { color: var(--gold); }

.pricing { text-align: center; }
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.2rem; margin-top: 1.5rem; }
.tier {
  background: var(--card);
  border-radius: 16px;
  padding: 1.4rem 1.2rem;
}
.tier.pro { outline: 3px solid var(--green); }
.tier .price { font-size: 1.7rem; font-weight: 800; }
.tier .per { color: var(--muted); font-size: 0.9rem; }
.tier ul { list-style: none; margin-top: 0.8rem; font-size: 0.92rem; color: var(--muted); }
.tier li { margin-bottom: 0.35rem; }
.tier .flag {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
  margin-bottom: 0.5rem;
}
.pricing .note { margin-top: 1rem; color: var(--muted); font-size: 0.92rem; }

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Document pages: privacy, terms, support, guide */
.doc { padding: 2.5rem 0 1rem; max-width: 44rem; }
.doc h2 { font-size: 1.35rem; margin: 2.2rem 0 0.5rem; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 1.02rem; margin: 1.5rem 0 0.3rem; }
.doc p { margin-bottom: 0.9rem; }
.doc ul, .doc ol { padding-left: 1.3rem; margin-bottom: 0.9rem; }
.doc li { margin-bottom: 0.45rem; }
.doc .intro { font-size: 1.05rem; }
.doc dl { margin-bottom: 0.9rem; }
.doc dt { font-weight: 600; margin-top: 0.7rem; }
.doc dd { margin-left: 0; color: var(--muted); }

.callout {
  background: var(--card);
  border-radius: 14px;
  border-left: 4px solid var(--green);
  padding: 1.1rem 1.3rem;
  margin: 1.3rem 0;
}
.callout h3 { margin-top: 0; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }

.subnav {
  border-top: 1px solid rgba(128,128,128,0.25);
  margin-top: 2.5rem;
  padding-top: 1.2rem;
  font-size: 0.92rem;
  color: var(--muted);
}
.subnav a { margin-right: 1rem; }

/* Table of contents for long documents */
.toc {
  background: var(--card);
  border-radius: 14px;
  padding: 1.2rem 1.4rem;
  margin-bottom: 2rem;
}
.toc h2 { font-size: 1rem; margin: 0 0 0.6rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.toc ul { list-style: none; padding-left: 0; margin-bottom: 0; columns: 2; column-gap: 1.6rem; }
.toc li { margin-bottom: 0.3rem; break-inside: avoid; font-size: 0.94rem; }
@media (max-width: 34rem) { .toc ul { columns: 1; } }

/* Anchored headings get a little breathing room under sticky-free scroll */
.doc h2[id], .doc h3[id] { scroll-margin-top: 1rem; }

/* Q&A blocks */
.qa h3 { font-size: 1.02rem; margin: 1.6rem 0 0.35rem; }
.qa h3 + p { margin-top: 0; }

/* Step-by-step lists inside guides */
.doc ol.steps { counter-reset: step; list-style: none; padding-left: 0; }
.doc ol.steps > li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.6rem;
}
.doc ol.steps > li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

footer {
  border-top: 1px solid rgba(128,128,128,0.25);
  padding: 2rem 1.5rem 3rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Site header nav — slim, static, present on every page */
.sitenav {
  background: var(--bg);
  border-bottom: 1px solid rgba(128,128,128,0.25);
}
.sitenav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 7px; display: block; }

.navlinks {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  font-size: 0.92rem;
}
.navlinks a { color: var(--muted); white-space: nowrap; }
.navlinks a:hover { color: var(--green); text-decoration: none; }
.navlinks a.current { color: var(--text); font-weight: 600; }

.navlinks a.navcta {
  background: var(--green);
  color: #fff;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-weight: 600;
}
.navlinks a.navcta:hover { background: var(--green-deep); color: #fff; }

/* Narrow: shrink, stay inline — no hamburger */
@media (max-width: 40rem) {
  .sitenav-inner { gap: 0.6rem; }
  .brand { font-size: 0.95rem; }
  .brand img { width: 24px; height: 24px; border-radius: 6px; }
  .navlinks { gap: 0.75rem; font-size: 0.82rem; }
  .navlinks a.navcta { padding: 0.34rem 0.72rem; }
}
/* Very narrow: drop the two lowest-priority links, keep FAQ + the button */
@media (max-width: 26rem) {
  .navlinks { gap: 0.6rem; font-size: 0.8rem; }
  .navlinks a.drop { display: none; }
  .brand span { font-size: 0.9rem; }
}
/* Smallest phones (iPhone SE 1st gen and similar): drop the wordmark and
   let the icon carry the home link, so three nav items never crowd it. */
@media (max-width: 22rem) {
  .brand span { display: none; }
}

/* Pricing tier names, the Yearly "plus" lead-in, and the free-tier limit */
.tier .name { font-size: 0.95rem; font-weight: 700; letter-spacing: 0.02em; }
.tier li.limit {
  margin-top: 0.55rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(128,128,128,0.25);
}
