/* PT Sans – latin-ext */
@font-face {
    font-family: 'PT Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/pt-sans-regular-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* PT Sans – latin */
@font-face {
    font-family: 'PT Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/pt-sans-regular-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* PT Sans Bold – latin-ext */
@font-face {
    font-family: 'PT Sans';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/pt-sans-700-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* PT Sans Bold – latin */
@font-face {
    font-family: 'PT Sans';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/pt-sans-700-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* PT Sans Narrow – latin-ext */
@font-face {
    font-family: 'PT Sans Narrow';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/pt-sans-narrow-regular-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* PT Sans Narrow – latin */
@font-face {
    font-family: 'PT Sans Narrow';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/pt-sans-narrow-regular-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* PT Sans Narrow Bold – latin-ext */
@font-face {
    font-family: 'PT Sans Narrow';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/pt-sans-narrow-700-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* PT Sans Narrow Bold – latin */
@font-face {
    font-family: 'PT Sans Narrow';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/pt-sans-narrow-700-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --green: #68a94a;
    --green-hover: #3c622b;
    --green-soft: #b5d8a6;
    --link-hover: #4a68a9;
    --green-tint: rgba(104, 169, 74, 0.12);
    --green-tint-strong: rgba(104, 169, 74, 0.2);
    --text: #525b56;
    --text-inverse: #fff;
    --border: #acb4af;
    --sidebar: #f2f3f2;
    --footer: #292e2b;
    --footer-text: #848f89;
    --heading: #314336;
    --surface-muted: rgba(255, 255, 255, 0.72);
    --surface-strong: rgba(255, 255, 255, 0.92);
    --focus-ring: rgba(74, 104, 169, 0.32);
    --panel-shadow: 0 0 0.2em 0.2em rgba(0, 0, 0, 0.2);
    --radius: 6px;
    --body-bg: #d6dae8;
    --card-bg: #fff;
    --input-bg: #fff;
    --mobile-nav-toggle-bg: #ececec;
    --space-xs: 1rem;
    --space-sm: 1.6rem;
    --space-md: 2.4rem;
    --space-lg: 3.2rem;
    --space-xl: 4.8rem;
}

[data-theme="dark"] {
    --green: #8bc86b;
    --green-hover: #a8dc8b;
    --green-soft: #314f2a;
    --link-hover: #9ab8e0;
    --green-tint: rgba(139, 200, 107, 0.14);
    --green-tint-strong: rgba(139, 200, 107, 0.22);
    --text: #e3e7e5;
    --text-inverse: #10130f;
    --border: #3b4350;
    --sidebar: #181d24;
    --footer: #10141a;
    --footer-text: #b4bec7;
    --heading: #eef4ef;
    --surface-muted: rgba(36, 41, 49, 0.76);
    --surface-strong: rgba(30, 34, 42, 0.92);
    --focus-ring: rgba(139, 200, 107, 0.26);
    --panel-shadow: 0 1.6rem 4rem rgba(0, 0, 0, 0.34);
    --body-bg: #131820;
    --card-bg: #1c222c;
    --input-bg: #232b36;
    --mobile-nav-toggle-bg: #1f2732;
}

* {
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
}

body {
    margin: 0;
    color: var(--text);
    font-family: "PT Sans Narrow", "Century Gothic", "Apple Gothic", sans-serif;
    font-size: 1.8rem;
    line-height: 1.7;
    background: var(--body-bg) url("../images/background.jpg") center top / cover fixed no-repeat;
    background-blend-mode: multiply;
}

[data-theme="dark"] body {
    background-color: #000;
}

a {
    color: var(--green);
    text-decoration: none;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover,
a:focus,
a:active {
    color: var(--link-hover);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 3px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Alert Styles */
.alert {
    padding: 1.5rem;
    margin: 1rem 0;
    border-radius: var(--radius);
    border-left: 4px solid;
    font-weight: bold;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

[data-theme="dark"] .alert-success {
    background-color: #1b2e1f;
    border-color: #243d2a;
    color: #71d085;
}

.alert-error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

[data-theme="dark"] .alert-error {
    background-color: #311b1d;
    border-color: #442426;
    color: #ea868f;
}

.container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 30px;
}

.nav-toggle {
    display: none;
}

.site-shell {
    position: relative;
}

.site-all {
    position: relative;
}

.hero-panel {
    position: relative;
}

.main-nav,
.page-panel {
    background-color: var(--card-bg);
    box-shadow: var(--panel-shadow);
}

.main-nav {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid rgba(82, 91, 86, 0.1);
}

.main-nav__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-nav ul,
.mobile-nav ul,
.subnav ul,
.footer-links {
    margin: 0;
    padding: 0;
}

.main-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    list-style: none;
}

.main-nav li,
.mobile-nav li,
.subnav li {
    list-style: none;
}

.main-nav a {
    display: inline-block;
    margin: 0;
    padding: 0.8rem 1.4rem;
    border: 1px solid transparent;
    border-radius: 999px;
    background-color: transparent;
    color: var(--green);
    font-family: "PT Sans Narrow", sans-serif;
    font-size: 1.75rem;
    letter-spacing: 0.02em;
    text-transform: none;
}

.main-nav li.current a,
.main-nav a:hover,
.main-nav a:focus,
.main-nav a:active {
    border-color: var(--green-tint-strong);
    background-color: var(--green-tint);
    color: var(--green-hover);
}

.main-nav li.current a {
    border-color: var(--green);
    background-color: var(--green);
    color: var(--text-inverse);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 0.12em;
    text-underline-offset: 0.18em;
    box-shadow: 0 0.8rem 2rem rgba(104, 169, 74, 0.2);
}


.theme-toggle {
    background: var(--surface-muted);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.7rem 1.1rem;
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 !important; /* Override button margin */
}

.theme-toggle:hover {
    background-color: var(--surface-strong) !important;
    border-color: var(--green) !important;
    color: var(--text) !important;
}

[data-theme="dark"] .theme-toggle-sun {
    display: block;
}
[data-theme="dark"] .theme-toggle-moon {
    display: none;
}
.theme-toggle-sun {
    display: none;
}
.theme-toggle-moon {
    display: block;
}

.site-header {
    padding: 5.5rem 0;
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 5%;
}

.site-logo {
    display: inline-flex;
    flex: 0 0 137px;
    width: 137px;
    min-width: 137px;
    max-width: 137px;
}

.site-title-wrap {
    flex: 1;
}

.site-title {
    margin: 0;
    color: #fff;
    font-family: "PT Sans", "Century Gothic", "Apple Gothic", sans-serif;
    font-size: 4.2rem;
    line-height: 1.1;
    text-wrap: balance;
}

.content-layout {
    padding-top: var(--space-lg);
    padding-bottom: var(--space-md);
}

.content-area {
    min-height: 300px;
    padding-bottom: 1.5rem;
    word-wrap: break-word;
}

.content-area h1,
.content-area > h2:first-child {
    margin: 0 0 1.5rem;
    color: var(--heading);
    font-family: "PT Sans", "Century Gothic", "Apple Gothic", sans-serif;
    font-size: 4.6rem;
    font-weight: normal;
    line-height: 1.08;
    text-wrap: balance;
}

.content-area h2 {
    margin: 0 0 1rem;
    color: var(--heading);
    font-family: "PT Sans", "Century Gothic", "Apple Gothic", sans-serif;
    font-size: 3rem;
    font-weight: normal;
    line-height: 1.2;
    text-wrap: balance;
}

.content-area h3 {
    margin: 0 0 1rem;
    color: var(--heading);
    font-family: "PT Sans", "Century Gothic", "Apple Gothic", sans-serif;
    font-size: 2.4rem;
    font-weight: normal;
    line-height: 1.25;
}

.content-area p,
.content-area li {
    font-size: 1.8rem;
}

.content-area p {
    margin: 0 0 1em;
}

.content-lead {
    max-width: 64ch;
    color: var(--heading);
    font-family: "PT Sans", "Century Gothic", "Apple Gothic", sans-serif;
    font-size: 2.2rem;
    line-height: 1.55;
}

.content-meta-label {
    margin: 2.8rem 0 0.8rem;
    color: var(--green);
    font-family: "PT Sans", "Century Gothic", "Apple Gothic", sans-serif;
    font-size: 1.35rem;
    font-weight: bold;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.content-supportive {
    color: var(--footer-text);
    font-size: 1.65rem;
}

.content-area > p,
.content-area > ul,
.content-area > ol {
    max-width: 72ch;
}

.content-area ul,
.content-area ol {
    margin: 0 0 1em;
    padding-left: 2em;
}

.content-area li {
    margin-bottom: 0.5em;
}

.content-area hr {
    margin: 3rem 0 0;
    border: 0;
    border-top: 1px solid var(--border);
}

.page-intro {
    max-width: 68ch;
    margin-bottom: var(--space-md);
}

.main-content {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.content-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.content-box--elevated {
    padding: var(--space-md);
    border: 1px solid rgba(82, 91, 86, 0.12);
    border-radius: calc(var(--radius) + 4px);
    background-color: var(--surface-strong);
    box-shadow: 0 1.2rem 3rem rgba(41, 46, 43, 0.06);
    backdrop-filter: blur(10px);
}

.content-box p:last-of-type {
    margin-bottom: 1.5rem;
}

.content-box-media {
    width: 100%;
    margin: 0 0 1.5rem;
}

.content-box-media img {
    width: 100%;
    border-radius: var(--radius);
}

.content-box > a:last-child,
.btn,
button,
.j-calltoaction-link-style-1 {
    display: inline-block;
    width: auto;
    margin: auto 0 0;
    padding: 1rem 2rem;
    border: 2px solid var(--green);
    border-radius: var(--radius);
    background-color: var(--green);
    color: #fff;
    font-family: inherit;
    font-size: 1.6rem;
    line-height: 1.5;
    cursor: pointer;
    text-decoration: none;
}

.content-box > a:last-child:hover,
.content-box > a:last-child:focus,
.content-box > a:last-child:active,
.btn:hover,
.btn:focus,
.btn:active,
button:hover,
button:focus,
button:active,
.j-calltoaction-link-style-1:hover,
.j-calltoaction-link-style-1:focus {
    background-color: var(--green-hover);
    border-color: var(--green-hover);
    color: #fff;
}

.content-layout--with-subnav {
    display: grid;
    grid-template-columns: minmax(0, 67%) 29%;
    gap: 4%;
    align-items: start;
}

.subnav {
    margin-top: -1rem;
    border-radius: var(--radius);
    overflow: hidden;
}

.subnav a {
    display: block;
    padding: 1.2rem 1.8rem;
    border-bottom: 1px solid rgba(82, 91, 86, 0.08);
    background-color: var(--surface-strong);
    color: var(--text);
    font-size: 1.7rem;
    text-transform: none;
}

.subnav li:first-child a {
    padding-top: 2rem;
}

.subnav li:last-child a {
    padding-bottom: 2rem;
}

.subnav li.current a,
.subnav a:hover,
.subnav a:focus,
.subnav a:active {
    background-color: var(--green-tint);
    color: var(--heading);
}

.subnav li.current a {
    border-left: 4px solid var(--green);
    padding-left: 1.4rem;
    background-color: var(--green-tint);
    color: var(--heading);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 0.12em;
    text-underline-offset: 0.18em;
}

.site-footer {
    padding: 2.2rem 0 3rem;
    background-color: var(--footer);
    color: var(--footer-text);
}

.site-footer__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    gap: 1.8rem 2.4rem;
    align-items: center;
}

.site-footer__brand {
    min-width: 0;
}

.site-footer__title {
    margin: 0 0 0.3rem;
    color: #fff;
    font-family: "PT Sans", "Century Gothic", "Apple Gothic", sans-serif;
    font-size: 2rem;
    line-height: 1.2;
}

.site-footer__tagline {
    margin: 0;
    max-width: 44ch;
    color: var(--footer-text);
    font-size: 1.45rem;
    line-height: 1.55;
}

.site-footer__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.site-footer__actions a,
.footer-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.8rem;
    padding: 0.8rem 1.2rem;
    border-radius: 999px;
    color: var(--footer-text);
    font-size: 1.35rem;
    line-height: 1;
}

.site-footer__actions a {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    justify-content: flex-end;
    color: var(--footer-text);
    font-size: 1.4rem;
    text-align: center;
}

.site-footer__actions a:hover,
.site-footer__actions a:focus,
.footer-links a:hover,
.footer-links a:focus {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.footer-share {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.footer-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.2rem;
    height: 3.2rem;
    border-radius: var(--radius);
    color: var(--footer-text);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    transition: color 0.2s, background-color 0.2s;
}

.footer-share a:hover,
.footer-share a:focus {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.footer-share svg {
    width: 1.4rem;
    height: 1.4rem;
}

.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.9fr);
    gap: var(--space-lg);
    align-items: start;
    margin-bottom: var(--space-lg);
}

.home-kicker {
    margin: 0 0 1.2rem;
    color: var(--green);
    font-family: "PT Sans", "Century Gothic", "Apple Gothic", sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.home-hero__lead {
    max-width: 60ch;
    font-size: 2rem;
    line-height: 1.6;
}

.home-hero__panel {
    padding: var(--space-md);
    border: 1px solid rgba(82, 91, 86, 0.12);
    border-radius: calc(var(--radius) + 6px);
    background: linear-gradient(145deg, var(--green-tint-strong), rgba(104, 169, 74, 0.05));
}

.home-hero__panel h2 {
    margin-bottom: 1.2rem;
}

.home-hero__panel ul {
    margin-bottom: 1.6rem;
}

.home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: var(--space-md);
}

.btn--secondary,
.btn--ghost {
    background-color: transparent;
    color: var(--green);
}

.btn--secondary {
    border-color: rgba(104, 169, 74, 0.28);
    background-color: var(--green-tint);
}

.btn--ghost {
    border-color: rgba(82, 91, 86, 0.18);
}

.btn--secondary:hover,
.btn--secondary:focus,
.btn--secondary:active,
.btn--ghost:hover,
.btn--ghost:focus,
.btn--ghost:active {
    background-color: var(--green);
    border-color: var(--green);
    color: #fff;
}

.home-pillars {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-md);
}

.contact-form {
    max-width: 600px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.6rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background-color: var(--input-bg);
    color: var(--text);
    font: inherit;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.bank-info {
    margin: 2rem 0;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.cta-buttons .j-calltoaction-link-style-1 {
    flex: 0 0 auto;
}

.liegenddemo-page {
    display: grid;
    gap: 3rem;
}

.liegenddemo-highlight {
    display: grid;
    grid-template-columns: minmax(240px, 32%) minmax(0, 1fr);
    gap: 2.4rem;
    align-items: start;
}

.liegenddemo-facts {
    display: grid;
    gap: 1.2rem;
}

.liegenddemo-fact-card,
.liegenddemo-support,
.liegenddemo-poster {
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background-color: var(--card-bg);
    box-shadow: 0 1.2rem 3rem rgba(41, 46, 43, 0.08);
}

.liegenddemo-fact-card strong,
.liegenddemo-fact-card span {
    display: block;
}

.liegenddemo-fact-label {
    margin-bottom: 0.6rem;
    color: var(--green);
    font-family: "PT Sans", "Century Gothic", "Apple Gothic", sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.liegenddemo-fact-card strong {
    font-size: 2.4rem;
    line-height: 1.2;
}

.liegenddemo-fact-card span:last-child {
    margin-top: 0.5rem;
}

.liegenddemo-copy {
    padding: 2.4rem;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(104, 169, 74, 0.14), rgba(104, 169, 74, 0.04));
}

.liegenddemo-copy p:last-child,
.liegenddemo-support ul,
.liegenddemo-poster figcaption {
    margin-bottom: 0;
}

.liegenddemo-support ul {
    padding-left: 2rem;
}

.liegenddemo-poster img {
    width: 100%;
    border-radius: calc(var(--radius) - 2px);
}

.liegenddemo-poster figcaption {
    margin-top: 1.2rem;
    color: var(--footer-text);
    font-size: 1.5rem;
}

.small-text {
    font-size: 1.6rem;
}

.mobile-nav-toggle {
    position: fixed;
    top: 25px;
    right: 0;
    z-index: 4;
    display: none;
    width: 70px;
    padding: 1.6rem 2.2rem;
    border-top-left-radius: var(--radius);
    border-bottom-left-radius: var(--radius);
    background-color: var(--mobile-nav-toggle-bg);
    box-shadow: inset 0 0 0.2em 0.2em rgba(0, 0, 0, 0.03);
    cursor: pointer;
}

.mobile-theme-toggle {
    display: none;
}

.mobile-nav-overlay {
    display: none;
}

.mobile-nav-toggle span,
.mobile-nav-toggle span::before,
.mobile-nav-toggle span::after {
    display: block;
    width: 25px;
    border-top: 3px solid var(--text);
    border-radius: 999px;
    transition: all 0.3s ease;
    content: "";
}

.mobile-nav-toggle span {
    position: relative;
    margin: 5px 0;
}

.mobile-nav-toggle span::before {
    position: absolute;
    top: -8px;
}

.mobile-nav-toggle span::after {
    position: absolute;
    top: 2px;
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: -320px;
    z-index: 3;
    width: min(320px, 75vw);
    height: 100vh;
    overflow-y: auto;
    background-color: var(--surface-strong);
    box-shadow: 1px 1px 0.2em 0.1em rgba(0, 0, 0, 0.2);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav__theme {
    padding: 1.2rem 2rem 1.2rem 3rem;
}

.mobile-nav__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 2rem 2rem 1.5rem 3rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-family: "PT Sans", "Century Gothic", "Apple Gothic", sans-serif;
    font-size: 2.2rem;
    text-transform: uppercase;
}

.mobile-nav__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.2rem;
    border-radius: var(--radius);
    background-color: var(--mobile-nav-toggle-bg);
    color: var(--text);
    cursor: pointer;
    font-family: "PT Sans Narrow", sans-serif;
    font-size: 1.4rem;
    text-transform: uppercase;
}

.mobile-nav a {
    display: block;
    padding: 1.2rem 2rem 1.2rem 3rem;
    border-bottom: 1px solid rgba(82, 91, 86, 0.08);
    color: var(--heading);
    font-size: 1.8rem;
    text-transform: none;
}

.mobile-subnav a {
    padding-left: 4rem;
    font-size: 1.5rem;
    text-transform: none;
}

.mobile-nav li.current > a,
.mobile-nav a:hover,
.mobile-nav a:focus {
    background-color: var(--green-tint);
    color: var(--heading);
}

.mobile-nav li.current > a {
    color: var(--green);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 0.12em;
    text-underline-offset: 0.18em;
}

.nav-toggle:checked + .site-shell .mobile-nav {
    left: 0;
}

.nav-toggle:checked + .site-shell .mobile-nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 2;
    background: rgba(17, 24, 21, 0.45);
}

.nav-toggle:checked + .site-shell .site-all::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.65);
    z-index: 1;
    pointer-events: none;
}

.nav-toggle:checked + .site-shell .mobile-nav-toggle span {
    border-color: transparent;
}

.nav-toggle:checked + .site-shell .mobile-nav-toggle span::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle:checked + .site-shell .mobile-nav-toggle span::after {
    top: 0;
    transform: rotate(-45deg);
}

@media (max-width: 767px) {
    body {
        font-size: 1.7rem;
        background-attachment: scroll;
        background-position: center top;
    }

    .container {
        padding: 0 18px;
    }

    .mobile-nav-toggle {
        display: block;
        top: 16px;
        width: 64px;
        padding: 1.4rem 1.8rem;
    }

    .mobile-theme-toggle {
        position: fixed;
        top: 16px;
        right: 72px;
        z-index: 4;
        display: inline-flex;
        width: 48px;
        height: 48px;
        padding: 0;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
        background: var(--surface-strong);
        box-shadow: 0 0.6rem 1.8rem rgba(0, 0, 0, 0.14);
    }

    .mobile-theme-toggle .theme-toggle-moon,
    .mobile-theme-toggle .theme-toggle-sun {
        font-size: 1.8rem;
        line-height: 1;
    }

    .main-nav {
        display: none;
    }

    .site-header {
        padding: 2.8rem 0 3.6rem;
    }

    .site-header__inner {
        display: block;
        padding-right: 5.6rem;
    }

    .site-logo {
        width: 104px;
        max-width: 100%;
        min-width: 0;
        margin-bottom: 1.4rem;
    }

    .site-title {
        font-size: 2.8rem;
        line-height: 1.1;
    }

    .content-layout,
    .content-layout--with-subnav {
        display: flex;
        flex-direction: column;
        gap: 1.8rem;
        padding-top: 1.8rem;
        padding-bottom: 1.8rem;
    }

    .subnav {
        order: -1;
        margin: 0;
    }

    .main-content,
    .home-hero,
    .home-pillars,
    .liegenddemo-highlight {
        grid-template-columns: 1fr;
        gap: 2.4rem;
    }

    .main-content {
        margin-top: 1.2rem;
    }

    .home-hero {
        gap: 1.6rem;
        margin-bottom: 2.4rem;
    }

    .home-hero__lead {
        font-size: 1.8rem;
        line-height: 1.55;
    }

    .home-actions {
        gap: 0.8rem;
        margin-top: 1.8rem;
    }

    .home-pillars {
        gap: 1.6rem;
    }

    .content-area h1,
    .content-area > h2:first-child {
        font-size: 3rem;
    }

    .content-area h2 {
        font-size: 2.6rem;
    }

    .content-area h3 {
        font-size: 2.2rem;
    }

    .content-area p,
    .content-area li {
        font-size: 1.7rem;
    }

    .content-lead {
        font-size: 1.95rem;
    }

    .page-intro {
        margin-bottom: 2.2rem;
        padding: 1.6rem 1.5rem;
        border-radius: var(--radius);
        background: linear-gradient(135deg, rgba(104, 169, 74, 0.12), rgba(104, 169, 74, 0.03));
    }

    .content-box {
        padding: 1.6rem 1.5rem;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        background-color: var(--card-bg);
        box-shadow: 0 0.8rem 2rem rgba(41, 46, 43, 0.06);
    }

    .content-box--elevated,
    .home-hero__panel {
        padding: 1.6rem 1.5rem;
    }

    .content-box-media {
        margin-bottom: 1.2rem;
    }

    .home-portrait-media {
        max-width: 220px;
        margin: 0 auto 1.2rem;
    }

    .home-portrait-media img {
        aspect-ratio: 4 / 5;
        object-fit: cover;
        object-position: center top;
    }

    .content-box > a:last-child,
    .btn,
    button {
        width: 100%;
        margin-top: 1rem;
        text-align: center;
    }

    .subnav a {
        padding: 1.2rem 1.5rem;
        font-size: 1.6rem;
    }

    .subnav li:first-child a,
    .subnav li:last-child a {
        padding-top: 1.2rem;
        padding-bottom: 1.2rem;
    }

    .site-footer__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .site-footer__tagline {
        max-width: none;
    }

    .site-footer__actions,
    .footer-links,
    .footer-share {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 420px) {
    html {
        font-size: 56.25%;
    }

    .mobile-nav {
        left: -100%;
        width: 88vw;
    }

    .mobile-theme-toggle {
        right: 68px;
        width: 44px;
        height: 44px;
    }

    .mobile-nav__header {
        padding-left: 2rem;
    }

    .mobile-nav a {
        padding-left: 2rem;
        padding-right: 1.6rem;
    }

    .mobile-subnav a {
        padding-left: 3rem;
    }

    .site-title {
        font-size: 2.4rem;
    }

    .home-hero {
        gap: 1.4rem;
        margin-bottom: 2rem;
    }

    .home-hero__lead {
        font-size: 1.7rem;
    }

    .home-pillars {
        gap: 1.4rem;
    }

    .content-lead {
        font-size: 1.8rem;
    }

    .home-portrait-media {
        max-width: 180px;
    }

    .page-intro,
    .content-box,
    .content-box--elevated,
    .home-hero__panel,
    .liegenddemo-copy,
    .liegenddemo-fact-card,
    .liegenddemo-support,
    .liegenddemo-poster {
        padding: 1.4rem 1.2rem;
    }

    .content-area h1,
    .content-area > h2:first-child {
        font-size: 2.6rem;
    }

    .content-area h2 {
        font-size: 2.3rem;
    }

    .content-area h3 {
        font-size: 2rem;
    }
}
