/* Mendify Public — calm, safe, premium */

:root {
    --md-purple: #61467D;
    --md-pink: #E4A5C6;
    --md-sage: #84A18D;
    --md-yellow: #FCD789;
    --md-off-white: #F8F5F2;
    --md-lavender: #CAC4D2;
    --md-charcoal: #3A3A3A;
    --md-white: #ffffff;
    --md-radius: 14px;
    --md-shadow: 0 8px 32px rgba(97, 70, 125, 0.08);
    --lav900: #3D2F52;
    --lav800: #5B4275;
    --lav300: #E2D9F0;
    --lav200: #EDE8F5;
    --lav100: #F4F1FA;
    --sage900: #2A3D28;
    --sage300: #C4D9C0;
    --sage100: #EEF5EC;
    --sage50: #F5FAF4;
    --intro-pad-y: clamp(1rem, 2.5vw, 1.65rem);
    --intro-pad-x: 1.25rem;
    --intro-gap: 0.35rem;
    --intro-title-size: clamp(1.55rem, 3.4vw, 2.15rem);
    --intro-lead-size: clamp(0.92rem, 1.7vw, 1.02rem);
}

*, *::before, *::after { box-sizing: border-box; }

body.public-body {
    margin: 0;
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    background: var(--md-off-white);
    color: var(--md-charcoal);
    line-height: 1.6;
}

.public-container {
    width: min(1320px, 92vw);
    margin: 0 auto;
}

.public-skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 200;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    background: var(--lav800);
    color: #fff;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
}

.public-skip-link:focus {
    top: 1rem;
}

.public-header {
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(226, 217, 240, 0.85);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 120;
    overflow: visible;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.public-header.is-scrolled {
    background: rgba(255, 255, 255, 0.97);
    border-bottom-color: rgba(226, 217, 240, 0.95);
    box-shadow: 0 10px 30px rgba(61, 47, 82, 0.08);
}

.public-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.public-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--lav900);
    min-width: 0;
}

.public-logo__image {
    display: block;
    height: 42px;
    width: auto;
    max-width: min(11rem, 48vw);
}

.public-logo__tagline {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: #7a7088;
    line-height: 1.2;
    max-width: 8.5rem;
}

.public-logo--footer .public-logo__image {
    height: 38px;
    max-width: 10rem;
    padding: 0.4rem 0.75rem;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

.public-logo--footer {
    color: #fff;
    margin-bottom: 0.85rem;
}

.public-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.public-nav__links,
.public-nav__actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.public-nav__actions {
    gap: 0.65rem;
    padding-left: 0.85rem;
    border-left: 1px solid rgba(226, 217, 240, 0.95);
}

.public-nav__link {
    color: var(--lav800);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    transition: color 0.15s ease, background 0.15s ease;
}

.public-nav__link:hover {
    color: var(--lav900);
    background: var(--lav100);
}

.public-nav__link.is-active {
    color: var(--lav900);
    background: var(--lav200);
}

.public-nav__link--account {
    font-weight: 500;
}

.public-nav__cta {
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(91, 66, 117, 0.18);
}

.public-nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    border: 0;
    padding: 0;
    margin: 0;
    background: rgba(26, 18, 38, 0.42);
    cursor: pointer;
    z-index: 115;
}

.public-header.is-nav-open .public-nav-backdrop {
    display: block;
}

.public-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    background: var(--lav100);
    border: 1px solid var(--lav300);
    border-radius: 12px;
    cursor: pointer;
    padding: 0.5rem;
    flex-shrink: 0;
}

.public-nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 0 auto;
    background: var(--lav800);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
    transform-origin: center;
}

.public-nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.public-nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.public-nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ——— Logged-in user menu ——— */

.user-menu {
    position: relative;
    flex-shrink: 0;
}

.user-menu__trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    max-width: 100%;
    padding: 0.35rem 0.55rem 0.35rem 0.35rem;
    border: 1px solid rgba(226, 217, 240, 0.95);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--lav900);
    cursor: pointer;
    font: inherit;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.user-menu__trigger:hover,
