/* Nived Brand Style Guide v1.0: Nived Green accents, Nived Gray structure, Charcoal text (never black),
   white / very light gray backgrounds, Poppins headlines, Lato body.
   Green is never the text colour on white (too faint); it fills buttons, rules and marks. */
:root {
    --ink: #333333;          /* Charcoal (Text) */
    --ink-soft: #5c5c5c;     /* secondary text: Gray, darkened for small-text contrast */
    --gray: #757575;         /* Nived Gray */
    --paper: #ffffff;
    --paper-alt: #f5f5f5;    /* very light gray */
    --line: #e3e3e3;         /* Gray 20% tint */
    --brand: #9ec839;        /* Nived Green */
    --brand-dark: #b1d361;   /* Green 80% tint, hover */
    --brand-soft: #eff6dd;   /* Green 20% tint */
    --head: "Poppins", "Montserrat", "Helvetica Neue", Arial, sans-serif;
    --radius: 10px;
    font-size: 16px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.55;
}

.wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--brand); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }

h1, h2, h3 { font-family: var(--head); line-height: 1.2; margin: 0 0 0.5em; color: var(--ink); }
h1 { font-size: 2.4rem; font-weight: 700; }
h2 { font-size: 1.8rem; font-weight: 600; }
/* Section headers carry the short green rule from the brand guide */
.section h2::after { content: ""; display: block; width: 56px; height: 4px; background: var(--brand); margin-top: 12px; }
.section .center h2::after, .section h2.center::after { margin-left: auto; margin-right: auto; }
h3 { font-size: 1.15rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--ink-soft); }

/* Header */
.site-header {
    border-bottom: 3px solid var(--brand);  /* letterhead: logo top-left over a green rule */
    padding: 14px 0;
}
.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 24px;
}
.brand { display: block; line-height: 0; text-decoration: none; }
.brand img { display: block; height: 56px; width: auto; }  /* full lockup; brand minimum is 32px */
.site-header nav { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; }
.site-header nav a {
    color: var(--ink-soft);
    font-weight: 700;
    text-decoration: none;
}
.site-header nav a:hover { color: var(--ink); }
.site-header nav a.cta {
    color: var(--ink);
    background: var(--brand);
    padding: 8px 16px;
    border-radius: var(--radius);
}
.site-header nav a.cta:hover { background: var(--brand-dark); }

/* Hero */
.hero {
    padding: 72px 0 56px;
    background: linear-gradient(180deg, var(--paper-alt), var(--paper));
    border-bottom: 1px solid var(--line);
}
.hero .lede {
    font-size: 1.15rem;
    max-width: 640px;
}
.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gray);
    margin: 0 0 0.5em;
}
.hero-actions { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }
.fineprint { font-size: 0.85rem; color: var(--ink-soft); margin-top: 16px; }

/* Buttons */
.button {
    display: inline-block;
    padding: 12px 22px;
    border-radius: var(--radius);
    font-family: var(--head);
    font-weight: 600;
    text-decoration: none;
}
.button.primary {
    background: var(--brand);
    color: var(--ink);
}
.button.primary:hover {
    background: var(--brand-dark);
    text-decoration: none;
}
.button.ghost {
    border: 1px solid var(--line);
    color: var(--ink);
}
.button.ghost:hover { border-color: var(--brand); text-decoration: none; }

/* Sections */
.section { padding: 56px 0; }
.section.alt { background: var(--paper-alt); }
.section-lede { max-width: 640px; }
.narrow { max-width: 640px; margin: 0 auto; }
.center { text-align: center; }

.grid { display: grid; gap: 20px; margin-top: 28px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }

.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-top: 4px solid var(--brand);
    border-radius: var(--radius);
    padding: 20px;
}
.section.alt .card { background: var(--paper); }

.two-col {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}

.stat-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--paper-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
}
.stat { border-left: 4px solid var(--brand); padding-left: 12px; }
.stat span { display: block; font-family: var(--head); font-weight: 600; font-size: 1.1rem; }
.stat small { color: var(--ink-soft); }

.checklist {
    list-style: none;
    padding: 0;
    max-width: 640px;
}
.checklist li {
    padding: 10px 0 10px 28px;
    border-bottom: 1px solid var(--line);
    position: relative;
    color: var(--ink-soft);
}
.checklist li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--brand);
    font-weight: 700;
}

.featured .stat-card { justify-self: end; width: 100%; }

/* Footer */
.site-footer {
    border-top: 1px solid var(--line);
    padding: 24px 0;
    color: var(--ink-soft);
    font-size: 0.9rem;
}
.site-footer .wrap {
    display: flex;
    justify-content: space-between;
}

@media (max-width: 720px) {
    h1 { font-size: 1.9rem; }
    .grid.three, .grid.two, .two-col { grid-template-columns: 1fr; }
    .site-header { padding: 12px 0; }
    .site-header .wrap { gap: 12px; }
    .site-header nav { gap: 10px 14px; font-size: 0.95rem; }
    .site-header nav a.cta { padding: 6px 12px; }
    .site-header nav a { white-space: nowrap; }
}
