:root {
  --page: #f9f9f7;
  --surface: #fcfcfb;
  --surface-2: #f4f3ef;
  --text: #0b0b0b;
  --text-2: #52514e;
  --muted: #6b6a65;
  --border: rgba(11, 11, 11, 0.12);
  --brand: #5e8a1f;
  --brand-soft: #e6f1d0;
  --btn-bg: #5e8a1f;
  --btn-fg: #ffffff;
  --btn-hover: #4d7318;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #0d0d0d;
    --surface: #1a1a19;
    --surface-2: #201f1d;
    --text: #ffffff;
    --text-2: #c3c2b7;
    --muted: #a09f98;
    --border: rgba(255, 255, 255, 0.12);
    --brand: #9bc53d;
    --brand-soft: #33471a;
    --btn-bg: #9bc53d;
    --btn-fg: #10210a;
    --btn-hover: #b0d95a;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 17px/1.6 "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--brand); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--btn-bg); color: var(--btn-fg); padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

/* Header */
header.top { padding: 18px 0; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-size: 26px; letter-spacing: -0.5px; }
.logo .mark { width: 34px; height: 34px; color: var(--brand); flex: none; }
.logo .a { font-weight: 200; }
.logo .b { font-weight: 900; color: var(--brand); }
nav.top { display: flex; align-items: center; gap: 22px; font-size: 15px; }
nav.top a:not(.btn) { color: var(--text-2); text-decoration: none; }
nav.top a:not(.btn):hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-block; background: var(--btn-bg); color: var(--btn-fg);
  padding: 12px 24px; border-radius: 8px; font-weight: 600; text-decoration: none; font-size: 16px;
  border: 0; transition: background .15s;
}
.btn:hover { background: var(--btn-hover); text-decoration: none; }
.btn.small { padding: 8px 16px; font-size: 14px; }
.link-2 { color: var(--text-2); font-weight: 500; }

/* Hero */
.hero { padding: 56px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; background: var(--brand-soft); color: var(--brand); font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; }
@media (prefers-color-scheme: dark) { .eyebrow { color: #cfe8a0; } }
h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.08; letter-spacing: -1.5px; margin: 18px 0 18px; font-weight: 800; }
h1 em { font-style: normal; color: var(--brand); }
.lede { font-size: 20px; color: var(--text-2); max-width: 36em; margin: 0 0 28px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.fine { font-size: 14px; color: var(--muted); margin: 14px 0 0; }

/* Sections */
section { padding: 72px 0; }
section.alt { background: var(--surface-2); }
h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.15; letter-spacing: -.8px; margin: 0 0 12px; font-weight: 750; }
.sub { color: var(--text-2); max-width: 40em; margin: 0 0 40px; font-size: 18px; }

.value { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 28px 0; }
.value.flip .copy { order: 2; }
.value h3 { font-size: 24px; margin: 0 0 8px; letter-spacing: -.4px; }
.value p { color: var(--text-2); margin: 0; }
.num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 15px; margin-bottom: 10px; }
@media (prefers-color-scheme: dark) { .num { color: #cfe8a0; } }

/* Sample mockups (drawn in HTML: sample goals only, no real data) */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.07); padding: 18px; font-size: 14.5px;
}
.card .cap { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; margin: 0 0 10px; }
.tree { list-style: none; margin: 0; padding: 0; }
.tree li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); margin-bottom: 6px; }
.tree li .tag { flex: none; min-width: 70px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--brand); }
@media (prefers-color-scheme: dark) { .tree li .tag { color: #cfe8a0; } }
.tree li:nth-child(1) { margin-left: 0; }
.tree li:nth-child(2) { margin-left: 14px; }
.tree li:nth-child(3) { margin-left: 28px; }
.tree li:nth-child(4) { margin-left: 42px; }
.tree li:nth-child(5) { margin-left: 56px; background: var(--brand-soft); }
.box { width: 15px; height: 15px; border: 2px solid var(--muted); border-radius: 4px; flex: none; }
.box.done { background: var(--brand); border-color: var(--brand); }
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cols .col { background: var(--surface-2); border-radius: 10px; padding: 10px; }
.cols .col h4 { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.cols .item { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 6px 8px; margin-bottom: 6px; font-size: 13px; display: flex; gap: 8px; align-items: center; }
.chat .you, .chat .ai { padding: 10px 14px; border-radius: 12px; margin-bottom: 10px; max-width: 92%; }
.chat .you { background: var(--brand-soft); margin-left: auto; }
.chat .ai { background: var(--surface-2); }
.chat .ai ul { margin: 6px 0 0; padding-left: 18px; }
.chat .who { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 2px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 22px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--btn-bg); color: var(--btn-fg); font-weight: 700; margin-bottom: 12px; }
.steps h3 { margin: 0 0 6px; font-size: 19px; }
.steps p { margin: 0; color: var(--text-2); font-size: 16px; }

/* Beta + pricing */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 28px; }
.panel.hl { border: 2px solid var(--brand); }
.panel h3 { margin: 0 0 10px; font-size: 22px; }
.panel p { margin: 0 0 12px; color: var(--text-2); }
.price { font-size: 40px; font-weight: 800; letter-spacing: -1px; line-height: 1.1; margin: 6px 0; }
.price small { font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.checks { list-style: none; padding: 0; margin: 14px 0 0; }
.checks li { padding-left: 28px; position: relative; margin-bottom: 8px; color: var(--text-2); }
.checks li::before { content: ""; position: absolute; left: 0; top: .42em; width: 16px; height: 9px; border-left: 3px solid var(--brand); border-bottom: 3px solid var(--brand); transform: rotate(-45deg) scale(.8); }

/* FAQ */
.faq { max-width: 780px; margin-left: max(20px, calc((100% - 1080px) / 2)); }
@media (max-width: 1120px) { .faq { margin-left: auto; } }
details { border-bottom: 1px solid var(--border); padding: 16px 0; }
summary { cursor: pointer; font-weight: 650; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--brand); }
details[open] summary::after { content: "\2013"; }
details p { margin: 10px 0 0; color: var(--text-2); }

.final { text-align: center; }
.final .lede { margin-inline: auto; }
.final .cta-row { justify-content: center; }

footer { padding: 36px 0 48px; border-top: 1px solid var(--border); font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--text-2); }