.user-menu.is-open .user-menu__trigger {
    background: #fff;
    border-color: rgba(196, 217, 192, 0.85);
    box-shadow: 0 8px 22px rgba(61, 47, 82, 0.08);
}

.user-menu__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--lav800) 0%, var(--md-purple) 100%);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 700;
    flex-shrink: 0;
}

.user-menu__avatar--lg {
    width: 2.65rem;
    height: 2.65rem;
    font-size: 1.05rem;
}

.user-menu__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    line-height: 1.15;
    text-align: left;
}

.user-menu__hello {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #8a8098;
}

.user-menu__name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--lav900);
    max-width: 9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu__chevron {
    display: inline-flex;
    width: 1rem;
    height: 1rem;
    color: var(--lav800);
    transition: transform 0.15s ease;
    flex-shrink: 0;
}

.user-menu__chevron svg {
    width: 100%;
    height: 100%;
}

.user-menu.is-open .user-menu__chevron {
    transform: rotate(180deg);
}

.user-menu__panel {
    position: absolute;
    top: calc(100% + 0.55rem);
    right: 0;
    z-index: 2;
    width: min(18.5rem, calc(100vw - 2rem));
    padding: 0.85rem;
    border-radius: 18px;
    border: 1px solid rgba(226, 217, 240, 0.95);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 44px rgba(61, 47, 82, 0.14);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.user-menu__panel[hidden] {
    display: none !important;
}

.user-menu__panel-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.35rem 0.45rem 0.85rem;
    border-bottom: 1px solid rgba(226, 217, 240, 0.75);
    margin-bottom: 0.35rem;
}

.user-menu__panel-greeting {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--lav900);
}

.user-menu__panel-email {
    margin: 0.15rem 0 0;
    font-size: 0.78rem;
    color: #8a8098;
    word-break: break-word;
}

.user-menu__links,
.user-menu__footer {
    display: grid;
    gap: 0.15rem;
}

.user-menu__footer {
    margin-top: 0.35rem;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(226, 217, 240, 0.75);
}

.user-menu__link {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.62rem 0.7rem;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--lav800);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.user-menu__link:hover,
.user-menu__link.is-active {
    background: var(--lav100);
    color: var(--lav900);
}

.user-menu__link.is-active {
    box-shadow: inset 3px 0 0 var(--md-sage);
}

.user-menu__link--cta {
    color: var(--md-sage);
}

.user-menu__link--logout {
    color: #9a4a68;
}

.user-menu__logout {
    margin: 0;
}

.user-menu-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    border: 0;
    padding: 0;
    margin: 0;
    background: rgba(26, 18, 38, 0.42);
    cursor: pointer;
    z-index: 1;
}

.public-header.is-user-menu-open {
    z-index: 210;
}

.public-header.is-user-menu-open .user-menu-backdrop {
    display: block;
}

.public-header.is-user-menu-open .user-menu__trigger {
    position: relative;
    z-index: 3;
}

.public-header--authenticated .public-nav__actions {
    border-left: 0;
    padding-left: 0;
}

@media (min-width: 901px) {
    .public-header--authenticated .public-logo {
        order: 0;
    }

    .public-header--authenticated .public-nav {
        order: 1;
        flex: 1;
        justify-content: flex-end;
    }

    .public-header--authenticated .user-menu {
        order: 2;
        margin-left: 0.65rem;
    }
}

@media (max-width: 900px) {
    .public-header:not(.public-header--authenticated) .public-nav-toggle {
        margin-left: auto;
    }
}

.public-cta-band {
    position: relative;
    padding: clamp(2rem, 4vw, 3.25rem) 0 clamp(2.25rem, 4.5vw, 3.5rem);
    overflow: hidden;
    scroll-margin-bottom: 5rem;
}

