:root {
  --bg: #f7f5ef;
  --surface: #ffffff;
  --ink: #17251d;
  --ink-soft: #4a5a50;
  --ink-mute: #7b887f;
  --line: #e3e0d6;
  --forest-900: #10291c;
  --forest-700: #1f4d33;
  --forest-500: #2f7a4f;
  --forest-300: #8cc5a0;
  --forest-100: #e3f1e7;
  --moss: #c9d77a;
  --clay: #c8794a;
  --danger: #b4382c;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 41, 28, .06), 0 8px 24px rgba(16, 41, 28, .08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --wrap: 1160px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

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

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 650; letter-spacing: -.01em; }
h1 em, h2 em { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--forest-500); }

p { margin: 0 0 1em; }

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

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--forest-500);
  margin-bottom: 14px;
}

.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 36em; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s;
  text-decoration: none !important;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--forest-700); color: #fff; }
.btn-primary:hover { background: var(--forest-900); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-mute); }
.btn-light { background: #fff; color: var(--forest-900); }
.btn-light:hover { background: var(--forest-100); }
.btn-sm { height: 38px; padding: 0 16px; font-size: .9rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 245, 239, .86);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; height: 72px; gap: 32px; }

.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 1.12rem; letter-spacing: -.02em; }
.logo:hover { text-decoration: none; }
.logo svg { width: 30px; height: 30px; }

.nav { display: flex; gap: 28px; margin-left: 12px; }
.nav a { color: var(--ink-soft); font-size: .95rem; font-weight: 500; }
.nav a:hover { color: var(--ink); text-decoration: none; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.header-actions .signin { color: var(--ink); font-weight: 550; font-size: .95rem; }

/* Hero */
.hero { padding: 72px 0 96px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.hero-note { font-size: .88rem; color: var(--ink-mute); display: flex; align-items: center; gap: 8px; }
.hero-note svg { width: 16px; height: 16px; color: var(--forest-500); }

/* Dashboard mockup */
.mock {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 30px 60px -20px rgba(16, 41, 28, .25), var(--shadow);
  overflow: hidden;
  transform: rotate(-.6deg);
}
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fbfaf6; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #e2ded2; }
.mock-bar span { margin-left: 12px; font-size: .78rem; color: var(--ink-mute); }
.mock-body { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; padding: 16px; }
.mock-map { border-radius: 10px; overflow: hidden; background: #e7ecdf; min-height: 260px; display: flex; align-items: center; }
.mock-map svg { width: 100%; height: 100%; }
.mock-side { display: grid; gap: 12px; align-content: start; }
.tile { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.tile small { display: block; font-size: .72rem; color: var(--ink-mute); text-transform: uppercase; letter-spacing: .06em; }
.tile b { display: block; font-size: 1.35rem; letter-spacing: -.02em; margin-top: 2px; }
.tile .delta { font-size: .78rem; color: var(--forest-500); font-weight: 600; }
.tile .delta.warn { color: var(--clay); }
.tile svg { margin-top: 8px; width: 100%; height: 34px; }
.mock-legend { display: flex; gap: 14px; padding: 0 16px 16px; font-size: .74rem; color: var(--ink-mute); }
.mock-legend span { display: inline-flex; align-items: center; gap: 6px; }
.mock-legend i { width: 10px; height: 10px; border-radius: 3px; }

/* Audience strip */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; }
.strip .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; }
.strip p { margin: 0; font-size: .9rem; color: var(--ink-mute); }
.strip ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.strip li { font-weight: 600; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 8px; }
.strip li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--forest-300); }

