:root {
    --wm-primary: #32CD32;
    --wm-primary-rgb: 50 205 50;
    --wm-wash: #1E90FF;
    --wm-wash-rgb: 30 144 255;
    --wm-bulk: #FF8C00;
    --wm-bulk-rgb: 255 140 0;
    --wm-iron: #00A86B;
    --wm-iron-rgb: 0 168 107;
    --wm-ink: #111111;
    --wm-ink-rgb: 17 17 17;
    --wm-muted: #647067;
    --wm-muted-rgb: 100 112 103;
    --wm-canvas: #f7fbf7;
    --wm-canvas-rgb: 247 251 247;
    --wm-border: rgba(17, 17, 17, 0.09);
    --wm-surface: #ffffff;
    --wm-header-h: 80px;
}

[x-cloak] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
    background: var(--wm-canvas);
}

body {
    min-height: 100vh;
    background: var(--wm-canvas);
    color: var(--wm-ink);
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

* {
    scrollbar-width: thin;
    scrollbar-color: rgba(17, 17, 17, 0.2) transparent;
}

*::-webkit-scrollbar {
    width: 3px;
    height: 3px;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(17, 17, 17, 0.2);
}

*::-webkit-scrollbar-thumb:hover {
    background: rgba(17, 17, 17, 0.35);
}

a,
button {
    -webkit-tap-highlight-color: transparent;
}

.wm-shell {
    background: var(--wm-canvas);
}

.wm-container {
    width: min(100% - 2.5rem, 1180px);
    margin-inline: auto;
}

.wm-focus:focus-visible {
    outline: 3px solid rgba(50, 205, 50, 0.3);
    outline-offset: 3px;
}

/* ─── Header ─────────────────────────────────────────────────────────────── */

[data-header] {
    border-bottom: 1px solid transparent;
    background: transparent;
    color: #ffffff;
    transition: border-color 0.35s ease,
        box-shadow 0.35s ease,
        background-color 0.35s ease,
        color 0.35s ease;
}

[data-header].is-scrolled,
[data-header].is-menu-open {
    color: var(--wm-ink);
    border-bottom-color: rgba(17, 17, 17, 0.07);
    box-shadow: 0 1px 0 rgba(17, 17, 17, 0.07), 0 8px 32px rgba(17, 17, 17, 0.06);
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
}

.wm-header-inner {
    height: var(--wm-header-h);
    width: min(100% - 2rem, 1520px);
    margin-inline: auto;
}

@media (min-width: 1280px) {
    .wm-header-inner {
        width: min(100% - 5rem, 1520px);
    }
}

.wm-nav-link,
.wm-mobile-link {
    background: transparent;
    color: rgba(17, 17, 17, 0.68);
}

[data-header]:not(.is-scrolled):not(.is-menu-open) .wm-nav-link {
    color: rgba(255, 255, 255, 0.92);
}

[data-header]:not(.is-scrolled):not(.is-menu-open) .wm-menu-toggle {
    color: #ffffff;
}

[data-header].is-scrolled .wm-menu-toggle,
[data-header].is-menu-open .wm-menu-toggle {
    color: var(--wm-ink);
}

.wm-menu-line {
    display: block;
    width: 26px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 250ms ease, opacity 250ms ease;
}

[data-header].is-menu-open .wm-menu-line[data-menu-line="1"] {
    transform: translateY(8px) rotate(45deg);
}

[data-header].is-menu-open .wm-menu-line[data-menu-line="2"] {
    opacity: 0;
}

[data-header].is-menu-open .wm-menu-line[data-menu-line="3"] {
    transform: translateY(-8px) rotate(-45deg);
}

.wm-nav-link:hover,
.wm-nav-link.is-active,
.wm-mobile-link:hover,
.wm-mobile-link.is-active,
[data-header]:not(.is-scrolled):not(.is-menu-open) .wm-nav-link:hover,
[data-header]:not(.is-scrolled):not(.is-menu-open) .wm-nav-link.is-active {
    color: var(--wm-primary);
}

.wm-header-cta {
    flex: 0 0 auto;
    max-width: 16rem;
    white-space: nowrap;
    overflow: hidden;
    transition: opacity 0.42s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.42s cubic-bezier(0.16, 1, 0.3, 1),
        max-width 0.42s cubic-bezier(0.16, 1, 0.3, 1),
        padding 0.42s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.2s ease;
}

[data-header]:not(.is-scrolled) .wm-header-cta {
    max-width: 0;
    padding-left: 0;
    padding-right: 0;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
}

.wm-header-cta:hover {
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.4);
}

