/* GreenBox website (index.html, docs.html): same palette as the app.
   Dark green base, very light green boxes with black text, white text on the dark green, orange accents. */
:root {
  --bg: #12291b; --chrome: #0d2015; --surface: #eaf4ea; --surface-2: #d9eadb; --border: #a9c4ad;
  --text: #000000; --muted: #161b17; --on-dark: #ffffff; --on-dark-muted: #e6f0e9;
  --accent: #2A7F62; --accent-strong: #1f5e48; --link: #17583f; --select: #F08A24; --guide: #FFB25E;
  --radius: 10px; color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--on-dark);
  font: 500 17px/1.6 system-ui, -apple-system, "Segoe UI", Ubuntu, Roboto, sans-serif; }
a { color: var(--link); }
code { font: .92em ui-monospace, Menlo, Consolas, monospace; background: var(--surface-2); padding: 0 .3em; border-radius: 4px; }
pre { background: #ffffff; border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; overflow-x: auto; }
pre code { background: none; padding: 0; }

/* top bar */
.topnav { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 10px 24px; background: var(--chrome); border-bottom: 1px solid rgba(255,255,255,.12); }
.topnav .brand { display: flex; align-items: center; gap: 10px; color: var(--on-dark); text-decoration: none; font-weight: 700; font-size: 1.1rem; }
.topnav .brand img { width: 30px; height: 30px; background: #fff; border-radius: 7px; padding: 2px; }
.topnav nav { display: flex; gap: 6px; flex-wrap: wrap; }
.topnav nav a { color: var(--on-dark); text-decoration: none; padding: 6px 12px; border-radius: 6px; }
.topnav nav a:hover { background: rgba(255,255,255,.12); }
.topnav nav a.current { background: var(--select); color: #000; font-weight: 700; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: var(--radius);
  text-decoration: none; font-weight: 700; border: 1px solid var(--border); background: #fff; color: #000; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn:hover { filter: brightness(1.07); }

/* boxes */
.box { background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 26px; }
.box h2, .box h3 { color: #000; }
footer { text-align: center; color: var(--on-dark-muted); font-size: .92rem; padding: 28px 16px 40px; }
footer a { color: var(--guide); }

/* ---------- landing page ---------- */
.landing { max-width: 1100px; margin: 0 auto; padding: 48px 20px 0; }
.hero { text-align: center; }
.hero .wordmark { width: min(280px, 80%); height: auto; }
.hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.12; letter-spacing: -.02em; margin: 26px 0 14px; }
.hero h1 span { color: #9fd4bf; }
.hero .lead { font-size: 1.2rem; max-width: 720px; margin: 0 auto; color: var(--on-dark-muted); }
.paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 18px; margin: 36px 0 14px; }
.path { display: block; text-decoration: none; color: var(--text); background: var(--surface); border: 2px solid var(--surface);
  border-radius: 14px; padding: 24px 26px; transition: border-color .15s, transform .15s; text-align: left; }
.path:hover { border-color: var(--select); transform: translateY(-2px); }
.path .kicker { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-strong); }
.path h2 { margin: 6px 0 8px; font-size: 1.5rem; }
.path p { margin: 0 0 16px; }
.path .go { font-weight: 700; color: #000; background: var(--select); border-radius: 8px; padding: 7px 14px; display: inline-block; }
.path.run .go { background: var(--accent); color: #fff; }
.secondary { text-align: center; color: var(--on-dark-muted); }
.secondary a { color: var(--guide); font-weight: 600; }
.demo-frame { margin: 40px auto 0; max-width: 980px; background: #fff; border-radius: 12px; padding: 8px; box-shadow: 0 18px 50px rgba(0,0,0,.45); }
.demo-frame img { display: block; width: 100%; height: auto; border-radius: 6px; }
.demo-caption { text-align: center; color: var(--on-dark-muted); font-size: .92rem; margin: 10px 0 0; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; margin: 44px 0 0; }
.features .box h3 { margin: 0 0 6px; font-size: 1.15rem; }
.features .box p { margin: 0; }
.features .num { font-size: .8rem; font-weight: 700; letter-spacing: .1em; color: var(--accent-strong); }
.cite { margin: 16px 0 0; }

/* ---------- documentation ---------- */
.docs { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; max-width: 1200px; margin: 0 auto; padding: 24px 20px 0; }
.toc { position: sticky; top: 16px; align-self: start; max-height: calc(100vh - 32px); overflow-y: auto; font-size: .95rem; }
.toc p { margin: 0 0 6px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-muted); }
.toc ol { list-style: none; margin: 0 0 18px; padding: 0; }
.toc li a { display: block; color: var(--on-dark); text-decoration: none; padding: 4px 10px; border-radius: 6px; }
.toc li a:hover { background: rgba(255,255,255,.1); }
.toc li a.active { background: var(--select); color: #000; font-weight: 700; }
.toc li.sub a { padding-left: 22px; font-size: .9rem; }
.doc-body > .box { margin-bottom: 18px; }
.doc-body h1 { font-size: 2rem; margin: 6px 0 4px; }
.doc-body .intro { color: var(--on-dark-muted); margin: 0 0 18px; font-size: 1.08rem; }
.doc-body h2 { font-size: 1.45rem; margin: 0 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.doc-body h3 { font-size: 1.12rem; margin: 22px 0 6px; }
.doc-body p, .doc-body li { line-height: 1.65; }
.doc-body table { border-collapse: collapse; width: 100%; margin: 10px 0 14px; font-size: .95rem; background: #fff; }
.doc-body th, .doc-body td { border: 1px solid var(--border); padding: 6px 10px; text-align: left; vertical-align: top; }
.doc-body th { background: var(--surface-2); }
.doc-body .note { background: #fff; border-left: 4px solid var(--select); padding: 10px 14px; border-radius: 0 8px 8px 0; margin: 12px 0; }
.doc-body img.shot { width: 100%; height: auto; border: 1px solid var(--border); border-radius: 8px; }
@media (max-width: 860px) {
  .docs { grid-template-columns: 1fr; }
  .toc { position: static; max-height: none; }
}