/* Sections */
section.block { padding: 104px 0; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.feature .ico {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--forest-100);
  color: var(--forest-700);
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.feature .ico svg { width: 22px; height: 22px; }
.feature p { color: var(--ink-soft); margin: 0; font-size: .97rem; }

/* How it works */
.how { background: var(--forest-900); color: #e8efe9; }
.how h2 { color: #fff; }
.how h2 em { color: var(--moss); }
.how .lead { color: #b5c6bb; }
.how .eyebrow { color: var(--moss); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { border-top: 1px solid rgba(255, 255, 255, .16); padding-top: 26px; }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--moss);
  margin-bottom: 14px;
}
.step h3 { color: #fff; }
.step p { color: #b5c6bb; margin: 0; }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.checklist { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; color: var(--ink-soft); }
.checklist svg { flex: none; width: 22px; height: 22px; color: var(--forest-500); margin-top: 1px; }
.report {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 28px;
}
.report header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.report header b { font-size: 1.05rem; }
.report header span { font-size: .8rem; color: var(--ink-mute); }
.report table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.report th { text-align: left; font-weight: 600; color: var(--ink-mute); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; padding: 0 0 10px; }
.report td { padding: 11px 0; border-top: 1px solid var(--line); }
.report td:last-child, .report th:last-child { text-align: right; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; }
.pill.ok { background: var(--forest-100); color: var(--forest-700); }
.pill.due { background: #f6e8dc; color: #8a4a22; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px;
  display: flex;
  flex-direction: column;
}
.plan.featured { border-color: var(--forest-700); box-shadow: 0 0 0 1px var(--forest-700), var(--shadow); position: relative; }
.plan.featured::before {
  content: "Most popular";
  position: absolute; top: -12px; left: 32px;
  background: var(--forest-700); color: #fff;
  font-size: .72rem; font-weight: 650; letter-spacing: .04em;
  padding: 4px 12px; border-radius: 999px;
}
.plan h3 { font-size: 1.2rem; }
.plan .desc { color: var(--ink-soft); font-size: .95rem; min-height: 3.2em; }
.price { font-size: 2.4rem; font-weight: 700; letter-spacing: -.03em; margin: 8px 0 2px; }
.price small { font-size: .95rem; font-weight: 500; color: var(--ink-mute); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 10px; font-size: .95rem; color: var(--ink-soft); }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: "✓"; color: var(--forest-500); font-weight: 700; }
.plan .btn { margin-top: auto; }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; list-style: none; font-weight: 600; font-size: 1.05rem; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--ink-mute); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-soft); margin: 12px 0 0; }

/* CTA */
.cta {
  background: var(--forest-700) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath d='M60 18l16 28H44zM60 38l20 34H40z' fill='%23ffffff' fill-opacity='.04'/%3E%3C/svg%3E");
  border-radius: 24px;
  color: #fff;
  padding: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta h2 { color: #fff; margin: 0 0 .3em; }
.cta p { color: #cfe0d4; margin: 0; max-width: 34em; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .35); }
.cta .btn-ghost:hover { border-color: #fff; }

/* Footer */
.site-footer { padding: 72px 0 40px; margin-top: 104px; border-top: 1px solid var(--line); font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.footer-grid p { color: var(--ink-mute); max-width: 24em; margin-top: 14px; }
.footer-grid h4 { margin: 0 0 14px; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-mute); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--ink-soft); }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--ink-mute); font-size: .85rem; }

/* Auth page */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-aside {
  background: var(--forest-900);
  color: #dfe9e2;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.auth-aside .logo { color: #fff; }
.auth-aside blockquote { margin: 0; font-family: var(--serif); font-size: 1.6rem; line-height: 1.35; color: #fff; max-width: 18em; position: relative; z-index: 1; }
.auth-aside small { color: #9db3a5; position: relative; z-index: 1; }
.auth-aside .trees { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: auto; opacity: .9; }
.auth-main { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 48px 24px; background: var(--surface); }
.auth-card { width: 100%; max-width: 380px; }
.auth-card h1 { font-size: 1.75rem; margin-bottom: .3em; }
.auth-card > p { color: var(--ink-soft); margin-bottom: 28px; }
.field { margin-bottom: 18px; }
.field label { display: flex; justify-content: space-between; font-size: .88rem; font-weight: 600; margin-bottom: 7px; }
.field label a { font-weight: 500; }
.field input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus { outline: none; border-color: var(--forest-500); box-shadow: 0 0 0 3px rgba(47, 122, 79, .15); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.remember { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--ink-soft); margin: 4px 0 22px; }
.remember input { width: 16px; height: 16px; accent-color: var(--forest-700); }
.auth-card .btn { width: 100%; border-radius: 10px; }
.auth-card .btn[disabled] { opacity: .7; cursor: default; }
.spinner { width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.alert { display: none; gap: 10px; padding: 12px 14px; border-radius: 10px; font-size: .9rem; margin-bottom: 18px; }
.alert.show { display: flex; }
.alert.error { background: #fbecea; color: var(--danger); }
.alert.info { background: var(--forest-100); color: var(--forest-700); }
.alert svg { flex: none; width: 18px; height: 18px; margin-top: 2px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--ink-mute); font-size: .82rem; margin: 22px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-foot { margin-top: 28px; font-size: .88rem; color: var(--ink-mute); text-align: center; }
.auth-legal { margin-top: 40px; font-size: .8rem; color: var(--ink-mute); display: flex; gap: 18px; }
.auth-legal a { color: var(--ink-mute); }

/* Simple pages */
.page { padding: 72px 0 0; }
.prose { max-width: 720px; }
.prose h2 { font-size: 1.35rem; margin-top: 2em; }
.prose p, .prose li { color: var(--ink-soft); }
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 64px 24px; }
.notfound .code { font-family: var(--serif); font-style: italic; font-size: 6rem; line-height: 1; color: var(--forest-300); }

/* Responsive */
@media (max-width: 980px) {
  .hero .wrap, .split { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
  .features, .plans, .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .auth { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .features, .plans, .steps { grid-template-columns: 1fr; }
  section.block { padding: 72px 0; }
  .mock-body { grid-template-columns: 1fr; }
  .cta { padding: 40px 28px; }
  .header-actions .signin { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
}
