/* Sprout web: shared by sprout-support-site and sprout-legal-site.
   Copied into each repo (no build step). Edit one, copy to the other.

   Shape rule: panels and cards 20px, buttons and chips full pill, nothing else rounded.
   Color rule: one accent (Sprout forest green). Cream is the app's own background. */

@font-face {
  font-family: "Outfit";
  src: url("fonts/outfit-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #f3f0e8;
  --surface: #fbfaf6;
  --tint: #e2eadd;
  --ink: #1d281f;
  --muted: #4c5a4f;
  --accent: #2f5233;
  --accent-hover: #264429;
  --on-accent: #f3f0e8;
  --line: rgb(47 82 51 / 0.16);
  --shadow: 0 18px 40px -24px rgb(47 82 51 / 0.45);
  --radius: 20px;
  --max: 1120px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111812;
    --surface: #182119;
    --tint: #1e2d20;
    --ink: #e8eee5;
    --muted: #a8b6a8;
    --accent: #93c595;
    --accent-hover: #a9d4aa;
    --on-accent: #10200f;
    --line: rgb(147 197 149 / 0.18);
    --shadow: 0 18px 40px -24px rgb(0 0 0 / 0.7);
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 16px; top: -48px;
  background: var(--accent); color: var(--on-accent);
  padding: 8px 16px; border-radius: 999px; z-index: 20;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 650; font-size: 1.2rem; color: var(--ink); text-decoration: none;
}
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand small { font-weight: 450; color: var(--muted); font-size: 0.95rem; }
.nav { margin-left: auto; display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
@media (max-width: 640px) {
  .nav { gap: 16px; }
  .nav .hide-sm { display: none; }
  .brand small { display: none; }
}
@media (max-width: 480px) {
  .site-header .wrap { gap: 12px; }
  .nav { gap: 14px; font-size: 0.95rem; }
  .brand { font-size: 1.1rem; gap: 8px; }
  .brand img { width: 30px; height: 30px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font: inherit; font-weight: 600; text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--ink); }
.btn svg { width: 18px; height: 18px; }

.ico { width: 26px; height: 26px; flex: none; color: var(--accent); }

/* ---------- Home: hero ---------- */
.hero { padding: 56px 0 72px; }
.hero .wrap {
  display: grid; gap: 48px; align-items: center;
  grid-template-columns: 1.15fr 0.85fr;
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.02; letter-spacing: -0.035em; font-weight: 700;
  margin: 0 0 20px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lede { font-size: 1.25rem; color: var(--muted); max-width: 34ch; margin: 0 0 32px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .soon { margin: 0 0 16px; color: var(--accent); font-weight: 600; font-size: 1rem; }

.hero-art {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius);
  background: var(--accent); overflow: hidden; box-shadow: var(--shadow);
  display: grid; place-items: center;
}
.hero-art img.shot { width: 100%; height: 100%; object-fit: cover; }
.hero-art img.mark { width: 62%; border-radius: 22%; }
@media (prefers-color-scheme: dark) { .hero-art { background: #2f5233; } }

@media (max-width: 820px) {
  .hero { padding: 32px 0 48px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; }
  .hero-art { aspect-ratio: 16 / 11; max-width: 520px; }
  .hero-art img.mark { width: 38%; }
}

/* ---------- Home: features bento ---------- */
section.block { padding: 72px 0; }
.block h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem); line-height: 1.1;
  letter-spacing: -0.025em; margin: 0 0 12px; font-weight: 680;
}
.block .intro { color: var(--muted); max-width: 58ch; margin: 0 0 36px; font-size: 1.12rem; }

.bento {
  display: grid; gap: 16px;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(190px, auto);
}
.tile {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
  display: flex; flex-direction: column; gap: 10px;
}
.tile h3 { margin: 0; font-size: 1.3rem; letter-spacing: -0.01em; font-weight: 650; }
.tile p { margin: 0; color: var(--muted); }
.tile.big { grid-column: span 4; grid-row: span 2; background: var(--accent); color: var(--on-accent); border: 0; justify-content: flex-end; }
.tile.big p { color: color-mix(in srgb, var(--on-accent) 82%, transparent); font-size: 1.12rem; max-width: 40ch; }
.tile.big h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.1; }
.tile.big .ico { color: var(--on-accent); width: 40px; height: 40px; margin-bottom: auto; }
.tile.tall { grid-column: span 2; grid-row: span 2; background: var(--tint); border: 0; }
.tile.wide { grid-column: span 2; }
.tile.tinted { background: var(--tint); border: 0; }
.tile .code {
  font-variant-numeric: tabular-nums; letter-spacing: 0.18em; font-weight: 650;
  font-size: 1.35rem; color: var(--accent); margin-top: auto;
}
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .tile.big { grid-column: span 2; grid-row: auto; min-height: 280px; }
  .tile.tall, .tile.wide { grid-column: span 1; grid-row: auto; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .tile.big, .tile.tall, .tile.wide { grid-column: auto; }
}

/* ---------- Home: pricing ---------- */
.pricing {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start;
}
.pricing .free p { color: var(--muted); max-width: 42ch; }
.plans { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 26px; }
.plan { display: grid; grid-template-columns: 1fr auto auto; gap: 8px 28px; align-items: baseline; padding: 22px 0; }
.plan + .plan { border-top: 1px solid var(--line); }
.plan h3 { margin: 0; font-size: 1.2rem; font-weight: 650; }
.plan .who { grid-column: 1; color: var(--muted); font-size: 0.98rem; }
.plan .price { font-weight: 650; font-size: 1.35rem; font-variant-numeric: tabular-nums; text-align: right; }
.plan .price span { display: block; font-size: 0.85rem; font-weight: 450; color: var(--muted); }
.plan .p1 { grid-column: 2; grid-row: 1 / span 2; }
.plan .p2 { grid-column: 3; grid-row: 1 / span 2; }
.fine { color: var(--muted); font-size: 0.95rem; margin-top: 16px; }
@media (max-width: 820px) {
  .pricing { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 460px) {
  .plan { grid-template-columns: 1fr 1fr; }
  .plan h3, .plan .who { grid-column: 1 / -1; }
  .plan .p1, .plan .p2 { grid-column: auto; grid-row: auto; text-align: left; }
}

/* ---------- Help strip ---------- */
.help {
  background: var(--tint); border-radius: var(--radius); padding: 40px;
  display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between;
}
.help h2 { margin: 0 0 6px; }
.help p { margin: 0; color: var(--muted); }

/* ---------- FAQ ---------- */
.page-head { padding-top: 56px; padding-bottom: 24px; }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -0.03em; line-height: 1.05; margin: 0 0 12px; }
.page-head p { color: var(--muted); font-size: 1.15rem; max-width: 56ch; margin: 0; }

.faq-layout { display: grid; grid-template-columns: 220px 1fr; gap: 48px; padding-bottom: 72px; }
.toc { position: sticky; top: 92px; align-self: start; display: flex; flex-direction: column; gap: 4px; }
.toc a { color: var(--muted); text-decoration: none; padding: 6px 14px; border-radius: 999px; }
.toc a:hover { background: var(--tint); color: var(--ink); }
@media (max-width: 820px) {
  .faq-layout { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; flex-direction: row; overflow-x: auto; gap: 8px; padding-bottom: 4px; scrollbar-width: none; }
  .toc a { background: var(--surface); border: 1px solid var(--line); white-space: nowrap; }
}

.faq-group { margin-bottom: 44px; }
.faq-group h2 { font-size: 1.5rem; letter-spacing: -0.015em; margin: 0 0 12px; display: flex; align-items: center; gap: 10px; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
details[open] { border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
summary {
  list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 600;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary .ico { width: 18px; height: 18px; flex: none; color: var(--muted); transition: transform .2s ease; }
details[open] summary .ico { transform: rotate(180deg); }
details .answer { padding: 0 22px 20px; color: var(--muted); }
details .answer p { margin: 0 0 10px; }
details .answer p:last-child { margin: 0; }
details .answer strong { color: var(--ink); font-weight: 600; }
details .answer ol, details .answer ul { margin: 0 0 10px; padding-left: 22px; }

.contact {
  background: var(--accent); color: var(--on-accent); border-radius: var(--radius);
  padding: 36px; display: grid; gap: 8px;
}
.contact h2 { margin: 0; font-size: 1.6rem; }
.contact p { margin: 0; color: color-mix(in srgb, var(--on-accent) 85%, transparent); }
.contact a { color: var(--on-accent); font-weight: 600; }
.contact .row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.contact .btn { background: var(--on-accent); color: var(--accent); }
.contact .btn:hover { color: var(--accent); opacity: .92; }
.contact .btn.alt { background: transparent; color: var(--on-accent); border-color: color-mix(in srgb, var(--on-accent) 45%, transparent); }

/* ---------- Legal prose ---------- */
.legal { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; padding-bottom: 80px; }
.legal .toc { font-size: 0.95rem; }
.legal .toc a { padding: 5px 12px; }
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.45rem; letter-spacing: -0.015em; margin: 44px 0 12px; line-height: 1.25; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.12rem; margin: 26px 0 8px; }
.prose p, .prose li { color: var(--ink); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose .note {
  background: var(--tint); border-radius: var(--radius); padding: 18px 22px; margin: 20px 0;
}
.prose .note p { margin: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 0.97rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; }
.prose thead th { color: var(--muted); font-weight: 600; font-size: 0.9rem; border-bottom: 1px solid var(--line); }
.prose tbody tr + tr td { border-top: 1px solid var(--line); }
.table-scroll { overflow-x: auto; }
.updated { color: var(--muted); margin-top: 10px; }
@media (max-width: 900px) {
  .legal { grid-template-columns: 1fr; gap: 24px; }
  .legal .toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .legal .toc a { background: var(--surface); border: 1px solid var(--line); }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 0.95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Motion (feedback only) ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
