:root {
    --bg: #f4f7f5;
    --bg-soft: #edf3ef;
    --surface: #ffffff;
    --surface-soft: #f7faf8;
    --surface-tint: #eef6f2;
    --text: #17231f;
    --heading: #101c18;
    --muted: #66746e;
    --line: #dce6e0;
    --line-strong: #c6d4cd;
    --accent: #256a5b;
    --accent-strong: #16483e;
    --accent-soft: #e5f3ee;
    --gold: #a6782b;
    --danger: #b42318;
    --shadow: 0 18px 52px rgba(21, 41, 34, 0.09);
    --shadow-soft: 0 10px 26px rgba(21, 41, 34, 0.06);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100%;
    margin: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 247, 245, 0.94) 42%, var(--bg) 100%),
        var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    content: "";
    background-image:
        linear-gradient(rgba(37, 106, 91, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 106, 91, 0.035) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 68%);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
select {
    cursor: pointer;
}

.top-nav {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    padding: 0 18px;
    border-bottom: 1px solid rgba(198, 212, 205, 0.72);
    background: rgba(250, 252, 250, 0.88);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.brand-mark {
    display: inline-grid;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent-strong), var(--accent));
    box-shadow: 0 10px 24px rgba(37, 106, 91, 0.24);
    color: #ffffff;
    font-size: 13px;
    font-weight: 850;
}

.brand-copy {
    display: grid;
    min-width: 0;
}

.brand-copy strong {
    color: var(--heading);
    font-weight: 800;
    line-height: 1.1;
}

.brand-copy small {
    display: none;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.2;
}

.desktop-nav {
    display: none;
}

.desktop-nav a,
.bottom-nav a {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.desktop-nav a {
    position: relative;
    padding: 9px 3px;
}

.desktop-nav a::after {
    position: absolute;
    right: 0;
    bottom: 2px;
    left: 0;
    height: 2px;
    border-radius: 999px;
    background: var(--accent);
    content: "";
    opacity: 0;
    transform: scaleX(0.72);
    transition: opacity 160ms ease, transform 160ms ease;
}

.desktop-nav a.is-active,
.bottom-nav a.is-active {
    color: var(--accent-strong);
}

.desktop-nav a.is-active::after {
    opacity: 1;
    transform: scaleX(1);
}

.app-shell {
    width: min(100%, 1040px);
    margin: 0 auto;
    padding: 26px 16px 96px;
}

.page-header {
    margin-bottom: 18px;
}

.page-header-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
    border: 1px solid rgba(220, 230, 224, 0.86);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 248, 0.92)),
        var(--surface);
    box-shadow: var(--shadow-soft);
}

.split-header {
    align-items: flex-end;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 8px;
    color: var(--heading);
    font-size: 33px;
    line-height: 1.08;
}

h2 {
    margin-bottom: 8px;
    color: var(--heading);
    font-size: 18px;
    line-height: 1.2;
}

.page-header p,
.muted {
    color: var(--muted);
}

.page-header p {
    max-width: 620px;
    margin-bottom: 0;
}

.bottom-nav {
    position: fixed;
    right: 14px;
    bottom: 14px;
    left: 14px;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    padding: 8px;
    border: 1px solid rgba(198, 212, 205, 0.88);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 16px 44px rgba(21, 41, 34, 0.14);
    backdrop-filter: blur(18px);
}

.bottom-nav a {
    display: grid;
    min-height: 42px;
    place-items: center;
    border-radius: 7px;
}

.bottom-nav a.is-active {
    background: var(--accent-soft);
}

@media (min-width: 760px) {
    .top-nav {
        padding: 0 30px;
    }

    .brand-copy small {
        display: block;
    }

    .desktop-nav {
        display: flex;
        align-items: center;
        gap: 24px;
    }

    .app-shell {
        padding: 42px 26px 76px;
    }

    .bottom-nav {
        display: none;
    }

    h1 {
        font-size: 42px;
    }
}