main>[data-hero]:first-child {
    margin-top: calc(-1 * var(--wm-header-h));
    padding-top: var(--wm-header-h);
}

.wm-mobile-nav {
    position: fixed;
    top: var(--wm-header-h);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 40;
    display: flex;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(24px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-14px);
    transition: opacity 0.3s ease 0.32s,
        transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) 0.32s;
}

.wm-mobile-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: none;
    transition-delay: 0s;
}

.wm-mobile-nav-inner {
    display: flex;
    width: min(100% - 3rem, 640px);
    height: 100%;
    flex-direction: column;
    margin-inline: auto;
    padding: 2.4rem 0 2rem;
}

.wm-mobile-link {
    display: block;
    border-bottom: 1px solid rgba(17, 17, 17, 0.08);
    gap: 0.75rem;
    padding: 0.86rem 0;
    color: rgba(17, 17, 17, 0.48);
    font-size: clamp(1.55rem, 7.4vw, 3rem);
    font-weight: 900;
    line-height: 1.04;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-18px);
    transition: opacity 0.32s ease,
        transform 0.36s cubic-bezier(0.16, 1, 0.3, 1),
        color 0.18s ease;
}

.wm-mobile-link:hover,
.wm-mobile-link.is-active {
    color: var(--wm-primary);
}

.wm-mobile-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    gap: 0.55rem;
    margin-top: auto;
    min-height: 3.25rem;
    padding: 0 1.35rem;
    border: 0;
    border-radius: 999px;
    background: var(--wm-primary);
    color: #fff;
    box-shadow: 0 4px 18px rgba(var(--wm-primary-rgb), 0.28);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    opacity: 0;
    transform: translateX(-18px);
    transition: opacity 0.32s ease,
        transform 0.36s cubic-bezier(0.16, 1, 0.3, 1),
        background 0.18s ease,
        box-shadow 0.18s ease;
}

.wm-mobile-contact:hover {
    background: #2ab52a;
    box-shadow: 0 6px 24px rgba(var(--wm-primary-rgb), 0.38);
}

