:root {
  --green-deep: #12290b;
  --green: #2a5219;
  --green-bright: #3f7a26;
  --green-pale: #e8f0e2;
  --paper: #f7f8f5;
  --ink: #16211e;
  --ink-soft: #46534e;
  --ink-faint: #6e7b75;
  --card: #ffffff;
  --line: #dce2dd;
  --warn: #a8761f;
  --radius: 18px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
}
a { color: var(--green); }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 760px; }

/* Nav — lives on the green header of every page */
nav {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 12px 20px; padding: 18px 0 6px;
}
nav .brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 20px; color: #fff; text-decoration: none;
  flex-shrink: 0;
}
nav .brand img { width: 34px; height: 34px; border-radius: 8px; display: block; }
nav .links { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
nav .links a {
  color: #fff; text-decoration: none; font-weight: 600; font-size: 14.5px;
  padding: 7px 14px; border-radius: 100px; white-space: nowrap;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.16);
}
nav .links a:hover { background: rgba(255,255,255,.22); }
@media (max-width: 720px) {
  nav { justify-content: center; padding-top: 14px; }
  nav .links { margin-left: 0; flex-basis: 100%; justify-content: center; }
  nav .links a { font-size: 13.5px; padding: 6px 12px; }
}

/* Hero */
.hero {
  background: radial-gradient(ellipse 900px 480px at 50% -60px, rgba(63,122,38,.45), transparent),
              linear-gradient(180deg, var(--green-deep), var(--green) 90%);
  color: #fff;
  padding: 64px 0 84px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(38px, 6.5vw, 64px);
  font-weight: 850;
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin: 18px auto 0;
  max-width: 800px;
  text-wrap: balance;
}
.hero p.sub {
  margin: 20px auto 0; max-width: 620px;
  font-size: 20px; color: rgba(255,255,255,.82);
}
.hero .badges { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.pill {
  display: inline-block; padding: 8px 16px; border-radius: 100px;
  background: rgba(255,255,255,.12); color: #fff; font-size: 14.5px; font-weight: 600;
  border: 1px solid rgba(255,255,255,.18);
}
.ctas { margin-top: 36px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta {
  display: inline-block;
  background: #fff; color: var(--green-deep);
  font-weight: 800; font-size: 18px; text-decoration: none;
  padding: 16px 34px; border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.cta.secondary { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.5); box-shadow: none; }
.hero .fineprint { margin-top: 22px; font-size: 13px; color: rgba(255,255,255,.55); padding: 0 10px; }

/* Sections */
section { padding: 72px 0; }
section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2.section { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -0.01em; text-align: center; text-wrap: balance; }
p.section-sub { text-align: center; color: var(--ink-soft); max-width: 640px; margin: 14px auto 0; }

.grid { display: grid; gap: 26px; margin-top: 48px; }
.grid.cols3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid.cols4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px;
}
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 15.5px; }
.card .k { font-size: 30px; }

.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 22px; margin-top: 48px; }
.shots img { border-radius: 22px; box-shadow: 0 18px 44px rgba(18,41,11,.22); }

/* Forms / tools */
.tool {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; margin-top: 34px;
}
.tool label { display: block; font-weight: 600; font-size: 15px; margin: 18px 0 6px; }
.tool input[type=number], .tool input[type=search], .tool select {
  width: 100%; padding: 13px 14px; font-size: 17px;
  border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper);
  font-family: inherit;
}
.tool input:focus, .tool select:focus { outline: 2px solid var(--green-bright); border-color: var(--green-bright); }
.result {
  margin-top: 26px; padding: 22px; border-radius: 14px;
  background: var(--green-pale); border: 1px solid #c9dcbc;
}
.result .big { font-size: 42px; font-weight: 850; color: var(--green-deep); font-variant-numeric: tabular-nums; }
.result .note { font-size: 14px; color: var(--ink-soft); margin-top: 8px; }
.result.warn { background: #f4eddd; border-color: #e2d3ae; }
.result.warn .big { color: var(--warn); font-size: 24px; }

.occ-item { padding: 14px 4px; border-bottom: 1px solid var(--line); }
.occ-item b { font-size: 17px; }
.occ-item .code { color: var(--green); font-weight: 700; font-variant-numeric: tabular-nums; }
.occ-item .cat { color: var(--ink-faint); font-size: 14px; }
.occ-item .ex { color: var(--ink-soft); font-size: 14.5px; margin-top: 3px; }

/* Article */
article { max-width: 720px; margin: 0 auto; }
article h1 { font-size: clamp(32px, 5vw, 46px); font-weight: 850; line-height: 1.1; letter-spacing: -0.015em; margin-bottom: 10px; text-wrap: balance; }
article .byline { color: var(--ink-faint); font-size: 14.5px; margin-bottom: 30px; }
article h2 { font-size: 26px; margin: 40px 0 12px; }
article h3 { font-size: 20px; margin: 28px 0 10px; }
article p, article li { color: var(--ink-soft); margin-bottom: 14px; }
article ul, article ol { padding-left: 24px; margin-bottom: 14px; }
article strong { color: var(--ink); }
article .callout {
  background: var(--green-pale); border-left: 4px solid var(--green);
  padding: 16px 20px; border-radius: 0 12px 12px 0; margin: 22px 0;
}
article .tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 18px 0; }
article table { border-collapse: collapse; width: 100%; min-width: 460px; font-size: 15.5px; }
article th, article td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
article th { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); }

/* Page headers for interior pages */
.pagehead { background: linear-gradient(180deg, var(--green-deep), var(--green)); color: #fff; padding: 40px 0 46px; }
.pagehead h1 { font-size: clamp(30px, 5vw, 44px); font-weight: 850; letter-spacing: -0.01em; }
.pagehead p { color: rgba(255,255,255,.8); margin-top: 8px; max-width: 640px; }

/* Footer */
footer { padding: 54px 0 70px; color: var(--ink-faint); font-size: 14px; border-top: 1px solid var(--line); margin-top: 40px; }
footer .cols { display: flex; gap: 40px; flex-wrap: wrap; justify-content: space-between; }
footer a { color: var(--ink-soft); text-decoration: none; display: block; margin-bottom: 8px; }
footer a:hover { color: var(--green); }
footer .legal { margin-top: 30px; max-width: 820px; line-height: 1.6; }
@media (max-width: 640px) {
  .hero { padding: 44px 0 60px; }
  section { padding: 52px 0; }
}