.public-cta-band--light {
    background:
        radial-gradient(circle at 12% 0%, rgba(228, 165, 198, 0.14) 0%, transparent 32%),
        radial-gradient(circle at 88% 100%, rgba(196, 217, 192, 0.18) 0%, transparent 34%),
        linear-gradient(180deg, #faf9fc 0%, #f4f1fa 100%);
    border-top: 1px solid rgba(226, 217, 240, 0.85);
}

.public-cta-band--dark {
    background:
        radial-gradient(circle at 14% 0%, rgba(228, 165, 198, 0.16) 0%, transparent 36%),
        radial-gradient(circle at 88% 100%, rgba(196, 217, 192, 0.12) 0%, transparent 30%),
        linear-gradient(180deg, #f7f5fa 0%, #ebe6f2 42%, #e4dde9 100%);
    border-top: 1px solid rgba(226, 217, 240, 0.75);
}

.public-cta-band__card {
    position: relative;
    isolation: isolate;
    border-radius: 28px;
    overflow: hidden;
}

.public-cta-band--light .public-cta-band__card {
    padding: clamp(1.5rem, 3vw, 2.25rem);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 245, 252, 0.96) 100%);
    border: 1px solid rgba(226, 217, 240, 0.9);
    box-shadow: 0 20px 50px rgba(61, 47, 82, 0.09);
}

.public-cta-band--dark .public-cta-band__card {
    padding: clamp(1.65rem, 3.2vw, 2.35rem);
    background:
        radial-gradient(circle at 100% 0%, rgba(228, 165, 198, 0.14) 0%, transparent 38%),
        radial-gradient(circle at 0% 100%, rgba(196, 217, 192, 0.12) 0%, transparent 34%),
        linear-gradient(135deg, #3d2f52 0%, #4a3760 48%, #342748 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 28px 60px rgba(52, 39, 72, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.public-cta-band__decor {
    pointer-events: none;
}

.public-cta-band__grid {
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(circle at 70% 30%, #000 0%, transparent 72%);
    -webkit-mask-image: radial-gradient(circle at 70% 30%, #000 0%, transparent 72%);
}

.public-cta-band--light .public-cta-band__grid {
    opacity: 0.5;
    background-image:
        linear-gradient(rgba(91, 66, 117, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(91, 66, 117, 0.04) 1px, transparent 1px);
}

.public-cta-band__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
}

.public-cta-band__orb--one {
    top: -3rem;
    right: 8%;
    width: 11rem;
    height: 11rem;
    background: radial-gradient(circle, rgba(196, 217, 192, 0.42) 0%, transparent 68%);
}

.public-cta-band__orb--two {
    bottom: -3.5rem;
    left: -2rem;
    width: 12rem;
    height: 12rem;
    background: radial-gradient(circle, rgba(228, 165, 198, 0.32) 0%, transparent 70%);
}

.public-cta-band__orb--three {
    top: 35%;
    right: 38%;
    width: 6rem;
    height: 6rem;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 72%);
}

.public-cta-band--light .public-cta-band__orb--three {
    background: radial-gradient(circle, rgba(138, 123, 184, 0.16) 0%, transparent 72%);
}

.public-cta-band__layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 340px);
    align-items: center;
    gap: clamp(1.5rem, 3vw, 2.5rem);
}

.public-cta-band__copy {
    min-width: 0;
}

.public-cta-band__eyebrow {
    margin: 0 0 0.7rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--lav800);
}

.public-cta-band__eyebrow::before {
    content: "— ";
    color: rgba(91, 66, 117, 0.45);
}

.public-cta-band--dark .public-cta-band__eyebrow {
    color: rgba(196, 217, 192, 0.95);
}

.public-cta-band--dark .public-cta-band__eyebrow::before {
    color: rgba(255, 255, 255, 0.35);
}

.public-cta-band__title {
    margin: 0 0 0.85rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.85rem, 3.8vw, 2.75rem);
    font-weight: 400;
    line-height: 1.1;
    color: var(--lav900);
    max-width: 12em;
}

.public-cta-band__title em {
    display: block;
    margin-top: 0.1em;
    font-style: italic;
    color: #8a7bb8;
}

.public-cta-band--dark .public-cta-band__title {
    color: #fff;
}