.wm-mobile-note {
    margin-top: 1.25rem;
    border-top: 1px solid rgba(17, 17, 17, 0.08);
    padding-top: 1.25rem;
    color: rgba(17, 17, 17, 0.36);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.wm-mobile-nav.is-open [data-mobile-link] {
    opacity: 1;
    transform: translateX(0);
}

.wm-mobile-nav.is-open [data-mobile-link]:nth-child(1) {
    transition-delay: 0.06s;
}

.wm-mobile-nav.is-open [data-mobile-link]:nth-child(2) {
    transition-delay: 0.10s;
}

.wm-mobile-nav.is-open [data-mobile-link]:nth-child(3) {
    transition-delay: 0.14s;
}

.wm-mobile-nav.is-open [data-mobile-link]:nth-child(4) {
    transition-delay: 0.18s;
}

.wm-mobile-nav.is-open [data-mobile-link]:nth-child(5) {
    transition-delay: 0.22s;
}

.wm-mobile-nav.is-open [data-mobile-link]:nth-child(6) {
    transition-delay: 0.26s;
}

.wm-mobile-nav.is-open [data-mobile-link]:nth-child(7) {
    transition-delay: 0.30s;
}

.wm-mobile-nav.is-open [data-mobile-link]:nth-child(8) {
    transition-delay: 0.34s;
}

.wm-mobile-nav:not(.is-open) [data-mobile-link]:nth-child(1) {
    transition-delay: 0.28s;
}

.wm-mobile-nav:not(.is-open) [data-mobile-link]:nth-child(2) {
    transition-delay: 0.24s;
}

.wm-mobile-nav:not(.is-open) [data-mobile-link]:nth-child(3) {
    transition-delay: 0.20s;
}

.wm-mobile-nav:not(.is-open) [data-mobile-link]:nth-child(4) {
    transition-delay: 0.16s;
}

.wm-mobile-nav:not(.is-open) [data-mobile-link]:nth-child(5) {
    transition-delay: 0.12s;
}

.wm-mobile-nav:not(.is-open) [data-mobile-link]:nth-child(6) {
    transition-delay: 0.08s;
}

.wm-mobile-nav:not(.is-open) [data-mobile-link]:nth-child(7) {
    transition-delay: 0.04s;
}

.wm-mobile-nav:not(.is-open) [data-mobile-link]:nth-child(8) {
    transition-delay: 0s;
}

/* ─── Scroll Reveal ───────────────────────────────────────────────────────── */

.wm-reveal,
.wm-hero-animate>* {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.wm-reveal.is-visible,
.wm-hero-animate>*.is-visible {
    opacity: 1;
    transform: none;
}

.wm-reveal-d1 {
    transition-delay: 0.08s;
}

.wm-reveal-d2 {
    transition-delay: 0.18s;
}

.wm-reveal-d3 {
    transition-delay: 0.28s;
}

/* ─── Hero ────────────────────────────────────────────────────────────────── */

.wm-home-hero {
    background: #0b100b;
}

.wm-home-hero img {
    opacity: 1;
}

.wm-hero-shade {
    background:
        linear-gradient(90deg, rgba(5, 8, 5, 0.55) 0%, rgba(5, 8, 5, 0.42) 42%, rgba(5, 8, 5, 0.24) 100%),
        linear-gradient(180deg, rgba(5, 8, 5, 0.18) 0%, rgba(5, 8, 5, 0.1) 48%, rgba(5, 8, 5, 0.5) 100%);
}

.wm-hero-stage {
    width: min(100% - 3rem, 1680px);
    margin-inline: auto;
}

.wm-hero-copy {
    max-width: 980px;
    margin-inline: auto;
    text-align: center;
}

.wm-hero-copy>p {
    margin-inline: auto;
}

.wm-hero-headline {
    font-size: clamp(3.2rem, 5.25vw, 6rem);
    font-weight: 900;
    line-height: 1.06;
    letter-spacing: 0;
}

.wm-hero-headline span {
    display: block;
    white-space: nowrap;
}

.wm-hero-animate>* {
    transition-duration: 0.9s;
}

.wm-hero-animate>*:nth-child(1) {
    transition-delay: 0.15s;
}

.wm-hero-animate>*:nth-child(2) {
    transition-delay: 0.30s;
}

.wm-hero-animate>*:nth-child(3) {
    transition-delay: 0.45s;
}

.wm-hero-animate>*:nth-child(4) {
    transition-delay: 0.60s;
}

@keyframes wm-hero-enter {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.wm-scroll-caret {
    animation: wm-scroll-caret 1.8s ease-in-out infinite;
}

@keyframes wm-scroll-caret {

    0%,
    100% {
        opacity: 0.3;
        transform: translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateY(6px);
    }
}

/* ─── Hero responsive ────────────────────────────────────────────────────── */

@media (max-width: 720px) {
    .wm-hero-stage {
        width: min(100% - 2rem, 1680px);
    }

    .wm-hero-copy {
        max-width: 100%;
    }

    .wm-hero-headline {
        font-size: clamp(2.85rem, 14vw, 4.5rem);
    }

    .wm-hero-headline span {
        white-space: normal;
    }
}

@media (min-width: 1280px) {
    .wm-hero-stage {
        width: min(100% - 8.75rem, 1680px);
    }
}

/* ─── How it Works (sticky scroll) ──────────────────────────────────────── */

#how-it-works [class*="lg:sticky"]>span {
    font-size: clamp(6.25rem, 8vw, 9rem);
}

#how-it-works [class*="lg:sticky"]>h3 {
    font-size: clamp(2.35rem, 3vw, 3.15rem);
}

#how-it-works [class*="lg:sticky"]>p {
    max-width: 30rem;
    font-size: 1.12rem;
    line-height: 1.8;
}

