:root {
  --forest: #1f4d2b; --forest-2: #163a20; --leaf: #3f8f3a; --lime: #a5d63f; --lime-soft: #e9f6cf;
  --bg: #f8faf5; --card: #ffffff; --pale: #eef6e9; --line: #dbe7d4; --ink: #1c2a1f; --muted: #56655a;
  --amber: #8a5a00; --amber-bg: #fff4d6; --red: #a3241a; --red-bg: #fde8e6; --gray: #5f6b63; --gray-bg: #eceeed;
  --radius: 16px; --shadow: 0 2px 10px rgba(31, 77, 43, .08);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.55;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
main:focus { outline: none; }
a { color: var(--leaf); text-underline-offset: 2px; }
a:hover { color: var(--forest); }
h1, h2, h3 { color: var(--forest); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin-top: 1.2em; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.section { padding: 40px 20px; }
.band { background: var(--pale); padding: 40px 0; background-image: radial-gradient(circle at 95% 10%, rgba(165, 214, 63, .18) 0 120px, transparent 121px); }
.muted { color: var(--muted); font-size: .92rem; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--forest); color: #fff; padding: 8px 12px; z-index: 10; border-radius: 8px; }
.skip:focus { left: 8px; }
.hidden { display: none !important; }

/* header */
.site-header { background: var(--forest); color: #fff; position: sticky; top: 0; z-index: 5; }
.bar { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand b { display: block; letter-spacing: .14em; font-size: 1rem; }
.brand small { display: block; letter-spacing: .2em; font-size: .68rem; color: var(--lime); }
.logo-mark { width: 40px; height: 40px; border-radius: 8px; background: #fff; padding: 2px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a, .nav .link { color: #e4f0de; text-decoration: none; padding: 8px 10px; border-radius: 8px; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"], .nav .link:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.nav .btn { color: var(--forest); margin-left: 6px; }
.nav .btn.ghost { color: #fff; border-color: rgba(255, 255, 255, .6); }
.menu-btn { display: none; margin-left: auto; background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .5); border-radius: 8px; padding: 8px 12px; font: inherit; }
@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--forest-2); flex-direction: column; align-items: stretch; padding: 10px 20px 16px; }
  .nav.open { display: flex; }
  .nav .btn { margin: 6px 0 0; text-align: center; }
}

/* buttons and forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--lime); color: var(--forest-2); border: 2px solid var(--lime); border-radius: 999px; padding: 10px 20px; font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; min-height: 44px; }
.btn:hover { background: #b6e05a; color: var(--forest-2); }
.btn.dark { background: var(--forest); border-color: var(--forest); color: #fff; }
.btn.dark:hover { background: var(--leaf); border-color: var(--leaf); color: #fff; }
.btn.ghost { background: transparent; border-color: var(--forest); color: var(--forest); }
.btn.sm { padding: 6px 14px; min-height: 36px; font-size: .9rem; }
.btn.lg { padding: 14px 26px; font-size: 1.05rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.link { background: none; border: 0; color: var(--leaf); font: inherit; cursor: pointer; text-decoration: underline; padding: 0; }
label { display: block; font-weight: 600; margin: 14px 0 6px; color: var(--forest); }
input, select, textarea { width: 100%; font: inherit; padding: 11px 12px; border: 1.5px solid #b8cbb0; border-radius: 10px; background: #fff; color: var(--ink); min-height: 44px; }
input:focus, select:focus, textarea:focus { border-color: var(--leaf); outline: 3px solid rgba(165, 214, 63, .5); }
input[aria-invalid="true"] { border-color: var(--red); }
input[type="checkbox"], input[type="radio"] { width: 20px; min-height: 20px; height: 20px; margin: 0; accent-color: var(--leaf); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; color: var(--ink); }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row > * { flex: 1 1 180px; }
.row > .btn { flex: 0 0 auto; }
.hint { color: var(--muted); font-size: .88rem; margin-top: 6px; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 700; color: var(--forest); font-size: 1.15rem; margin-bottom: 4px; }
.err { color: var(--red); font-weight: 600; }
.err::before { content: "\26A0  "; }

/* cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; margin-bottom: 18px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.grid3 .card { margin: 0; }
.feature h3::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 0 10px; background: var(--leaf); margin-right: 8px; }
.callout { border-radius: 12px; padding: 14px 16px; border-left: 5px solid; margin: 16px 0; }
.callout.green { background: var(--pale); border-color: var(--leaf); }
.callout.amber { background: var(--amber-bg); border-color: #d99a00; color: #4d3500; }
.callout.red { background: var(--red-bg); border-color: var(--red); color: #5c120c; }
.callout.gray { background: var(--gray-bg); border-color: var(--gray); }
.callout h3 { color: inherit; margin-bottom: .3em; }
.badge { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .06em; padding: 4px 10px; border-radius: 999px; }
.badge.green { background: var(--lime-soft); color: var(--forest); }
.badge.amber { background: var(--amber-bg); color: var(--amber); }
.badge.red { background: var(--red-bg); color: var(--red); }
.badge.gray { background: var(--gray-bg); color: var(--gray); }

/* hero */
.hero { background: linear-gradient(160deg, var(--bg) 0%, var(--pale) 100%); padding: 48px 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 36px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.eyebrow { letter-spacing: .22em; font-weight: 700; color: var(--leaf); font-size: .82rem; margin-bottom: 6px; }
.tagline { font-size: 1.35rem; font-weight: 700; color: var(--leaf); }
.lead { font-size: 1.12rem; color: #33453a; }
.benefits { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin: 0 0 22px; }
.benefits li::before, .ticks li::before { content: "\2713"; color: var(--leaf); font-weight: 800; margin-right: 8px; }
.ticks { list-style: none; padding: 0; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.secure { margin-top: 14px; color: var(--forest); font-weight: 600; }
.demo { position: relative; }
.demo .badge.amber { position: absolute; top: 14px; right: 14px; }

/* stats and chart */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin: 10px 0 16px; }
.stats > div { background: var(--pale); border-radius: 12px; padding: 12px; }
.stats small { display: block; color: var(--muted); font-size: .8rem; }
.stats b { font-size: 1.35rem; color: var(--forest); }
.chart { width: 100%; height: auto; display: block; }
.chart .grid { stroke: #e3ece0; stroke-width: 1; }
.chart .axis { fill: var(--muted); font-size: 11px; }
.chart .line { fill: none; stroke: var(--forest); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.chart .dot { fill: var(--forest); stroke: #fff; stroke-width: 2; }
.chart .dot:focus, .chart .dot:hover { fill: var(--lime); outline: none; }
.chart .ref-band { fill: rgba(165, 214, 63, .28); }
.chart .goal { stroke: var(--leaf); stroke-dasharray: 2 5; stroke-width: 2; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); }
.legend i { display: inline-block; width: 18px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }
.legend .l1 { background: var(--forest); height: 3px; }
.legend .l2 { background: rgba(165, 214, 63, .5); }
.chart-tip { min-height: 1.6em; font-size: .9rem; color: var(--forest); font-weight: 600; }

/* steps */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.steps .card { margin: 0; }
.num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--forest); color: var(--lime); font-weight: 800; margin-bottom: 10px; }
.faq summary { cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h2 { font-size: 1.08rem; margin: 0; display: inline; }
.faq summary::after { content: "+"; float: right; font-weight: 800; color: var(--leaf); }
.faq[open] summary::after { content: "\2212"; }
.faq p { margin: 12px 0 0; }
.prose h2 { font-size: 1.25rem; }

/* activation result */
.activate-form .row input { font-size: 1.1rem; letter-spacing: .08em; text-transform: uppercase; }
.result:empty { display: none; }
.result { margin-top: 16px; }
.verified { border: 2px solid var(--leaf); background: var(--pale); border-radius: 14px; padding: 16px; }
.verified dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 10px 0 14px; }
.verified dt { color: var(--muted); }
.verified dd { margin: 0; font-weight: 600; }

/* app */
.app-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.app-top h1 { margin-bottom: 4px; }
.cards5 { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 18px; }
.cards5 .card { margin: 0; padding: 16px; }
.cards5 small { color: var(--muted); display: block; }
.cards5 b { display: block; font-size: 1.6rem; color: var(--forest); }
.two { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; }
@media (max-width: 900px) { .two { grid-template-columns: 1fr; } }
.fab { position: fixed; right: 18px; bottom: 18px; z-index: 4; box-shadow: 0 6px 18px rgba(0, 0, 0, .2); }
@media (min-width: 901px) { .fab { display: none; } }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
th { color: var(--forest); font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
.table-wrap { overflow-x: auto; }
.snap { list-style: none; padding: 0; margin: 0; }
.snap li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.wizard-steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 18px; flex-wrap: wrap; }
.wizard-steps li { flex: 1 1 90px; font-size: .8rem; padding: 8px; border-radius: 8px; background: var(--gray-bg); color: var(--gray); text-align: center; }
.wizard-steps li[aria-current="step"] { background: var(--forest); color: #fff; }
.wizard-steps li.done { background: var(--lime-soft); color: var(--forest); }
.actions { display: flex; gap: 10px; justify-content: space-between; margin-top: 20px; flex-wrap: wrap; }
.lock { font-size: .85rem; color: var(--gray); }
.lock::before { content: "\1F512  "; }
.kv { display: grid; grid-template-columns: minmax(140px, max-content) 1fr auto; gap: 8px 16px; align-items: center; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--forest); color: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 20; max-width: 90vw; }
.toast.show { opacity: 1; }
.loading { color: var(--muted); }
.auth { max-width: 460px; margin: 0 auto; }
.tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.tabs button { flex: 1; }
.tabs button[aria-selected="true"] { background: var(--forest); color: #fff; border-color: var(--forest); }

/* footer */
.site-footer { background: var(--forest-2); color: #d6e6cf; padding: 28px 0; margin-top: 40px; font-size: .92rem; }
.site-footer a { color: #e9f6cf; margin-right: 16px; display: inline-block; padding: 4px 0; }
.site-footer .safety { max-width: 900px; }
.site-footer .muted { color: #a9c0a0; margin-top: 12px; }

/* print (reports) */
.print-only { display: none; }
@media print {
  .site-header, .site-footer, .no-print, .fab, .skip, .toast { display: none !important; }
  .print-only { display: block; }
  body { background: #fff; }
  .card { box-shadow: none; break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* motion (JS adds .reveal only when motion is allowed, so content never stays hidden without JS) */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
.card { transition: transform .2s ease, box-shadow .2s ease; }
.feature:hover, .steps .card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(31, 77, 43, .14); }
.btn { transition: background .15s ease, transform .15s ease; }
.btn:active { transform: scale(.97); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.chart .line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.4s ease-out .2s forwards; }
.hero h1, .hero .tagline, .hero .lead, .hero .benefits, .hero .cta-row { animation: rise .6s ease both; }
.hero .tagline { animation-delay: .08s; } .hero .lead { animation-delay: .16s; } .hero .benefits { animation-delay: .24s; } .hero .cta-row { animation-delay: .32s; }
.demo { animation: rise .8s ease .2s both; }
@media (prefers-reduced-motion: reduce) { .chart .line { stroke-dashoffset: 0; animation: none; } .hero *, .demo { animation: none !important; } }
@media print { .chart .line { stroke-dashoffset: 0; animation: none; } }