.public-cta-band--dark .public-cta-band__title em {
    color: #d4c4e8;
}

.public-cta-band__desc {
    margin: 0;
    max-width: 34rem;
    font-size: clamp(0.96rem, 1.6vw, 1.06rem);
    line-height: 1.65;
    color: rgba(58, 58, 58, 0.8);
}

.public-cta-band--dark .public-cta-band__desc {
    color: rgba(255, 255, 255, 0.86);
}

.public-cta-band__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    list-style: none;
    margin: 1.15rem 0 0;
    padding: 0;
}

.public-cta-band__trust li {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem 0.4rem 0.55rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--lav800);
    background: rgba(244, 241, 250, 0.95);
    border: 1px solid rgba(226, 217, 240, 0.95);
}

.public-cta-band__trust-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 700;
    color: #4d6b54;
    background: rgba(77, 107, 84, 0.14);
}

.public-cta-band--dark .public-cta-band__trust li {
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
}

.public-cta-band--dark .public-cta-band__trust-icon {
    color: #c4d9c0;
    background: rgba(196, 217, 192, 0.16);
}

.public-cta-band__actions-panel {
    padding: clamp(1.15rem, 2.2vw, 1.45rem);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.public-cta-band--light .public-cta-band__actions-panel {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(226, 217, 240, 0.9);
    box-shadow: 0 12px 32px rgba(61, 47, 82, 0.06);
}

.public-cta-band__actions-label {
    margin: 0 0 0.85rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.62);
}

.public-cta-band--light .public-cta-band__actions-label {
    color: rgba(91, 66, 117, 0.62);
}

.public-cta-band--dark .public-cta-band__actions-panel {
    background: rgba(18, 12, 28, 0.28);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 16px 40px rgba(0, 0, 0, 0.14);
}

.public-cta-band__actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.public-cta-band__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    min-height: 3.15rem;
    padding: 0.82rem 1.4rem;
    border-radius: 999px;
    border: 1.5px solid transparent;
    font: inherit;
    font-size: 0.96rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease;
}

.public-cta-band__btn:hover {
    transform: translateY(-2px);
}

.public-cta-band__btn:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 3px;
}