#how-it-works .divide-y>.flex {
    gap: 1.75rem;
    padding-top: 3.25rem;
    padding-bottom: 3.25rem;
}

#how-it-works .divide-y>.flex>span {
    width: 4rem;
    height: 4rem;
    border-radius: 1.25rem;
}

#how-it-works .divide-y>.flex>span svg {
    width: 1.75rem;
    height: 1.75rem;
}

#how-it-works .divide-y>.flex h4 {
    font-size: clamp(1.25rem, 1.55vw, 1.65rem);
    font-weight: 800;
    line-height: 1.2;
}

#how-it-works .divide-y>.flex p {
    margin-top: 0.85rem;
    font-size: clamp(1.03rem, 1.1vw, 1.18rem);
    line-height: 1.8;
}

.wm-step-image {
    border-radius: 5px;
}

.wm-step-image img {
    border-radius: inherit;
}

#how-it-works .how-cta a {
    font-size: 1rem;
}

#how-it-works .how-cta a:first-child {
    padding: 1rem 1.65rem;
}

@media (min-width: 1024px) {
    #how-it-works [class*="lg:sticky"] {
        top: var(--wm-header-h);
        display: flex;
        height: calc(100vh - var(--wm-header-h));
        min-height: 0;
        flex-direction: column;
        justify-content: center;
        padding-top: 0;
        padding-bottom: 0;
    }

    #how-it-works [data-how-cta-trigger] {
        margin-bottom: clamp(7rem, 13vh, 11rem);
    }
}

@media (max-width: 640px) {
    #how-it-works [class*="lg:sticky"]>span {
        font-size: 5.75rem;
    }

    #how-it-works [class*="lg:sticky"]>h3 {
        font-size: 2.15rem;
    }

    #how-it-works .divide-y>.flex {
        gap: 1.2rem;
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    #how-it-works .divide-y>.flex>span {
        width: 3.35rem;
        height: 3.35rem;
    }
}

.how-cta {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.how-cta.is-visible {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

@media (max-width: 1023px) {
    .how-cta {
        opacity: 1 !important;
        transform: none !important;
        pointer-events: auto !important;
    }
}

/* ─── Plan Cards ─────────────────────────────────────────────────────────── */

.wm-plan-card {
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.22s ease;
}

.wm-plan-card:hover {
    transform: translateY(-4px);
}

/* Back to top button */

#wm-back-top {
    position: fixed;
    bottom: 1.75rem;
    right: 1.75rem;
    z-index: 35;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    padding: 0;
    border-radius: 999px;
    border: 0;
    background: var(--wm-primary);
    color: white;
    box-shadow: 0 4px 20px rgba(var(--wm-primary-rgb), 0.35);
    opacity: 0;
    transform: scale(0.9) translateY(12px);
    pointer-events: none;
    cursor: pointer;
    transition: opacity 0.35s ease,
        transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.2s ease;
}

#wm-back-top.is-visible {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
}

#wm-back-top:hover {
    box-shadow: 0 6px 28px rgba(var(--wm-primary-rgb), 0.52);
    transform: scale(1.04) translateY(-1px);
}

#wm-back-top>* {
    pointer-events: none;
}

@media (max-width: 767px) {
    #wm-back-top {
        bottom: 1.25rem;
        right: 1.25rem;
        width: 3rem;
        height: 3rem;
    }
}

/* ─── Section label ──────────────────────────────────────────────────────── */

.wm-section-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--wm-primary);
}

/* ─── Orb decorations ────────────────────────────────────────────────────── */

.wm-orb {
    border-radius: 999px;
    filter: blur(80px);
    pointer-events: none;
    position: absolute;
}

