:root {
    --ink: #132522;
    --muted: #5c6b68;
    --paper: #f7f4ed;
    --white: #fffdf8;
    --mint: #b9f5d8;
    --green: #146b51;
    --green-dark: #0b4938;
    --coral: #ff8d78;
    --line: #d9ded8;
    --shadow: 0 24px 70px rgba(19, 37, 34, .12);
    --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.6; }
a { color: inherit; text-underline-offset: .18em; }
button, input, textarea { font: inherit; }
.shell { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid rgba(19,37,34,.08); background: rgba(247,244,237,.92); backdrop-filter: blur(16px); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.2rem; font-weight: 800; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 38px; aspect-ratio: 1; border-radius: 12px; color: var(--white); background: var(--green); box-shadow: 0 8px 20px rgba(20,107,81,.22); }
nav { display: flex; align-items: center; gap: 22px; }
nav a, .link-button { font-weight: 700; text-decoration: none; }
.nav-form { display: inline; }
.link-button { border: 0; padding: 0; color: inherit; background: none; cursor: pointer; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 0 22px; border: 1px solid var(--green); border-radius: 999px; color: white; background: var(--green); font-weight: 800; text-decoration: none; cursor: pointer; box-shadow: 0 10px 24px rgba(20,107,81,.18); }
.button:hover { background: var(--green-dark); }
.button:disabled { cursor: not-allowed; opacity: .55; }
.button-small { min-height: 40px; padding-inline: 17px; }
.button-secondary { color: var(--ink); border-color: var(--line); background: transparent; box-shadow: none; }
.button-secondary:hover { background: rgba(255,255,255,.7); }
.hero { padding: clamp(72px, 10vw, 132px) 0 84px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 8vw, 100px); align-items: center; }
.eyebrow { margin: 0 0 10px; color: var(--green); font-size: .78rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
h1, h2 { margin: 0; line-height: 1.08; letter-spacing: -.035em; }
h1 { max-width: 820px; font-size: clamp(2.7rem, 6vw, 5.5rem); }
h2 { font-size: clamp(1.45rem, 2.4vw, 2.3rem); }
.lead { max-width: 720px; margin: 28px 0; color: var(--muted); font-size: clamp(1.08rem, 2vw, 1.3rem); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-card, .feature-card, .panel, .auth-card, .metric-card { border: 1px solid rgba(19,37,34,.1); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.hero-card { position: relative; padding: 38px; transform: rotate(1.5deg); }
.pulse { width: 68px; height: 68px; margin-bottom: 58px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, var(--mint), var(--green)); box-shadow: 0 0 0 18px rgba(185,245,216,.45), 0 0 0 38px rgba(185,245,216,.18); }
.card-kicker { color: var(--muted); font-weight: 800; }
.check-list { display: grid; gap: 12px; padding: 0; list-style: none; }
.check-list li::before { content: "✓"; margin-right: 10px; color: var(--green); font-weight: 900; }
.section { padding: 84px 0; }
.feature-grid, .metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { padding: 30px; box-shadow: none; }
.feature-card span { display: inline-block; margin-bottom: 46px; color: var(--coral); font-weight: 900; }
.feature-card p, .panel p { color: var(--muted); }
.section-ink { color: var(--white); background: var(--ink); }
.section-ink .eyebrow { color: var(--mint); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: end; }
.split > p { margin: 0; color: #cbd7d3; font-size: 1.1rem; }
.auth-section, .dashboard-section { min-height: calc(100vh - 160px); padding: 72px 20px; }
.auth-section { display: grid; place-items: center; }
.auth-card { width: min(520px, 100%); padding: clamp(28px, 5vw, 48px); }
.auth-card-wide { width: min(720px, 100%); }
.auth-card h1 { font-size: clamp(2rem, 5vw, 3.3rem); }
.form-stack { display: grid; gap: 18px; margin-top: 30px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: grid; gap: 7px; font-weight: 800; }
input, textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; color: var(--ink); background: white; outline: none; }
input:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(20,107,81,.12); }
label small, .form-note { color: var(--muted); font-weight: 500; }
.honeypot { position: absolute; left: -9999px; }
.notice { margin: 20px auto 0; padding: 14px 18px; border-radius: 12px; }
.notice-success { border: 1px solid #6dc39d; background: #e2f8ed; }
.notice-error { border: 1px solid #d96c5c; background: #fff0ed; }
.dashboard-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.dashboard-heading h1 { font-size: clamp(2.4rem, 5vw, 4.5rem); }
.status-pill { padding: 8px 13px; border-radius: 999px; background: #e7e9e5; font-size: .82rem; font-weight: 900; }
.status-active { color: #0d5b42; background: #dff7eb; }
.status-past_due { color: #8b4d09; background: #fff0ce; }
.metric-card { display: grid; gap: 4px; padding: 26px; box-shadow: none; }
.metric-card strong { font-size: 2rem; }
.metric-card span { color: var(--muted); }
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.panel { padding: 30px; box-shadow: none; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); }
.footer-inner { min-height: 110px; }
.footer-inner p:last-child { display: flex; gap: 18px; }

@media (max-width: 780px) {
    .hero-grid, .split, .dashboard-grid { grid-template-columns: 1fr; }
    .feature-grid, .metric-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    nav > a:first-child { display: none; }
    .header-inner { align-items: flex-start; padding-block: 16px; }
    nav { gap: 12px; }
    .hero-card { transform: none; }
    .footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; }
}
