/* ── Wealth Meadow Login Page ───────────────────────────────────────────────── */

:root {
    --green:    #5F7148;
    --green-l:  #7F9660;
    --blue:     #2563EB;
    --purple:   #9333EA;
    --wm-parent:#9A7A3E;
    --wm-parent-soft:#F0E5CE;
    --wm-parent-dark:#3A3830;
    --bg:       #f4f2ed;
    --card:     #ffffff;
    --surface:  #f8f7f3;
    --text:     #191d18;
    --muted:    #686c63;
    --border:   #d8d3c8;
    --shadow:   0 1px 3px rgba(0,0,0,.06), 0 10px 24px rgba(42,36,24,.07);
}

[data-theme="dark"] {
    --bg:       #151514;
    --card:     #20201d;
    --surface:  #262620;
    --text:     #ece8de;
    --muted:    #aaa59a;
    --border:   #3a3834;
    --wm-parent:#c0a166;
    --wm-parent-soft:#352f22;
    --wm-parent-dark:#2c2b25;
    color-scheme: dark;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── Navbar ── */
.navbar {
    background: #141914;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    box-shadow: inset 0 -2px 0 var(--wm-parent);
    flex-shrink: 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.navbar-name {
    font-size: 1rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.navbar-name span { color: #d6b66c; }

.navbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-link {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
}
.navbar-link:hover { color: #fff; }
.navbar-link.is-active {
    color: #fff;
    font-weight: 700;
    cursor: default;
}

.theme-btn {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.20);
    border-radius: 7px;
    padding: 5px 9px;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1;
    color: #fff;
}
.theme-btn:hover { background: rgba(255,255,255,0.22); }

/* ── Hero image ── */
.hero-img {
    width: 100%;
    display: block;
    height: auto;
    max-height: 545px;
}

/* ── Accent bar ── */
.accent-bar {
    background: #141914;
    padding: 10px 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    border-bottom: 1px solid color-mix(in srgb, var(--wm-parent) 65%, transparent);
}

.accent-bar-item {
    display: flex;
    align-items: center;
    gap: 7px;
    color: rgba(255,255,255,0.85);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
}

.accent-bar-item:hover {
    color: #ffffff;
}

.accent-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.accent-dot--budget { background: var(--green); }
.accent-dot--invest  { background: var(--blue); }
.accent-dot--retire  { background: var(--purple); }

/* ── Login section ── */
.login-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px 60px;
    flex: 1;
}

.login-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 36px 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow);
    border-top: 3px solid var(--wm-parent);
}

.login-card h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.login-card p {
    font-size: 0.875rem;
    color: var(--muted);
    margin-bottom: 28px;
}

.public-section {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    padding: 40px 20px 60px;
    flex: 1;
}

.public-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-top: 3px solid var(--wm-parent);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 36px 40px;
}

.public-card h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.public-card h2 {
    font-size: 1.15rem;
    color: var(--text);
    margin: 28px 0 10px;
}

.public-card h3 {
    font-size: .98rem;
    color: var(--text);
    margin: 20px 0 8px;
}

.public-card p,
.public-card li {
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.7;
}