@media (max-width: 380px) {
    .wm-container {
        width: min(100% - 1.5rem, 1180px);
    }
}

@media (min-width: 1024px) {
    :root {
        --wm-header-h: 68px;
    }
}

/* ─── Chat Window ────────────────────────────────────────────────────────── */

#wm-chat {
    position: fixed;
    inset: 0;
    z-index: 60;
    pointer-events: none;
}

#wm-chat[data-chat-open="1"] {
    pointer-events: none;
}

#wm-chat-backdrop {
    display: none;
}

@media (max-width: 767px) {
    #wm-chat-backdrop {
        display: block;
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0);
        transition: background 0.38s ease;
        pointer-events: none;
    }

    #wm-chat[data-chat-open="1"] {
        pointer-events: auto;
    }

    #wm-chat[data-chat-open="1"] #wm-chat-backdrop {
        background: rgba(0, 0, 0, 0.46);
        pointer-events: auto;
    }
}

#wm-chat-panel {
    position: fixed;
    background: #fff;
    display: flex;
    flex-direction: column;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.38s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.44s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0.38s;
}

/* Desktop: floating card bottom-right */
@media (min-width: 768px) {
    #wm-chat-panel {
        bottom: 1.75rem;
        right: 1.75rem;
        width: 400px;
        max-height: min(560px, calc(100vh - 3.5rem));
        border-radius: 1.375rem;
        box-shadow:
            0 0 0 1px rgba(17, 17, 17, 0.06),
            0 24px 80px rgba(17, 17, 17, 0.18),
            0 8px 24px rgba(17, 17, 17, 0.08);
        transform: translateY(20px) scale(0.96);
        transform-origin: bottom right;
        overflow: hidden;
    }
}

/* Mobile: full-screen slide-up */
@media (max-width: 767px) {
    #wm-chat-panel {
        inset: 0;
        border-radius: 0;
        transform: translateY(100%);
        overflow-x: hidden;
        overflow-y: auto;
    }
}

#wm-chat[data-chat-open="1"] #wm-chat-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
}

/* ── Chat Header ── */
.wm-chat-header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1rem 0.875rem 1.125rem;
    background: var(--wm-primary);
    color: #fff;
}

@media (max-width: 767px) {
    .wm-chat-header {
        padding-top: calc(1rem + env(safe-area-inset-top, 0px));
    }
}

.wm-chat-header-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.wm-chat-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wm-chat-header-name {
    font-size: 0.925rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wm-chat-header-status {
    margin-top: 0.1rem;
    font-size: 0.71rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.82);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}

.wm-chat-header-status::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #b7fbb7;
    flex-shrink: 0;
}

.wm-chat-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.125rem;
    height: 2.125rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    flex-shrink: 0;
    transition: background 0.18s ease;
}

.wm-chat-close:hover {
    background: rgba(255, 255, 255, 0.32);
}

/* ── Progress bar ── */
.wm-chat-progress {
    flex-shrink: 0;
    height: 3px;
    background: rgba(17, 17, 17, 0.07);
    position: relative;
}

.wm-chat-progress-bar {
    position: absolute;
    inset: 0 auto 0 0;
    background: var(--wm-primary);
    border-radius: 0 999px 999px 0;
    transition: width 0.44s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Steps body ── */
.wm-chat-body {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    position: relative;
}

.wm-chat-steps-track {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.44s cubic-bezier(0.16, 1, 0.3, 1);
}

.wm-chat-step {
    width: 33.333%;
    flex-shrink: 0;
    padding: 1.5rem 1.25rem 1.25rem;
    overflow-y: auto;
}

@media (max-width: 767px) {
    .wm-chat-body {
        flex: 0 0 auto;
        overflow: hidden;
    }

    .wm-chat-steps-track {
        height: auto;
    }

    .wm-chat-step {
        padding: 1.75rem 1.5rem;
        padding-bottom: calc(1.75rem + env(safe-area-inset-bottom, 0px));
        overflow-y: visible;
    }
}

/* ── Greeting ── */
.wm-chat-wave {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 0.625rem;
    display: block;
}

.wm-chat-greeting-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--wm-ink);
    line-height: 1.3;
    margin-bottom: 0.3rem;
}

