:root {
    /* Brand: Forest #19463B, lime #B9DF59 (on dark), deeper lime #80AA21 (on light) */
    --forest: #19463B;
    --forest-deep: #0f2e26;
    --forest-light: #23604f;
    --forest-tint: #e5efeb;
    --lime: #B9DF59;
    --lime-hover: #c9e87b;
    --lime-deep: #80AA21;
    --lime-tint: #f1f8de;
    --lime-ink: #4a6411;
    --ink: #14211d;
    --muted: #56655f;
    --line: #dde5e1;
    --bg: #ffffff;
    --bg-alt: #f4f7f5;
    --radius: 14px;
    --shadow: 0 20px 45px -20px rgba(15, 46, 38, 0.35);
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.6em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--forest-light); }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; }
.center { text-align: center; }

.eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--forest);
    margin-bottom: 0.8em;
}
.eyebrow::before { content: "+"; color: var(--lime-deep); font-weight: 800; margin-right: 0.4em; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8em 1.4em;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--lime); color: var(--forest-deep); }
.btn-primary:hover { background: var(--lime-hover); }
.btn-forest { background: var(--forest); color: #fff; }
.btn-forest:hover { background: var(--forest-light); }
.btn-outline { border-color: rgba(255, 255, 255, 0.45); color: #fff; }
.btn-outline:hover { border-color: #fff; }
.btn-ghost { color: var(--ink); padding-left: 0.9em; padding-right: 0.9em; }
.btn-ghost:hover { color: var(--forest); }
.btn-sm { padding: 0.55em 1.1em; font-size: 0.92rem; }
.btn-block { width: 100%; }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 12px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { display: block; height: 30px; width: auto; }
.header-nav { display: flex; align-items: center; gap: 4px; }
.nav-link { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.95rem; padding: 0.5em 0.8em; }
.nav-link:hover { color: var(--ink); }

/* Hero */
.hero {
    background:
        radial-gradient(1000px 500px at 85% 20%, rgba(185, 223, 89, 0.16), transparent 60%),
        linear-gradient(160deg, var(--forest-deep), var(--forest-light));
    color: #fff;
    padding: 88px 0 96px;
    overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.hero .eyebrow, .cta .eyebrow { color: #fff; }
.hero .eyebrow::before, .cta .eyebrow::before { color: var(--lime); }
.hero .accent { color: var(--lime); }
.lead { font-size: 1.15rem; color: rgba(255, 255, 255, 0.82); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero-visual { position: relative; padding-bottom: 104px; }
.postcard {
    position: relative;
    transform: rotate(-3deg);
    background: #fffdf7;
    color: var(--ink);
    border-radius: 12px;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.5);
    max-width: 420px;
    margin-left: auto;
}
.postcard-front { padding: 28px; border-top: 8px solid var(--lime-deep); border-radius: 12px; }
.postcard-tag {
    display: inline-block;
    background: var(--forest-tint);
    color: var(--forest-light);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.3em 0.7em;
    border-radius: 999px;
    margin-bottom: 14px;
}
.postcard-title { font-size: 1.5rem; font-weight: 800; line-height: 1.2; color: var(--forest); margin-bottom: 0.5em; }
.postcard-text { color: var(--muted); font-size: 0.95rem; }
.postcard-footer { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }
.postcard-footer strong { display: block; font-size: 0.95rem; }
.postcard-footer small { color: var(--muted); }
.qr {
    width: 54px;
    height: 54px;
    flex-shrink: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    padding: 5px;
    border: 2px solid var(--ink);
    border-radius: 6px;
}
.qr span { background: var(--ink); border-radius: 2px; }
.qr span:nth-child(2) { background: repeating-linear-gradient(90deg, var(--ink) 0 3px, transparent 3px 6px); }
.qr span:nth-child(3) { background: repeating-linear-gradient(0deg, var(--ink) 0 3px, transparent 3px 6px); }

.email-card {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    color: var(--ink);
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: var(--shadow), 0 10px 30px -10px rgba(0, 0, 0, 0.4);
    max-width: 330px;
}
.email-dot { width: 38px; height: 38px; border-radius: 50%; background: var(--forest-light); flex-shrink: 0; }
.email-from { font-weight: 700; font-size: 0.85rem; margin: 0; }
.email-subject { font-size: 0.85rem; color: var(--muted); margin: 0; }
.email-status {
    margin-left: auto;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--forest-light);
    background: var(--forest-tint);
    padding: 0.25em 0.6em;
    border-radius: 999px;
}

/* Sections */
.section { padding: 88px 0; }
.section.alt { background: var(--bg-alt); }
.section-lead { font-size: 1.1rem; color: var(--muted); }
.problem { padding-bottom: 40px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.step { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); }
.step p { color: var(--muted); margin: 0; }
.step-number {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--forest);
    color: var(--lime);
    font-weight: 800;
    margin-bottom: 16px;
}

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 48px auto 0; max-width: 760px; position: relative; }
.timeline::before {
    content: "";
    position: absolute;
    left: 118px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: var(--line);
}
.timeline li { display: grid; grid-template-columns: 100px 1fr; gap: 40px; margin-bottom: 20px; position: relative; }
.timeline li::before {
    content: "";
    position: absolute;
    left: 112px;
    top: 22px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--lime-deep);
    border: 3px solid var(--bg-alt);
}
.timeline-when { font-weight: 700; color: var(--forest-light); padding-top: 14px; text-align: right; font-size: 0.95rem; }
.timeline-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.timeline-card h3 { margin-top: 10px; margin-bottom: 0.3em; }
.timeline-card p { color: var(--muted); margin: 0; }

.channel, .pill {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25em 0.65em;
    border-radius: 999px;
    margin-right: 4px;
    white-space: nowrap;
}
.channel-email { background: #e0eaff; color: #1e40af; }
.channel-mail { background: var(--lime-tint); color: var(--lime-ink); }
.pill-green { background: var(--forest-tint); color: var(--forest-light); }
.pill-blue { background: #e0eaff; color: #1e40af; }

/* Split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

.checklist { list-style: none; padding: 0; margin: 24px 0 0; }
.checklist li { position: relative; padding-left: 34px; margin-bottom: 14px; color: var(--muted); }
.checklist li strong { color: var(--ink); }
.checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 1px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--forest-tint);
    color: var(--forest-light);
    font-weight: 800;
    font-size: 0.8rem;
    display: grid;
    place-items: center;
}

.dash-mock {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
}
.dash-head { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; margin-bottom: 8px; }
.dash-head small { color: var(--muted); font-weight: 600; }
.dash-head-gap { margin-top: 20px; }
.dash-row {
    display: grid;
    grid-template-columns: 110px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 11px 0;
    border-top: 1px solid var(--line);
    font-size: 0.92rem;
}
.muted { color: var(--muted); }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 48px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature h3 { color: var(--forest); }
.feature p { color: var(--muted); margin: 0; }

/* CTA + form */
.cta { background: linear-gradient(160deg, var(--forest-deep), var(--forest-light)); color: #fff; }
.cta .section-lead { color: rgba(255, 255, 255, 0.8); }
.cta-login { margin-top: 24px; color: rgba(255, 255, 255, 0.75); }
.cta-login a { color: var(--lime); font-weight: 700; text-decoration: none; }
.cta-login a:hover { text-decoration: underline; }

.form-card { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 28px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5); }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 6px; }
.optional { font-weight: 500; color: var(--muted); }
input, textarea {
    width: 100%;
    font: inherit;
    font-size: 1rem;
    padding: 0.7em 0.85em;
    border: 1px solid #c9d2cc;
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
}
input:focus, textarea:focus { outline: 3px solid rgba(128, 170, 33, 0.35); border-color: var(--lime-deep); }
textarea { resize: vertical; }
.field-error { color: #b91c1c; font-size: 0.85rem; margin: 6px 0 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-success h3 { color: var(--forest-light); }
.form-success p { color: var(--muted); margin: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 0.9rem; }
.footer-logo img { height: 22px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.site-footer a { color: var(--muted); }

/* Responsive */
@media (max-width: 960px) {
    .hero-inner, .split { grid-template-columns: 1fr; gap: 40px; }
    .postcard { margin: 0 auto; }
    .email-card { left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 16px); }
    .features { grid-template-columns: 1fr 1fr; }
    .nav-link { display: none; }
}

@media (max-width: 640px) {
    .hero { padding: 56px 0 64px; }
    .section { padding: 64px 0; }
    .steps, .features, .field-row { grid-template-columns: 1fr; }
    .header-nav .btn-forest { display: none; }
    .timeline::before { left: 7px; }
    .timeline li { grid-template-columns: 1fr; gap: 6px; padding-left: 32px; }
    .timeline li::before { left: 1px; top: 4px; }
    .timeline-when { text-align: left; padding-top: 0; }
    .dash-row { grid-template-columns: 1fr auto; }
    .dash-row > :first-child { grid-column: 1 / -1; justify-self: start; }
    .email-subject { white-space: normal; }
}

/* Standalone auth pages (invitation) */
.auth-page { background: linear-gradient(160deg, var(--forest-deep), var(--forest-light)); min-height: 100vh; }
.auth-wrap { max-width: 440px; margin: 0 auto; padding: 64px 16px; }
.auth-logo { margin-bottom: 28px; }
.auth-logo img { height: 34px; }
.auth-title { font-size: 1.6rem; margin-bottom: 0.4em; }
.field-hint { color: var(--muted); font-size: 0.85rem; margin: 6px 0 0; }