.public-cta-band__btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #6fa878 0%, var(--md-sage) 48%, #739a7c 100%);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow:
        0 14px 32px rgba(36, 58, 42, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.public-cta-band__btn-primary::after {
    content: "→";
    font-size: 1.05em;
    line-height: 1;
    opacity: 0.92;
    transition: transform 0.18s ease;
}

.public-cta-band__btn-primary:hover,
.public-cta-band__btn-primary:focus-visible {
    color: #fff;
    background: linear-gradient(135deg, #7eb887 0%, #92b39a 52%, #80a989 100%);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow:
        0 18px 38px rgba(36, 58, 42, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.public-cta-band__btn-primary:hover::after {
    transform: translateX(3px);
}

.public-cta-band__btn-secondary {
    color: var(--lav900);
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 24px rgba(18, 12, 28, 0.16);
}

.public-cta-band__btn-secondary:hover,
.public-cta-band__btn-secondary:focus-visible {
    color: var(--lav800);
    background: #fff;
    border-color: #fff;
    box-shadow: 0 14px 30px rgba(18, 12, 28, 0.22);
}

.public-cta-band--light .public-cta-band__btn-primary {
    background: linear-gradient(135deg, #6fa878 0%, var(--md-sage) 100%);
    box-shadow: 0 12px 28px rgba(77, 107, 84, 0.28);
}

.public-cta-band--light .public-cta-band__btn-secondary {
    color: var(--lav900);
    background: #fff;
    border-color: rgba(91, 66, 117, 0.18);
    box-shadow: 0 8px 22px rgba(61, 47, 82, 0.08);
}

.public-cta-band--light .public-cta-band__btn-secondary:hover,
.public-cta-band--light .public-cta-band__btn-secondary:focus-visible {
    background: #faf8fc;
    border-color: rgba(91, 66, 117, 0.3);
    color: var(--lav900);
}

/* Legacy aliases for pages still passing old btn classes */
.public-cta-band__actions .btn {
    justify-content: center;
    width: 100%;
    white-space: nowrap;
    min-height: 3.15rem;
    border-radius: 999px;
    font-weight: 600;
}

.public-cta-band__actions .public-cta-band__btn-primary,
.public-cta-band__actions .btn.public-cta-band__btn-primary {
    background: linear-gradient(135deg, #6fa878 0%, var(--md-sage) 48%, #739a7c 100%) !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
    color: #fff !important;
}

.public-cta-band__actions .public-cta-band__btn-secondary,
.public-cta-band__actions .btn.public-cta-band__btn-secondary {
    background: rgba(255, 255, 255, 0.96) !important;
    border-color: rgba(255, 255, 255, 0.98) !important;
    color: var(--lav900) !important;
}

.public-cta-band__note {
    margin: 0.85rem 0 0;
    font-size: 0.8rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.58);
    text-align: center;
}

.public-cta-band--light .public-cta-band__note {
    color: rgba(58, 58, 58, 0.58);
}

/* Legacy alias — keep scroll-margin for mobile dock */
.public-footer-cta {
    scroll-margin-bottom: 5rem;
}

.public-footer--rich {
    background:
        radial-gradient(circle at 12% 0%, rgba(138, 111, 168, 0.22) 0%, transparent 34%),
        linear-gradient(180deg, #2f2340 0%, var(--lav900) 52%, #342748 100%);
    color: rgba(255, 255, 255, 0.88);
    padding: 3.5rem 0 1.75rem;
    text-align: left;
}

.public-footer__grid {
    display: grid;
    grid-template-columns: 1.35fr repeat(4, minmax(0, 1fr));
    gap: 2rem 1.5rem;
    margin-bottom: 2.25rem;
    text-align: left;
}

.public-footer__brand,
.public-footer__col,
.public-footer__bottom {
    text-align: left;
}

.public-footer__col h4,
.public-footer__grid h4 {
    color: #fff;
    margin: 0 0 0.9rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.public-footer__links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.public-footer__links-list a {
    color: rgba(255, 255, 255, 0.76);
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.95;
    transition: color 0.15s ease;
}

.public-footer__links-list a:hover {
    color: #fff;
}

.public-footer__tagline {
    margin: 0 0 0.85rem;
    font-size: 0.92rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.78);
    max-width: 280px;
}

.public-footer__contact {
    display: inline-block;
    margin-bottom: 0.85rem;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.public-footer__contact:hover {
    text-decoration: underline;
}

.public-footer__regions {
    margin: 0;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.55);
}

.public-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 1.25rem;
}

.public-footer__disclaimer {
    font-size: 0.82rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.58);
    margin: 0 0 0.65rem;
}

.public-footer__copy {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.48);
    margin: 0;
}

@media (max-width: 1100px) {
    .public-footer__grid {
        grid-template-columns: 1.2fr 1fr 1fr;
    }

    .public-footer__brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    .public-header:not(.public-header--authenticated) .public-nav-toggle {
        margin-left: auto;
    }
}

/* ——— Mobile bottom dock (site-wide) ——— */

.mobile-dock {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 130;
    padding: 0.4rem 0.5rem calc(0.5rem + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid rgba(226, 217, 240, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 -10px 36px rgba(61, 47, 82, 0.12);
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.1rem;
}

.mobile-dock__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.18rem;
    min-height: 3rem;
    padding: 0.3rem 0.2rem;
    border-radius: 14px;
    text-decoration: none;
    color: #7a7088;
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.mobile-dock__item:hover {
    color: var(--lav800);
    background: var(--lav100);
}

.mobile-dock__item.is-active {
    color: var(--lav800);
    background: linear-gradient(180deg, rgba(244, 241, 250, 0.98) 0%, rgba(238, 245, 236, 0.9) 100%);
}

.mobile-dock__item.is-active .mobile-dock__icon {
    color: var(--lav800);
    background: linear-gradient(145deg, rgba(226, 217, 240, 0.55) 0%, rgba(196, 217, 192, 0.45) 100%);
    box-shadow: inset 0 0 0 1px rgba(97, 70, 125, 0.08);
}

.mobile-dock__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 10px;
    transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.mobile-dock__icon svg {
    width: 100%;
    height: 100%;
    overflow: visible;
    display: block;
}

.mobile-dock__label {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.1;
}

@media (max-width: 720px) {
    :root {
        --intro-pad-y: 0.9rem;
        --intro-pad-x: 1rem;
        --intro-title-size: clamp(1.4rem, 5.5vw, 1.75rem);
        --intro-lead-size: 0.9rem;
    }
}

/* ——— Sticky contact (WhatsApp) ——— */

.sticky-contact {
    position: fixed;
    right: max(0.85rem, env(safe-area-inset-right, 0px));
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    z-index: 125;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    pointer-events: none;
}

.has-mobile-dock .sticky-contact {
    bottom: calc(5rem + env(safe-area-inset-bottom, 0px));
}

.sticky-contact__btn {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.75rem;
    padding: 0.55rem 0.85rem 0.55rem 0.65rem;
    border-radius: 999px;
    text-decoration: none;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    box-shadow: 0 10px 28px rgba(61, 47, 82, 0.22);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sticky-contact__btn:hover,
.sticky-contact__btn:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(61, 47, 82, 0.28);
}

.sticky-contact__btn svg {
    width: 1.25rem;
    height: 1.25rem;
    flex: 0 0 auto;
}

.sticky-contact__btn--whatsapp {
    background: linear-gradient(145deg, #25d366 0%, #128c7e 100%);
}

.sticky-contact__label {
    line-height: 1;
    white-space: nowrap;
}

@media (max-width: 720px) {
    .sticky-contact__btn {
        min-height: 2.55rem;
        padding: 0.5rem;
        border-radius: 50%;
        width: 2.55rem;
        height: 2.55rem;
        justify-content: center;
    }

    .sticky-contact__label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
}

@media (min-width: 721px) {
    .has-mobile-dock .sticky-contact {
        bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    }

    .sticky-contact__btn {
        min-width: 8.85rem;
        justify-content: center;
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }
}

@media (max-width: 720px) {
    .mobile-dock {
        display: grid;
    }

    .has-mobile-dock {
        padding-bottom: calc(4.85rem + env(safe-area-inset-bottom, 0px));
    }

    .has-mobile-dock .public-main {
        padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
    }

    .has-mobile-dock.auth-body .auth-main {
        padding-bottom: clamp(2rem, 5vw, 3rem);
    }

    .has-mobile-dock .public-cta-band,
    .has-mobile-dock .public-footer.public-footer--rich,
    .has-mobile-dock .auth-footer {
        scroll-margin-bottom: 5rem;
    }
}

@media (max-width: 900px) {
    .public-nav-toggle {
        display: flex;
        margin-left: 0;
        position: relative;
        z-index: 126;
        flex-shrink: 0;
    }

    .public-header--authenticated .public-header__inner {
        display: flex;
        align-items: center;
        gap: 0.45rem;
    }

    .public-header--authenticated .public-logo {
        flex: 1 1 auto;
        min-width: 0;
    }

    .public-header--authenticated .user-menu {
        flex-shrink: 0;
        margin-left: 0;
    }

    .user-menu__trigger {
        padding: 0.28rem;
        border-radius: 999px;
    }

    .user-menu__text,
    .user-menu__chevron {
        display: none;
    }

    .user-menu__avatar {
        width: 2.35rem;
        height: 2.35rem;
    }

    .user-menu__panel {
        position: fixed;
        top: calc(var(--public-header-height, 64px) + 0.35rem);
        left: 4vw;
        right: 4vw;
        width: auto;
        z-index: 2;
        max-height: min(28rem, calc(100vh - var(--public-header-height, 64px) - 1.25rem));
        overflow-y: auto;
    }

    .public-nav {
        display: none;
        position: fixed;
        top: calc(var(--public-header-height, 64px) + 0.35rem);
        left: 4vw;
        right: 4vw;
        width: auto;
        max-height: min(32rem, calc(100vh - var(--public-header-height, 64px) - 1.25rem));
        overflow-y: auto;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        padding: 1rem;
        border: 1px solid rgba(226, 217, 240, 0.95);
        border-radius: 18px;
        box-shadow: 0 18px 40px rgba(61, 47, 82, 0.12);
        z-index: 125;
    }

    .public-nav.is-open { display: flex; }

    .public-header__inner {
        position: relative;
        flex-wrap: nowrap;
        align-items: center;
    }

    .public-nav__links,
    .public-nav__actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
    }

    .public-nav__actions {
        padding-left: 0;
        border-left: 0;
        border-top: 1px solid rgba(226, 217, 240, 0.95);
        padding-top: 0.75rem;
    }

    .public-nav__link,
    .public-nav__cta {
        width: 100%;
        text-align: center;
    }

    .public-logo__tagline {
        display: none;
    }

    body.public-nav-open {
        overflow: hidden;
    }

    body.user-menu-open {
        overflow: hidden;
    }

    .public-cta-band__layout {
        grid-template-columns: 1fr;
    }

    .public-cta-band__title {
        max-width: none;
    }

    .public-cta-band__title em {
        display: inline;
    }

    .public-cta-band__actions-panel {
        width: 100%;
        max-width: 24rem;
    }

    .public-footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 540px) {
    .public-footer__grid {
        grid-template-columns: 1fr;
    }
}

.public-main {
    padding: clamp(1rem, 2.5vw, 1.35rem) 0 clamp(1.75rem, 4vw, 2.5rem);
    min-height: 50vh;
}

.public-main.public-main--home {
    padding: 0;
    min-height: 0;
}

.public-footer {
    padding: 2rem 0;
    border-top: 1px solid rgba(202, 196, 210, 0.35);
    text-align: center;
    font-size: 0.9rem;
    color: rgba(58, 58, 58, 0.75);
}

.public-footer.public-footer--rich {
    text-align: left;
}

.public-hero {
    margin-bottom: 1rem;
}

.public-hero h1 {
    color: var(--md-purple);
    font-size: clamp(1.45rem, 2.8vw, 1.85rem);
    margin: 0 0 var(--intro-gap);
    font-weight: 600;
    line-height: 1.2;
}

.public-hero p {
    margin: 0;
    max-width: 620px;
    font-size: var(--intro-lead-size);
    line-height: 1.5;
    color: rgba(58, 58, 58, 0.85);
}

.public-card {
    background: var(--md-white);
    border-radius: var(--md-radius);
    box-shadow: var(--md-shadow);
    padding: 1.25rem 1.35rem;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(202, 196, 210, 0.25);
}

.public-card h2, .public-card h3 {
    color: var(--md-purple);
    margin-top: 0;
}

.public-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.therapist-card__photo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--md-lavender);
}

.therapist-card__placeholder {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(97, 70, 125, 0.12);
    color: var(--md-purple);
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    font-weight: 600;
}

.badge {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    margin: 0.15rem 0.2rem 0.15rem 0;
    background: rgba(202, 196, 210, 0.35);
}

.badge-sage { background: rgba(132, 161, 141, 0.25); color: #3d5a45; }
.badge-purple { background: rgba(97, 70, 125, 0.12); color: var(--md-purple); }

.btn {
    display: inline-block;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
}

.btn-primary {
    background: var(--md-sage);
    color: #fff;
}

.btn-ghost {
    background: transparent;
    color: var(--md-purple);
    border: 1px solid rgba(97, 70, 125, 0.25);
}

.btn-sm { padding: 0.4rem 0.75rem; font-size: 0.85rem; }

.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.filter-form {
    display: grid;
    gap: 0.75rem;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.75rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    color: rgba(58, 58, 58, 0.85);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.55rem 0.65rem;
    border: 1px solid rgba(202, 196, 210, 0.8);
    border-radius: 8px;
    font: inherit;
    background: #fff;
}

.field-help {
    font-size: 0.85rem;
    color: rgba(58, 58, 58, 0.7);
    margin: 0.35rem 0 0;
}

.privacy-note {
    background: rgba(132, 161, 141, 0.12);
    border-left: 3px solid var(--md-sage);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.alert {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.alert-error { background: rgba(228, 165, 198, 0.25); }
.alert-success { background: rgba(132, 161, 141, 0.2); }

.steps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.88rem;
}

.steps span {
    color: rgba(58, 58, 58, 0.65);
}

.steps .is-active {
    color: var(--md-purple);
    font-weight: 600;
}

.slot-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.slot-option {
    display: inline-flex;
    align-items: center;
}

.slot-option input { margin-right: 0.35rem; }

.profile-header {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.profile-header img {
    width: 120px;
    height: 120px;
    border-radius: 16px;
    object-fit: cover;
}

@media (max-width: 640px) {
    .profile-header { flex-direction: column; }
}

/* Account area styles moved to account.css */
.checkbox-row { display: block; margin: 0.5rem 0; font-size: 0.92rem; }
.btn-link-nav { background: none; border: none; color: var(--md-purple); cursor: pointer; font-size: 0.95rem; padding: 0; }
.data-table-user { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.data-table-user th, .data-table-user td { padding: 0.65rem; text-align: left; border-bottom: 1px solid rgba(202,196,210,0.35); }
.alert-info { background: rgba(132, 161, 141, 0.15); color: var(--md-charcoal); padding: 0.75rem 1rem; border-radius: var(--md-radius); margin-bottom: 1rem; }
.empty-state { text-align: center; padding: 1.5rem 0; color: rgba(58,58,58,0.8); }
.privacy-note { font-size: 0.92rem; color: rgba(58,58,58,0.85); margin-bottom: 1rem; }

/* Phase 12 — Public website CMS */
.public-section { padding: 2.5rem 0; }
.public-section--alt { background: rgba(248, 245, 242, 0.6); }
.public-hero--home { text-align: center; padding: 3rem 1rem 2rem; max-width: 720px; margin: 0 auto; }
.public-hero--home h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); color: var(--md-purple); margin-bottom: 0.75rem; }
.public-eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; color: var(--md-sage); }
.public-hero__actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin-top: 1.25rem; }
.public-lead { color: rgba(58,58,58,0.85); max-width: 560px; }
.public-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.public-card { background: var(--md-white); border-radius: var(--md-radius); padding: 1.25rem 1.5rem; box-shadow: var(--md-shadow); }
.public-card--sage { background: rgba(132, 161, 141, 0.12); border: 1px solid rgba(132, 161, 141, 0.25); }
.public-card--featured { border-left: 4px solid var(--md-purple); margin-bottom: 1.5rem; }
.booking-account-cta {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-top: 1.25rem;
    padding: 1.15rem 1.25rem;
    border-radius: var(--md-radius);
    background: linear-gradient(135deg, rgba(97, 70, 125, 0.08), rgba(97, 70, 125, 0.03));
    border: 1px solid rgba(97, 70, 125, 0.16);
}
.booking-account-cta__icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    background: var(--md-white);
    color: var(--md-purple);
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: var(--md-shadow);
}
.booking-account-cta__title {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--md-purple);
}
.booking-account-cta__body .field-help { margin-bottom: 0.85rem; }
.public-quote footer { margin-top: 0.75rem; font-size: 0.9rem; color: rgba(58,58,58,0.7); }
.public-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; align-items: center; }
.public-cta-final { text-align: center; padding: 2rem 0; }
.cms-body h2, .cms-body h3 { color: var(--md-purple); }
.cms-body a { color: var(--md-purple); }
.badge { display: inline-block; padding: 0.15rem 0.55rem; border-radius: 999px; font-size: 0.75rem; background: var(--md-off-white); }
details.public-card summary { cursor: pointer; font-weight: 600; color: var(--md-purple); }