.wm-chat-greeting-sub {
    font-size: 0.82rem;
    color: var(--wm-muted);
    line-height: 1.55;
    margin-bottom: 1.5rem;
}

/* ── Form fields ── */
.wm-chat-field {
    margin-bottom: 0.875rem;
}

.wm-chat-field label {
    display: block;
    font-size: 0.77rem;
    font-weight: 700;
    color: var(--wm-ink);
    margin-bottom: 0.375rem;
    letter-spacing: 0.01em;
}

.wm-chat-field input,
.wm-chat-field textarea {
    display: block;
    width: 100%;
    padding: 0.7rem 0.875rem;
    border: 1.5px solid rgba(17, 17, 17, 0.11);
    border-radius: 0.625rem;
    background: var(--wm-canvas);
    font-size: 0.875rem;
    font-family: inherit;
    color: var(--wm-ink);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.wm-chat-field input::placeholder,
.wm-chat-field textarea::placeholder {
    color: rgba(17, 17, 17, 0.3);
}

.wm-chat-field input:focus,
.wm-chat-field textarea:focus {
    border-color: var(--wm-primary);
    background: #fff;
    box-shadow: 0 0 0 3.5px rgba(var(--wm-primary-rgb), 0.13);
}

.wm-chat-field input.is-error,
.wm-chat-field textarea.is-error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.wm-chat-field textarea {
    resize: none;
    min-height: 7.5rem;
    line-height: 1.6;
}

/* Chat phone field */
.ap-pf-wrap {
    position: relative;
    display: flex;
    width: 100%;
    align-items: center;
    overflow: hidden;
    border: 1.5px solid rgba(17, 17, 17, 0.11);
    border-radius: 0.625rem;
    background: var(--wm-canvas);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.wm-chat-field .ap-pf-wrap {
    width: 100%;
}

.ap-pf-wrap:focus-within {
    border-color: var(--wm-primary);
    background: #fff;
    box-shadow: 0 0 0 3.5px rgba(var(--wm-primary-rgb), 0.13);
}

.ap-pf-wrap.is-error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.ap-pf-country-btn {
    display: inline-flex;
    height: 2.875rem;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.45rem;
    border: 0;
    background: transparent;
    padding: 0 0.7rem;
    color: var(--wm-ink);
    cursor: pointer;
    font-family: inherit;
}

.ap-pf-flag,
.ap-pf-item-flag,
.ap-pf-item-flag-svg {
    display: inline-flex;
    width: 1.35rem;
    height: 0.95rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 0.18rem;
    background: rgba(17, 17, 17, 0.04);
    box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.08);
}

.ap-pf-flag-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ap-pf-code {
    font-size: 0.82rem;
    font-weight: 800;
}

.ap-pf-chev {
    width: 0.8rem;
    height: 0.8rem;
    color: rgba(17, 17, 17, 0.45);
    transition: transform 0.18s ease;
}

.ap-pf-chev.open {
    transform: rotate(180deg);
}

.ap-pf-divider {
    width: 1px;
    height: 1.45rem;
    flex: 0 0 auto;
    background: rgba(17, 17, 17, 0.1);
}

.wm-chat-field .ap-pf-number,
.wm-chat-field .ap-pf-number:focus,
.wm-chat-field .ap-pf-number.is-error {
    height: 2.875rem;
    min-width: 0;
    flex: 1 1 auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0 0.875rem;
}

.ap-pf-drop {
    position: fixed;
    z-index: 80;
    display: none;
    max-height: min(22rem, calc(100vh - 1rem));
    overflow: hidden;
    border: 1px solid rgba(17, 17, 17, 0.1);
    border-radius: 0.875rem;
    background: #fff;
    box-shadow: 0 18px 54px rgba(17, 17, 17, 0.16);
}

.ap-pf-drop.open {
    display: block;
}

.ap-pf-search-wrap {
    position: relative;
    padding: 0.7rem;
    border-bottom: 1px solid rgba(17, 17, 17, 0.07);
}

.ap-pf-search-ico {
    position: absolute;
    left: 1.15rem;
    top: 50%;
    width: 0.95rem;
    height: 0.95rem;
    transform: translateY(-50%);
    color: rgba(17, 17, 17, 0.42);
    pointer-events: none;
}

.ap-pf-search,
.wm-chat-field .ap-pf-search {
    width: 100%;
    height: 2.75rem;
    border: 1px solid rgba(17, 17, 17, 0.1);
    border-radius: 0.65rem;
    padding: 0.65rem 0.85rem 0.65rem 2.65rem;
    font-size: 0.9rem;
    line-height: 1.25;
    outline: none;
}

.ap-pf-search:focus,
.wm-chat-field .ap-pf-search:focus {
    border-color: var(--wm-primary);
    box-shadow: 0 0 0 3px rgba(var(--wm-primary-rgb), 0.12);
}

.ap-pf-list {
    max-height: 16rem;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0.35rem;
}

.ap-pf-item {
    display: flex;
    width: 100%;
    min-width: 0;
    cursor: pointer;
    align-items: center;
    gap: 0.65rem;
    border-radius: 0.65rem;
    padding: 0.58rem 0.65rem;
    font-size: 0.84rem;
    color: var(--wm-ink);
    text-align: left;
    border: 0;
    background: transparent;
    font-family: inherit;
}

.ap-pf-item:hover,
.ap-pf-item.ap-pf-sel {
    background: rgba(var(--wm-primary-rgb), 0.1);
}

.ap-pf-item-name {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ap-pf-item-code {
    flex: 0 0 auto;
    color: var(--wm-muted);
    font-weight: 800;
}

.wm-chat-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.875rem 1.5rem;
    margin-top: 0.25rem;
    border-radius: 0.75rem;
    background: var(--wm-primary);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: inherit;
    letter-spacing: 0.01em;
    box-shadow: 0 2px 14px rgba(var(--wm-primary-rgb), 0.32);
    transition:
        transform 0.16s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.18s ease,
        opacity 0.18s ease;
}

.wm-chat-submit:hover {
    box-shadow: 0 4px 22px rgba(var(--wm-primary-rgb), 0.48);
    transform: translateY(-1px);
}

.wm-chat-submit:active {
    transform: scale(0.98);
}

/* ── Back button ── */
.wm-chat-back {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.775rem;
    font-weight: 700;
    color: var(--wm-muted);
    font-family: inherit;
    margin-bottom: 0.875rem;
    transition: color 0.18s ease;
}

.wm-chat-back:hover {
    color: var(--wm-primary);
}

/* ── Footer / step dots ── */
.wm-chat-footer {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.875rem 1.25rem;
    border-top: 1px solid rgba(17, 17, 17, 0.06);
}

.wm-chat-dot {
    height: 5px;
    width: 5px;
    border-radius: 999px;
    background: rgba(17, 17, 17, 0.14);
    transition:
        width 0.32s cubic-bezier(0.16, 1, 0.3, 1),
        background 0.32s ease;
}

.wm-chat-dot.is-active {
    width: 18px;
    background: var(--wm-primary);
}

/* ── Success step ── */
.wm-chat-success-step {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 240px;
}

.wm-chat-success {
    text-align: center;
    padding: 1.5rem 0;
}

.wm-chat-success-icon {
    width: 4.25rem;
    height: 4.25rem;
    border-radius: 50%;
    background: rgba(var(--wm-primary-rgb), 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    animation: wm-chat-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes wm-chat-pop {
    from {
        transform: scale(0.4);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.wm-chat-success-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--wm-ink);
    margin-bottom: 0.4rem;
}

.wm-chat-success-sub {
    font-size: 0.82rem;
    color: var(--wm-muted);
    line-height: 1.55;
    max-width: 22ch;
    margin: 0 auto;
}