@media (max-width: 860px) {
  .hero .wrap, .value, .two, .steps { grid-template-columns: 1fr; }
  .value.flip .copy { order: 0; }
  .hero { padding: 28px 0 48px; }
  section { padding: 52px 0; }
  nav.top a:not(.btn) { display: none; }
  .cols { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* Legal pages */
.doc { padding: 40px 0 72px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(30px, 4vw, 42px); margin: 0 0 6px; }
.doc h2 { font-size: 22px; margin: 36px 0 8px; letter-spacing: -.3px; }
.doc p, .doc li { color: var(--text-2); }
.doc ul { padding-left: 22px; }
.doc .meta { color: var(--muted); font-size: 15px; margin: 0 0 24px; }
.fill { background: #fdf1cc; color: #5c4300; padding: 0 4px; border-radius: 3px; font-weight: 600; }
.draft-note { background: #fdf1cc; color: #5c4300; border-radius: 8px; padding: 12px 16px; font-size: 15px; margin: 0 0 28px; }
.doc .short { background: var(--brand-soft); border-radius: 10px; padding: 16px 20px; margin: 0 0 20px; }
.doc .short strong { display: block; color: var(--text); margin-bottom: 4px; }
.doc .short ul { margin: 0; }
.doc .short li { color: var(--text); margin: 3px 0; }
.doc .toc { border: 1px solid var(--border); border-radius: 10px; padding: 14px 20px; margin: 0 0 8px; font-size: 15px; background: var(--surface); }
.doc .toc strong { color: var(--text); }
.doc .toc ol { margin: 6px 0 0; padding-left: 22px; columns: 2; column-gap: 32px; }
.doc .toc li { margin: 2px 0; break-inside: avoid; }
.doc h2 { scroll-margin-top: 16px; padding-top: 24px; border-top: 1px solid var(--border); }
.doc h2:first-of-type { }
@media (max-width: 640px) { .doc .toc ol { columns: 1; } }