.public-card p { margin-bottom: 14px; }
.public-card ul,
.public-card ol { margin: 0 0 18px 22px; }
.public-card a { color: var(--wm-parent); }
.public-meta { color: var(--muted); font-size: .86rem; margin-bottom: 22px; }
.beta-registration-note {
    margin: 0 0 24px;
    padding: 16px 18px;
    border: 1px solid rgba(154, 122, 62, .45);
    border-left: 4px solid #9A7A3E;
    border-radius: 10px;
    background: rgba(232, 245, 233, .72);
    color: var(--text);
}
.beta-registration-note strong {
    display: block;
    margin-bottom: 6px;
    color: #6B5427;
    font-size: .78rem;
    letter-spacing: .09em;
}
.beta-registration-note p { margin: 0 0 7px; }
.beta-registration-note span { color: var(--muted); font-size: .84rem; }
[data-theme="dark"] .beta-registration-note {
    background: rgba(107, 126, 82, .16);
    border-color: rgba(214, 182, 108, .42);
    border-left-color: #d6b66c;
}
[data-theme="dark"] .beta-registration-note strong { color: #f2d99d; }

.contact-form textarea {
    width: 100%;
    min-height: 140px;
    resize: vertical;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: 9px;
    font: inherit;
    background: var(--surface);
    color: var(--text);
}

.form-notice { margin-top: 14px; font-size: .9rem; }
.form-notice.success { color: #166534; }
.form-notice.error { color: #991b1b; }

.wm-public-guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.wm-public-guide-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    text-decoration: none;
}

.wm-public-guide-card strong {
    color: var(--text);
    font-size: 1rem;
}

.wm-public-guide-card small {
    color: var(--muted);
    line-height: 1.5;
}

.wm-public-guide-status {
    align-self: flex-start;
    margin-top: auto;
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.wm-public-guide-card.is-coming-soon {
    border-style: dashed;
}

.form-group { margin-bottom: 16px; }

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: 9px;
    font-size: 0.95rem;
    background: var(--surface);
    color: var(--text);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-group input:focus {
    border-color: var(--wm-parent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--wm-parent) 20%, transparent);
    background: var(--card);
}

.btn-signin {
    width: 100%;
    padding: 12px;
    background: var(--wm-parent-dark);
    color: #fff;
    border: none;
    border-radius: 9px;
    font-size: 0.975rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.15s;
}
.btn-signin:hover { background: #2c2b25; }

.forgot-link {
    display: block;
    text-align: center;
    margin-top: 14px;
    font-size: 0.82rem;
    color: var(--wm-parent);
    text-decoration: none;
}
.forgot-link:hover { text-decoration: underline; }

.divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 22px 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.divider::before,
.divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.btn-register {
    display: block;
    width: 100%;
    padding: 12px;
    background: transparent;
    color: var(--wm-parent-dark);
    border: 1.5px solid var(--wm-parent);
    border-radius: 9px;
    font-size: 0.95rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.btn-register:hover { background: var(--wm-parent-dark); color: #fff; border-color: var(--wm-parent-dark); }

/* Closed beta public entry */
.closed-beta-shell {
    flex: 1;
    display: grid;
    place-items: center;
    padding: 68px 20px 76px;
    background:
        radial-gradient(circle at top left, rgba(195, 162, 77, .18), transparent 34rem),
        linear-gradient(180deg, #F7F3EA 0%, #efe8d8 100%);
}

.closed-beta-card {
    width: 100%;
    max-width: 720px;
    min-width: 0;
    background: #FCFBF8;
    color: #1D2721;
    border: 1px solid rgba(36, 72, 54, .18);
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(29, 39, 33, .14);
    padding: clamp(32px, 6vw, 58px);
    position: relative;
    overflow: hidden;
}

.closed-beta-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 7px;
    background: linear-gradient(90deg, #244836, #C3A24D);
}

.closed-beta-mark {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: #244836;
    color: #F7F3EA;
    font-weight: 900;
    letter-spacing: -.06em;
    margin-bottom: 28px;
}

.closed-beta-eyebrow {
    margin: 0 0 12px;
    color: #806826;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.closed-beta-card h1 {
    margin: 0 0 18px;
    max-width: 620px;
    color: #1D2721;
    font-size: clamp(2.15rem, 5vw, 4rem);
    line-height: .98;
    letter-spacing: -.06em;
}

.closed-beta-card p {
    max-width: 590px;
    color: rgba(29, 39, 33, .76);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 16px;
}

.closed-beta-card .closed-beta-lede {
    color: #244836;
    font-size: clamp(1.08rem, 2vw, 1.24rem);
    line-height: 1.65;
}

.closed-beta-form {
    width: 100%;
    max-width: 520px;
    margin-top: 28px;
}

.closed-beta-form .form-group label {
    color: #244836;
}

.closed-beta-form .form-group input {
    background: #fff;
    border-color: rgba(36, 72, 54, .24);
    color: #1D2721;
}

.closed-beta-form .form-group input:focus {
    border-color: #244836;
    box-shadow: 0 0 0 4px rgba(36, 72, 54, .14);
}

.closed-beta-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 22px;
    border: 0;
    border-radius: 999px;
    background: #244836;
    color: #fff;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(36, 72, 54, .2);
}

.closed-beta-primary:hover {
    background: #1D2721;
}

.closed-beta-secondary {
    display: inline-block;
    margin-top: 22px;
    color: #244836;
    font-weight: 800;
    text-decoration-color: rgba(195, 162, 77, .65);
    text-underline-offset: 4px;
}

.closed-beta-secondary:hover {
    color: #1D2721;
}

.closed-beta-note {
    margin-top: 34px;
    padding: 18px 20px;
    border: 1px solid rgba(195, 162, 77, .38);
    border-left: 5px solid #C3A24D;
    border-radius: 16px;
    background: rgba(195, 162, 77, .1);
    color: rgba(29, 39, 33, .78);
    line-height: 1.65;
}

[data-theme="dark"] .closed-beta-shell {
    background:
        radial-gradient(circle at top left, rgba(195, 162, 77, .12), transparent 34rem),
        linear-gradient(180deg, #161a16 0%, #111511 100%);
}

[data-theme="dark"] .closed-beta-card {
    background: #20251f;
    color: #F7F3EA;
    border-color: rgba(195, 162, 77, .22);
}

[data-theme="dark"] .closed-beta-card h1,
[data-theme="dark"] .closed-beta-form .form-group label {
    color: #F7F3EA;
}

[data-theme="dark"] .closed-beta-card p,
[data-theme="dark"] .closed-beta-note {
    color: rgba(247, 243, 234, .76);
}

[data-theme="dark"] .closed-beta-card .closed-beta-lede,
[data-theme="dark"] .closed-beta-secondary {
    color: #d8c890;
}

[data-theme="dark"] .closed-beta-form .form-group input {
    background: #171b16;
    border-color: rgba(195, 162, 77, .3);
    color: #F7F3EA;
}

/* Alerts */
.alert {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 18px;
    line-height: 1.5;
}
.alert-error   { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }

/* WealthMeadow public sign-in */
body.wm-login-page {
    min-width: 320px;
    min-height: 100dvh;
    background: #f8f6ef;
    color: #173d31;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.wm-login-page *, .wm-login-page *::before, .wm-login-page *::after { box-sizing: border-box; }
.wm-login-page { overflow-x: hidden; }
.wm-login-page main { display: flex; flex: 1 0 auto; flex-direction: column; }
.wm-login-header {
    position: sticky;
    top: 0;
    z-index: 10;
    flex: 0 0 auto;
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(24px, 6vw, 104px);
    background: rgba(255, 254, 250, .98);
    border-bottom: 1px solid rgba(23, 61, 49, .12);
}
.wm-login-brand { display: inline-flex; align-items: center; text-decoration: none; }
.wm-login-wordmark { display: block; width: 290px; height: auto; }
.wm-login-wordmark-dark { display: none; }
.wm-login-header-actions { display: flex; align-items: center; gap: 16px; }
.wm-login-nav { display: flex; align-items: center; gap: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.wm-login-nav a { padding: 5px 26px; color: #173d31; font-size: 14px; font-weight: 700; text-decoration: none; border-right: 1px solid rgba(23, 61, 49, .16); }
.wm-login-nav a:hover { color: #a77b26; }
.wm-login-current { border-right: 0; color: #5d6b64; }
.wm-login-theme-toggle { display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid rgba(23, 61, 49, .18); border-radius: 50%; background: transparent; color: #315847; cursor: pointer; }
.wm-login-theme-toggle:hover, .wm-login-theme-toggle:focus-visible { background: #edf1e8; outline: 2px solid #a77b26; outline-offset: 2px; }
.wm-login-theme-symbol { display: block; width: 17px; height: 17px; }
.wm-login-theme-sun { display: none; }
.wm-login-hero { display: flex; align-items: center; flex: 1 0 auto; min-height: 0; padding: clamp(38px, 6vh, 66px) 24px clamp(30px, 5vh, 52px); background: url('images/backgrounds/wealthmeadow/wealthmeadow-landscape-desktop.webp') center / cover no-repeat; }
.wm-login-content { width: min(100%, 1120px); margin: 0 auto; }
.wm-login-intro { width: min(100%, 590px); margin: 0 auto 30px; text-align: center; }
.wm-login-eyebrow { margin: 0 0 12px; color: #806826; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.wm-login-intro h1 { margin: 0; color: #173d31; font: 600 56px/1.08 Cambria, Georgia, 'Times New Roman', Times, serif; letter-spacing: 0; }
.wm-login-intro > p:last-child { max-width: 440px; margin: 18px auto 0; color: #2f5144; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 17px; line-height: 1.55; }
.wm-login-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(320px, .84fr); gap: 16px; align-items: stretch; }
.wm-login-card { min-width: 0; padding: 38px 42px 32px; background: rgba(255, 254, 250, .96); border: 1px solid rgba(23, 61, 49, .14); border-radius: 8px; box-shadow: 0 18px 40px rgba(28, 48, 33, .16); }
.wm-login-card h2 { margin: 0 0 16px; color: #173d31; font: 700 20px/1.3 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
.wm-login-card h2::after { content: ''; display: block; width: 38px; height: 2px; margin-top: 15px; background: #b18735; }
.wm-card-intro, .wm-launch-card > p { margin: 0 0 25px; color: #456055; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 14px; line-height: 1.55; }
.wm-login-page .form-group { margin-bottom: 17px; }
.wm-login-page .form-group label, .wm-launch-form label { margin-bottom: 7px; color: #234738; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 13px; font-weight: 800; }
.wm-login-page .form-group input, .wm-launch-form input { min-height: 47px; padding: 11px 13px; border: 1px solid rgba(23, 61, 49, .22); border-radius: 6px; background: #fffefa; color: #173d31; font: 15px -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.wm-login-page .form-group input:focus, .wm-launch-form input:focus { border-color: #a77b26; box-shadow: 0 0 0 3px rgba(167, 123, 38, .18); }
.wm-password-field { position: relative; }
.wm-password-field input { padding-right: 52px !important; }
.wm-password-toggle { position: absolute; top: 50%; right: 9px; width: 34px; height: 34px; padding: 0; transform: translateY(-50%); border: 0; border-radius: 50%; background: transparent; color: #315847; cursor: pointer; }
.wm-password-toggle:hover, .wm-password-toggle:focus-visible { background: #edf1e8; outline: 2px solid #a77b26; outline-offset: 1px; }
.wm-password-icon, .wm-button-icon, .wm-login-security-icon, .wm-login-assurance-icon { display: inline-block; flex: 0 0 auto; background: currentColor; mask: center / contain no-repeat; -webkit-mask: center / contain no-repeat; }
.wm-password-icon { width: 20px; height: 20px; mask-image: url('icons/ui/eye.svg'); -webkit-mask-image: url('icons/ui/eye.svg'); }
.wm-password-icon.is-visible { mask-image: url('icons/ui/eye-off.svg'); -webkit-mask-image: url('icons/ui/eye-off.svg'); }
.wm-button-icon { width: 20px; height: 20px; mask-image: url('icons/ui/arrow-right.svg'); -webkit-mask-image: url('icons/ui/arrow-right.svg'); }
.wm-login-security-icon, .wm-login-assurance-icon { width: 24px; height: 24px; mask-image: url('icons/ui/lock-check.svg'); -webkit-mask-image: url('icons/ui/lock-check.svg'); }
.wm-login-submit, .wm-launch-submit { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 47px; border: 0; border-radius: 6px; background: #173d31; color: #fffefa; cursor: pointer; font: 800 15px -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.wm-login-submit:hover { background: #0d2c22; }
.wm-login-form-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 17px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 13px; }
.wm-login-form-actions a { color: #315847; font-weight: 700; text-decoration: none; }
.wm-login-form-actions a:hover { text-decoration: underline; }
.wm-remember-choice { display: inline-flex !important; align-items: center; gap: 8px; margin: 0 !important; color: #315847 !important; font: 700 13px -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important; cursor: pointer; }
.wm-remember-choice input { width: 17px; height: 17px; accent-color: #173d31; }
.wm-login-security-note { display: flex; align-items: flex-start; gap: 13px; margin-top: 27px; padding-top: 24px; border-top: 1px solid rgba(23, 61, 49, .14); }
.wm-login-security-icon, .wm-login-assurance-icon { color: #315847; }
.wm-login-security-note p { margin: 0; color: #52685e; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 12px; line-height: 1.55; }
.wm-login-security-note strong { display: block; color: #315847; }
.wm-launch-card { display: flex; flex-direction: column; background: rgba(255, 254, 250, .93); }
.wm-launch-mark { display: block; width: 48px; height: 48px; margin-bottom: 18px; }
.wm-launch-form { margin-top: 2px; }
.wm-launch-form label { display: block; }
.wm-launch-form input { width: 100%; margin-bottom: 13px; }
.wm-launch-submit { border: 1px solid #a77b26; background: transparent; color: #806826; }
.wm-launch-submit:hover { background: #f4edda; }
.wm-launch-points { display: grid; gap: 12px; margin: 27px 0 0; padding: 21px 0 0; border-top: 1px solid rgba(23, 61, 49, .14); list-style: none; color: #456055; font: 13px/1.4 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.wm-launch-points li { line-height: 1.4; }
.wm-login-assurance { display: flex; align-items: center; gap: 16px; width: min(100%, 680px); margin: 0 auto; padding: clamp(24px, 4vh, 52px) 24px clamp(28px, 4.5vh, 56px); color: #315847; }
.wm-login-assurance-icon { box-sizing: content-box; width: 24px; height: 24px; padding: 11px; border: 1px solid rgba(23, 61, 49, .19); border-radius: 50%; }
.wm-login-assurance strong { display: block; font: 700 20px/1.3 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
.wm-login-assurance p { margin: 5px 0 0; color: #5c7168; font: 14px/1.5 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.wm-login-footer { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 54px; padding: 14px clamp(24px, 6vw, 104px); border-top: 1px solid rgba(23, 61, 49, .14); color: #6b756f; font: 12px -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.wm-login-footer nav { display: flex; gap: 0; }
.wm-login-footer a { padding: 0 18px; color: #52685e; text-decoration: none; border-right: 1px solid rgba(23, 61, 49, .15); }
.wm-login-footer a:last-child { padding-right: 0; border-right: 0; }
.wm-login-footer a:hover { color: #173d31; text-decoration: underline; }

[data-theme="dark"] body.wm-login-page { background: #0b151d; color: #eff5f5; }
[data-theme="dark"] .wm-login-header { background: #0d1720; border-bottom-color: rgba(224, 239, 236, .14); }
[data-theme="dark"] .wm-login-wordmark-light { display: none; }
[data-theme="dark"] .wm-login-wordmark-dark { display: block; }
[data-theme="dark"] .wm-login-nav a { color: #eff5f5; }
[data-theme="dark"] .wm-login-nav a:hover { color: #dfb54a; }
[data-theme="dark"] .wm-login-nav a + a { border-left-color: rgba(224, 239, 236, .16); }
[data-theme="dark"] .wm-login-theme-toggle { border-color: rgba(224, 239, 236, .24); color: #f4dc8e; }
[data-theme="dark"] .wm-login-theme-toggle:hover, [data-theme="dark"] .wm-login-theme-toggle:focus-visible { background: rgba(255, 255, 255, .08); }
[data-theme="dark"] .wm-login-theme-moon { display: none; }
[data-theme="dark"] .wm-login-theme-sun { display: block; }
[data-theme="dark"] .wm-login-hero { background-image: url('images/backgrounds/wealthmeadow/wealthmeadow-landscape-desktop-dark.webp'); }
[data-theme="dark"] .wm-login-eyebrow { color: #dfb54a; }
[data-theme="dark"] .wm-login-intro h1 { color: #f9f7f1; }
[data-theme="dark"] .wm-login-intro > p:last-child { color: #d4e0df; }
[data-theme="dark"] .wm-login-card { background: rgba(12, 25, 34, .94); border-color: rgba(224, 239, 236, .2); box-shadow: 0 14px 34px rgba(0, 0, 0, .34), 0 2px 8px rgba(0, 0, 0, .24); }
[data-theme="dark"] .wm-login-card h2, [data-theme="dark"] .wm-login-page .form-group label, [data-theme="dark"] .wm-launch-form label, [data-theme="dark"] .wm-remember-choice, [data-theme="dark"] .wm-login-security-note strong { color: #f5f7f3 !important; }
[data-theme="dark"] .wm-card-intro, [data-theme="dark"] .wm-launch-card > p, [data-theme="dark"] .wm-launch-points, [data-theme="dark"] .wm-login-security-note p { color: #c7d3d2; }
[data-theme="dark"] .wm-login-page .form-group input, [data-theme="dark"] .wm-launch-form input { border-color: rgba(224, 239, 236, .28); background: #101e28; color: #f5f7f3; }
[data-theme="dark"] .wm-login-page .form-group input:focus, [data-theme="dark"] .wm-launch-form input:focus { border-color: #dfb54a; box-shadow: 0 0 0 3px rgba(223, 181, 74, .22); }
[data-theme="dark"] .wm-password-toggle, [data-theme="dark"] .wm-login-security-icon, [data-theme="dark"] .wm-login-assurance-icon { color: #b9ddd5; }
[data-theme="dark"] .wm-password-toggle:hover, [data-theme="dark"] .wm-password-toggle:focus-visible { background: rgba(255, 255, 255, .1); }
[data-theme="dark"] .wm-login-submit { background: #c69a35; color: #101b20; }
[data-theme="dark"] .wm-login-submit:hover { background: #dfb54a; }
[data-theme="dark"] .wm-launch-submit { border-color: #5fc1af; color: #8ddccf; }
[data-theme="dark"] .wm-launch-submit:hover { background: rgba(95, 193, 175, .12); }
[data-theme="dark"] .wm-login-form-actions a { color: #f4dc8e; }
[data-theme="dark"] .wm-login-security-note, [data-theme="dark"] .wm-launch-points { border-top-color: rgba(224, 239, 236, .18); }
[data-theme="dark"] .wm-login-security-icon { border-color: rgba(185, 221, 213, .36); background-color: transparent; }
[data-theme="dark"] .wm-login-assurance { color: #d6e4e2; }
[data-theme="dark"] .wm-login-assurance p { color: #b8c8c7; }
[data-theme="dark"] .wm-login-footer { border-top-color: rgba(224, 239, 236, .16); color: #b8c8c7; }
[data-theme="dark"] .wm-login-footer a { color: #d6e4e2; border-right-color: rgba(224, 239, 236, .16); }
[data-theme="dark"] .wm-login-footer a:hover { color: #f4dc8e; }

@media (min-width: 761px) and (max-height: 1100px) {
    .wm-login-header { min-height: 72px; }
    .wm-login-hero { padding-top: 26px; padding-bottom: 20px; }
    .wm-login-intro { margin-bottom: 18px; }
    .wm-login-eyebrow { margin-bottom: 8px; }
    .wm-login-intro h1 { font-size: 44px; }
    .wm-login-intro > p:last-child { margin-top: 10px; font-size: 15px; }
    .wm-login-card { padding: 24px 30px 22px; }
    .wm-login-card h2 { margin-bottom: 10px; }
    .wm-login-card h2::after { margin-top: 9px; }
    .wm-card-intro, .wm-launch-card > p { margin-bottom: 16px; }
    .wm-login-page .form-group { margin-bottom: 11px; }
    .wm-login-page .form-group input, .wm-launch-form input { min-height: 42px; }
    .wm-login-submit, .wm-launch-submit { min-height: 42px; }
    .wm-login-form-actions { margin-top: 11px; }
    .wm-login-security-note { margin-top: 16px; padding-top: 14px; }
    .wm-launch-mark { width: 38px; height: 38px; margin-bottom: 10px; }
    .wm-launch-points { gap: 8px; margin-top: 16px; padding-top: 14px; }
    .wm-login-assurance { padding-top: 16px; padding-bottom: 18px; }
    .wm-login-assurance-icon { padding: 7px; }
    .wm-login-assurance strong { font-size: 17px; }
    .wm-login-assurance p { font-size: 13px; }
    .wm-login-footer { min-height: 46px; }
}
@media (max-width: 760px) {
    .wm-login-header { min-height: 70px; padding: 0 20px; }
    .wm-login-brand img { width: 220px; }
    .wm-login-header-actions { gap: 8px; }
    .wm-login-theme-toggle { width: 34px; height: 34px; }
    .wm-login-nav a { padding: 4px 10px; font-size: 12px; }
    .wm-login-nav a:first-child { display: none; }
    .wm-login-hero { padding: 44px 16px 36px; background-position: 58% center; }
    .wm-login-grid { grid-template-columns: 1fr; }
    .wm-login-card { padding: 30px 24px; }
    .wm-login-assurance { padding: 38px 24px; }
}
@media (prefers-reduced-motion: reduce) { .wm-login-page * { transition: none !important; } }

/* Login page visual polish */
.wm-login-header { min-height: 82px; border-bottom-color: rgba(23, 61, 49, .1); }
.wm-login-nav a { padding: 5px 25px; border-right: 0; }
.wm-login-nav a + a { border-left: 1px solid rgba(23, 61, 49, .13); }
.wm-login-card { background: rgba(255, 254, 250, .94); border-color: rgba(23, 61, 49, .11); box-shadow: 0 14px 34px rgba(28, 48, 33, .12), 0 2px 8px rgba(28, 48, 33, .05); }
.wm-launch-card { background: rgba(255, 254, 250, .91); }
.wm-login-security-note { align-items: center; margin-top: 27px; padding-top: 20px; border-top-color: rgba(23, 61, 49, .11); }
.wm-login-security-icon { box-sizing: content-box; padding: 4px; border: 1px solid rgba(49, 88, 71, .2); border-radius: 50%; background-color: #315847; }
.wm-launch-points { gap: 13px; border-top-color: rgba(23, 61, 49, .11); }
[data-theme="dark"] .alert-error   { background: #3b0f0f; border-color: #7f1d1d; color: #fca5a5; }
[data-theme="dark"] .alert-success { background: #052e16; border-color: #14532d; color: #86efac; }

/* WealthMeadow public information pages */
body.wm-public-page {
    min-height: 100dvh;
    background: #f8f6ef;
    color: #173d31;
}
.wm-public-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 86px;
    padding: 0 clamp(24px, 6vw, 104px);
    background: rgba(255, 254, 250, .98);
    border-bottom: 1px solid rgba(23, 61, 49, .12);
}
.wm-public-brand { display: inline-flex; align-items: center; text-decoration: none; }
.wm-public-wordmark { display: block; width: 290px; height: auto; }
.wm-public-wordmark-dark { display: none; }
.wm-public-header-actions { display: flex; align-items: center; gap: 16px; }
.wm-public-nav { display: flex; align-items: center; }
.wm-public-nav a, .wm-public-nav span {
    padding: 5px 20px;
    border-right: 1px solid rgba(23, 61, 49, .16);
    color: #173d31;
    font: 700 14px -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    text-decoration: none;
}
.wm-public-nav span { color: #6b756f; cursor: default; }
.wm-public-nav a:hover { color: #a77b26; }
.wm-public-nav > :last-child { border-right: 0; }
.wm-public-theme-toggle {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid rgba(23, 61, 49, .18);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}
.wm-public-theme-toggle:hover, .wm-public-theme-toggle:focus-visible { background: #edf1e8; outline: 2px solid #a77b26; outline-offset: 2px; }
.wm-public-theme-symbol { display: block; width: 17px; height: 17px; }
.wm-public-theme-sun { display: none; }
.wm-public-page .public-section {
    display: grid;
    flex: 1 0 auto;
    align-items: start;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: clamp(50px, 7vh, 84px) 24px;
    background-color: #f8f6ef;
    background-image: url('images/backgrounds/wealthmeadow/wealthmeadow-landscape-desktop.webp');
    background-position: center top;
    background-repeat: no-repeat;
    background-size: 100% auto;
}
.wm-public-page .public-card {
    width: min(100%, 920px);
    margin: 0 auto;
    padding: clamp(34px, 5vw, 62px);
    border: 1px solid rgba(23, 61, 49, .14);
    border-top: 3px solid #b18735;
    border-radius: 8px;
    background: rgba(255, 254, 250, .97);
    box-shadow: 0 18px 40px rgba(28, 48, 33, .16);
}
.wm-public-page .public-card h1 {
    margin: 0 0 12px;
    color: #173d31;
    font: 600 46px/1.1 Cambria, Georgia, 'Times New Roman', serif;
    letter-spacing: 0;
}
.wm-public-page .public-card h2 {
    margin: 38px 0 12px;
    color: #173d31;
    font: 700 21px/1.3 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.wm-public-page .public-card h3 { color: #315847; font: 800 14px/1.4 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; letter-spacing: .04em; text-transform: uppercase; }
.wm-public-page .public-card p, .wm-public-page .public-card li { color: #456055; font: 15px/1.7 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.wm-public-page .public-card a { color: #806826; font-weight: 700; text-underline-offset: 3px; }
.wm-public-page .public-meta { margin-bottom: 31px; color: #5c7168; font: 15px/1.5 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.wm-public-page .wm-public-auth-section { align-items: center; }
.wm-public-page .wm-public-auth-card { width: min(100%, 510px); }
.wm-public-page .form-group { margin-bottom: 18px; }
.wm-public-page .form-group label { margin-bottom: 7px; color: #234738; font: 800 13px -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.wm-public-page .form-group input, .wm-public-page .contact-form textarea {
    border: 1px solid rgba(23, 61, 49, .24);
    border-radius: 6px;
    background: #fffefa;
    color: #173d31;
    box-shadow: none;
}
.wm-public-page .form-group input { min-height: 47px; padding: 11px 13px; }
.wm-public-page .contact-form textarea { min-height: 160px; padding: 12px 13px; }
.wm-public-page .form-group input:focus, .wm-public-page .contact-form textarea:focus { border-color: #a77b26; box-shadow: 0 0 0 3px rgba(177, 135, 53, .18); }
.wm-public-page .btn-signin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 47px;
    margin-top: 5px;
    border-radius: 6px;
    background: #173d31;
    color: #fffefa;
    font: 800 15px -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.wm-public-page .btn-signin:hover { background: #315847; }
.wm-public-page .forgot-link { margin-top: 22px; color: #806826; font-weight: 700; }
.wm-public-page .wm-public-guide-grid { gap: 18px; margin-top: 30px; }
.wm-public-page .wm-public-guide-card {
    min-height: 220px;
    padding: 24px;
    border: 1px solid rgba(23, 61, 49, .16);
    border-radius: 8px;
    background: #fffefa;
    box-shadow: 0 8px 22px rgba(28, 48, 33, .08);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.wm-public-page .wm-public-guide-card:hover { transform: translateY(-3px); border-color: #b18735; box-shadow: 0 15px 30px rgba(28, 48, 33, .14); }
.wm-public-page .wm-public-guide-card strong { color: #173d31; font: 800 19px/1.3 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.wm-public-page .wm-public-guide-card small { color: #456055; font: 14px/1.55 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.wm-public-page .wm-public-guide-status { border-radius: 4px; background: #edf1e8; border: 0; color: #52685e; }
.wm-public-page .help-section { border-bottom: 1px solid rgba(23, 61, 49, .15); }
.wm-public-page .help-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 0;
    border: 0;
    background: transparent;
    color: #173d31;
    cursor: pointer;
    text-align: left;
    font: 800 16px/1.4 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.wm-public-page .help-q .arrow { color: #a77b26; transition: transform .18s ease; }
.wm-public-page .help-q.open .arrow { transform: rotate(180deg); }
.wm-public-page .help-a { display: none; padding: 0 0 20px; }
.wm-public-page .help-a.open { display: block; }
.wm-public-page .help-a p { margin-bottom: 14px; }
.wm-public-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 58px;
    padding: 16px clamp(24px, 6vw, 104px);
    border-top: 1px solid rgba(23, 61, 49, .14);
    background: #fffefa;
    color: #6b756f;
    font: 12px -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.wm-public-footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0; }
.wm-public-footer a { padding: 0 13px; border-right: 1px solid rgba(23, 61, 49, .14); color: #52685e; text-decoration: none; }
.wm-public-footer nav > :last-child { padding-right: 0; border-right: 0; }
.wm-public-footer a:hover { color: #806826; }
[data-theme="dark"] body.wm-public-page { background: #0b151d; color: #eff5f5; }
[data-theme="dark"] .wm-public-header, [data-theme="dark"] .wm-public-footer { background: #0d1720; border-color: rgba(224, 239, 236, .14); }
[data-theme="dark"] .wm-public-wordmark-light { display: none; }
[data-theme="dark"] .wm-public-wordmark-dark { display: block; }
[data-theme="dark"] .wm-public-nav a, [data-theme="dark"] .wm-public-nav span { color: #eff5f5; border-color: rgba(224, 239, 236, .16); }
[data-theme="dark"] .wm-public-nav span { color: #b8c8c7; }
[data-theme="dark"] .wm-public-nav a:hover, [data-theme="dark"] .wm-public-footer a:hover { color: #f4dc8e; }
[data-theme="dark"] .wm-public-theme-toggle { border-color: rgba(224, 239, 236, .24); }
[data-theme="dark"] .wm-public-theme-toggle:hover, [data-theme="dark"] .wm-public-theme-toggle:focus-visible { background: rgba(255, 255, 255, .08); }
[data-theme="dark"] .wm-public-theme-moon { display: none; }
[data-theme="dark"] .wm-public-theme-sun { display: block; }
[data-theme="dark"] .wm-public-page .public-section { background-color: #0b151d; background-image: url('images/backgrounds/wealthmeadow/wealthmeadow-landscape-desktop-dark.webp'); }
[data-theme="dark"] .wm-public-page .public-card { background: rgba(12, 25, 34, .96); border-color: rgba(224, 239, 236, .2); box-shadow: 0 18px 40px rgba(0, 0, 0, .34); }
[data-theme="dark"] .wm-public-page .public-card h1, [data-theme="dark"] .wm-public-page .public-card h2, [data-theme="dark"] .wm-public-page .help-q, [data-theme="dark"] .wm-public-page .wm-public-guide-card strong { color: #f5f7f3; }
[data-theme="dark"] .wm-public-page .public-card h3, [data-theme="dark"] .wm-public-page .public-card a, [data-theme="dark"] .wm-public-page .forgot-link { color: #f4dc8e; }
[data-theme="dark"] .wm-public-page .public-card p, [data-theme="dark"] .wm-public-page .public-card li, [data-theme="dark"] .wm-public-page .public-meta, [data-theme="dark"] .wm-public-page .wm-public-guide-card small { color: #c7d3d2; }
[data-theme="dark"] .wm-public-page .form-group label { color: #f5f7f3; }
[data-theme="dark"] .wm-public-page .form-group input, [data-theme="dark"] .wm-public-page .contact-form textarea { border-color: rgba(224, 239, 236, .28); background: #101e28; color: #f5f7f3; }
[data-theme="dark"] .wm-public-page .wm-public-guide-card { border-color: rgba(224, 239, 236, .18); background: #101e28; box-shadow: 0 8px 22px rgba(0, 0, 0, .2); }
[data-theme="dark"] .wm-public-page .wm-public-guide-status { background: rgba(255, 255, 255, .08); color: #c7d3d2; }
[data-theme="dark"] .wm-public-page .help-section { border-bottom-color: rgba(224, 239, 236, .18); }
[data-theme="dark"] .wm-public-footer { color: #b8c8c7; }
[data-theme="dark"] .wm-public-footer a { color: #d6e4e2; border-color: rgba(224, 239, 236, .16); }
@media (max-width: 760px) {
    .wm-public-header { min-height: 70px; padding: 0 20px; }
    .wm-public-wordmark { width: 210px; }
    .wm-public-nav { display: none; }
    .wm-public-page .public-section { padding: 38px 18px; background-size: auto 330px; }
    .wm-public-page .public-card { padding: 30px 24px; }
    .wm-public-page .public-card h1 { font-size: 36px; }
    .wm-public-footer { align-items: flex-start; flex-direction: column; padding: 22px 20px; }
    .wm-public-footer nav { justify-content: flex-start; row-gap: 10px; }
}

@media (min-width: 761px) and (max-height: 1100px) {
    .wm-login-header { min-height: 72px; }
    .wm-login-security-note { margin-top: 16px; padding-top: 14px; }
    .wm-launch-points { gap: 8px; }
}

/* ── Footer ── */
.footer {
    background: #141914;
    padding: 16px 28px;
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.45);
}
.footer a { color: rgba(255,255,255,0.60); text-decoration: none; margin: 0 10px; }
.footer a:hover { color: #fff; }

/* ── Responsive ── */
@media (max-width: 500px) {
    .navbar { padding: 0 16px; }
    .accent-bar { gap: 16px; padding: 10px 16px; }
    .login-card { padding: 28px 20px; }
    .login-section { padding: 28px 16px 48px; }
    .closed-beta-shell { padding: 34px 16px 48px; }
    .closed-beta-card { padding: 28px 20px; border-radius: 20px; }
    .closed-beta-card h1 { font-size: 2rem; line-height: 1.05; overflow-wrap: anywhere; }
    .closed-beta-card p { font-size: .95rem; }
    .closed-beta-primary { width: 100%; }
    .closed-beta-secondary { display: block; text-align: center; }
}
