/* Era Soft — professional Soft UI (blue / white / turquoise) */
:root {
    --es-pro-blue: #0284c7;
    --es-pro-blue-2: #0ea5e9;
    --es-pro-teal: #14b8a6;
    --es-pro-navy: #0b1b2e;
}

[x-cloak] { display: none !important; }
body.es-modal-lock { overflow: hidden; }

.es-btn-login {
    display: inline-flex;
    min-height: 2.6rem;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border-radius: 9999px;
    border: 1.5px solid #7dd3fc;
    background: #fff;
    padding: 0.45rem 1.15rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--es-pro-blue);
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.es-btn-login:hover {
    background: #f0f9ff;
    border-color: var(--es-pro-blue-2);
    transform: translateY(-1px);
}

.es-btn-signup {
    display: inline-flex;
    min-height: 2.6rem;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: 0;
    border-radius: 9999px;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 58%, #0d9488 130%);
    padding: 0.45rem 1.2rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 10px 20px rgba(2, 132, 199, 0.28);
    transition: filter 0.2s ease, transform 0.2s ease;
}
.es-btn-signup:hover { filter: brightness(1.06); transform: translateY(-1px); }

.es-dock {
    display: none;
    position: fixed;
    left: 0.85rem;
    top: 50%;
    z-index: 40;
    width: 3.4rem;
    transform: translateY(-50%);
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0.7rem 0.45rem;
    border-radius: 9999px;
    background: linear-gradient(180deg, #0b1b2e 0%, #12324d 100%);
    box-shadow: 0 18px 40px rgba(8, 25, 45, 0.35);
}
.es-dock-item {
    display: flex;
    height: 2.45rem;
    width: 2.45rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    color: #cbd5e1;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.es-dock-item:hover { background: rgba(255,255,255,.1); color: #fff; transform: translateY(-1px); }
.es-dock-item--accent {
    margin-top: 0.3rem;
    background: linear-gradient(135deg, #0ea5e9, #14b8a6);
    color: #fff;
}

.es-fab-stack {
    position: fixed;
    right: 1rem;
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    z-index: 35;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.es-fab {
    display: flex;
    height: 3rem;
    width: 3rem;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 9999px;
    color: #fff;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.2);
    cursor: pointer;
    transition: transform 0.2s ease;
}
.es-fab:hover { transform: translateY(-2px); }
.es-fab-wa { background: #25d366; }
.es-fab-top { background: var(--es-pro-blue); }

@media (min-width: 1024px) {
    .es-dock { display: flex; }
}

.es-auth-overlay {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: none;
    pointer-events: none;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: max(0.65rem, env(safe-area-inset-top)) max(0.65rem, env(safe-area-inset-right)) max(0.65rem, env(safe-area-inset-bottom)) max(0.65rem, env(safe-area-inset-left));
    overflow: hidden;
    background: rgba(8, 25, 45, 0.55);
    backdrop-filter: blur(8px);
}
@media (min-width: 640px) {
    .es-auth-overlay { justify-content: center; }
}
body.es-modal-lock .es-auth-overlay.is-open,
.es-auth-overlay.is-open {
    display: flex !important;
    pointer-events: auto;
}

.es-auth-modal,
.es-auth-modal--page {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    flex: 0 1 auto;
    width: min(920px, 100%);
    max-height: calc(100dvh - 1.5rem);
    max-height: 100%;
    min-height: 0;
    overflow: hidden;
    border-radius: 1.35rem 1.35rem 0.85rem 0.85rem;
    background: #fff;
    box-shadow: 0 30px 70px rgba(8, 25, 45, 0.35);
}
.es-auth-modal--page {
    max-height: none;
    overflow: hidden;
    border-radius: 1.75rem;
}

.es-auth-close {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    z-index: 40;
    display: flex;
    height: 2.75rem;
    width: 2.75rem;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    background: #fff;
    color: #0f172a;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
    cursor: pointer;
}
.es-auth-close:hover { color: #0284c7; background: #f0f9ff; }

.es-auth-split {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    border-radius: inherit;
}

.es-auth-pane {
    position: relative;
    z-index: 2;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 3.4rem 1.25rem 1.5rem;
    background: #fff;
}
.es-auth-modal--page .es-auth-pane { padding-top: 1.75rem; overflow: visible; }

.es-auth-aside { display: none; position: relative; min-height: 0; overflow: hidden; }

.es-auth-title {
    margin: 0;
    font-family: "Space Grotesk", Manrope, sans-serif;
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #0f172a;
}
.es-auth-lead, .es-auth-kicker {
    margin: 0.4rem 0 0;
    color: #64748b;
    font-size: 0.925rem;
}
.es-auth-kicker {
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--es-pro-blue);
}

.es-auth-form { margin-top: 1.2rem; display: grid; gap: 0.9rem; }
.es-auth-field { display: grid; gap: 0.35rem; }
.es-auth-label { font-size: 0.8rem; font-weight: 600; color: #334155; }
.es-auth-input-wrap { position: relative; }

.es-auth-input-icon {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    color: #94a3b8;
    transform: translateY(-50%);
    pointer-events: none;
}

.es-auth-input,
.es-auth-input--plain {
    width: 100%;
    min-height: 2.85rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.9rem;
    background: #f8fafc;
    padding: 0.7rem 0.95rem;
    color: #0f172a;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.es-auth-input { padding-left: 2.45rem; }
.es-auth-input--toggle { padding-right: 2.6rem; }
.es-auth-input:focus,
.es-auth-input--plain:focus {
    border-color: #7dd3fc;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
}

.es-auth-eye {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    display: flex;
    height: 2rem;
    width: 2rem;
    transform: translateY(-50%);
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
}

.es-auth-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.es-auth-check {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.85rem;
    color: #475569;
    cursor: pointer;
}

.es-auth-link,
.es-auth-link-strong,
.es-auth-link,
.es-auth-link-strong {
    border: 0;
    background: none;
    padding: 0;
    font-size: 0.85rem;
    color: #64748b;
    text-decoration: none;
    cursor: pointer;
}
.es-auth-link-strong,
.es-auth-link-strong {
    font-weight: 700;
    color: var(--es-pro-blue);
}
.es-auth-link:hover,
.es-auth-link-strong:hover,
.es-auth-link:hover,
.es-auth-link-strong:hover { color: #0369a1; }

.es-auth-submit {
    display: inline-flex;
    width: 100%;
    min-height: 2.95rem;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 0.95rem;
    text-decoration: none;
    background: linear-gradient(135deg, #38bdf8 0%, #0284c7 52%, #0d9488 120%);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    box-shadow: 0 12px 24px rgba(2, 132, 199, 0.28);
    cursor: pointer;
}
.es-auth-submit:hover { filter: brightness(1.05); }
.es-auth-actions {
    position: sticky;
    bottom: 0;
    z-index: 6;
    margin: 0.15rem -0.15rem 0;
    padding: 0.85rem 0.15rem 0.1rem;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #fff 32%);
}
.es-auth-hint {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.35;
    color: #64748b;
}

.es-auth-switch,
.es-auth-switch {
    margin: 0.1rem 0 0;
    text-align: center;
    font-size: 0.875rem;
    color: #64748b;
}

.es-auth-pills {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}
.es-auth-pill {
    display: flex;
    min-height: 2.5rem;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    border-radius: 0.85rem;
    background: #f8fafc;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
}
.es-auth-pill.is-on,
.es-auth-pill.is-on {
    border-color: #7dd3fc;
    background: #f0f9ff;
    color: var(--es-pro-blue);
}

.es-auth-alert {
    border-radius: 0.9rem;
    border: 1px solid #fecaca;
    background: #fef2f2;
    padding: 0.75rem 0.9rem;
    font-size: 0.85rem;
    color: #991b1b;
}
.es-auth-alert strong { display: block; margin-bottom: 0.35rem; }
.es-auth-alert ul { margin: 0; padding-left: 1.1rem; }

.es-auth-success {
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 0.75rem;
    padding: 1.25rem 0.25rem 0.5rem;
}
.es-auth-success-icon {
    display: flex;
    height: 3.5rem;
    width: 3.5rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: linear-gradient(135deg, #38bdf8 0%, #0d9488 120%);
    color: #fff;
    box-shadow: 0 12px 24px rgba(2, 132, 199, 0.28);
}

.es-auth-status {
    border-radius: 0.85rem;
    border: 1px solid #a7f3d0;
    background: #ecfdf5;
    padding: 0.55rem 0.75rem;
    font-size: 0.85rem;
    color: #065f46;
}

.es-auth-visual {
    position: relative;
    display: flex;
    min-height: 100%;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem 1.75rem 1.75rem;
    color: #fff;
    background:
        radial-gradient(ellipse 80% 60% at 80% 0%, rgba(45, 212, 191, 0.35), transparent 55%),
        linear-gradient(160deg, #0369a1 0%, #0284c7 42%, #0e7490 78%, #14b8a6 120%);
}
.es-auth-visual__art {
    position: relative;
    flex: 1;
    min-height: 11rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.es-auth-orb {
    position: absolute;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.12);
}
.es-auth-orb--a { width: 9rem; height: 9rem; top: 8%; left: 12%; }
.es-auth-orb--b { width: 5.5rem; height: 5.5rem; right: 16%; top: 28%; background: rgba(45, 212, 191, 0.28); }
.es-auth-quote {
    position: absolute;
    left: 1.2rem;
    top: 0.4rem;
    font-size: 4rem;
    line-height: 1;
    opacity: 0.28;
    font-family: Georgia, serif;
}
.es-auth-avatar {
    position: relative;
    z-index: 1;
    width: 7.5rem;
    height: 8.5rem;
    filter: drop-shadow(0 12px 24px rgba(8, 25, 45, 0.25));
}
.es-auth-visual__title {
    position: relative;
    z-index: 1;
    margin: 0;
    font-family: "Space Grotesk", Manrope, sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.es-auth-visual__text {
    position: relative;
    z-index: 1;
    margin: 0.5rem 0 0;
    max-width: 18rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

.es-auth-page {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background:
        radial-gradient(ellipse 70% 50% at 12% 10%, rgba(14, 165, 233, 0.22), transparent 55%),
        radial-gradient(ellipse 50% 40% at 90% 90%, rgba(20, 184, 166, 0.18), transparent 50%),
        #0b3a5c;
}
.es-auth-page > .es-auth-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.es-auth-pop-in,
.es-auth-pop-in { animation: es-auth-pop 0.28s ease both; }
@keyframes es-auth-pop {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to { opacity: 1; transform: none; }
}

@media (min-width: 900px) {
    .es-auth-overlay { justify-content: center; }
    .es-auth-modal { border-radius: 1.75rem; }
    .es-auth-split { flex-direction: row; }
    .es-auth-pane { flex: 1 1 54%; padding: 3.4rem 2rem 1.75rem; }
    .es-auth-aside { display: block; flex: 1 1 46%; }
    .es-auth-modal--page .es-auth-pane { padding: 2.1rem 2rem 1.75rem; }
    .es-auth-overlay .es-auth-close {
        top: 0.85rem;
        right: 0.85rem;
    }
}

.es-hero-wrap { padding-top: 1.25rem; }
.es-hero-stage {
    position: relative;
    overflow: hidden;
    border-radius: 1.75rem;
    background:
        radial-gradient(ellipse 50% 80% at 85% 20%, rgba(45, 212, 191, 0.28), transparent 55%),
        linear-gradient(135deg, #0369a1 0%, #0284c7 48%, #0e7490 100%);
    box-shadow: 0 22px 50px rgba(8, 47, 73, 0.22);
}
.es-hero-stage--3d {
    background:
        radial-gradient(ellipse 48% 70% at 88% 12%, rgba(56, 189, 248, 0.22), transparent 58%),
        radial-gradient(ellipse 40% 46% at 8% 88%, rgba(20, 184, 166, 0.16), transparent 52%),
        linear-gradient(155deg, #061422 0%, #0b2740 46%, #0c4a6e 100%);
    box-shadow: 0 28px 60px rgba(6, 20, 34, 0.38);
}
.es-hero-spotlight {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    width: 280px;
    height: 280px;
    border-radius: 9999px;
    pointer-events: none;
    background: radial-gradient(circle at center, rgba(255,255,255,0.28), rgba(125,211,252,0.14) 42%, transparent 72%);
    filter: blur(22px);
    opacity: 0;
    transition: opacity 0.22s ease;
}
.es-hero-spotlight.is-on { opacity: 1; }
.es-hero-stage-grid {
    position: relative;
    z-index: 3;
    display: grid;
    gap: 1rem;
    padding: 1.5rem;
}
.es-hero-copy { color: #fff; }
.es-hero-copy h1 {
    margin-top: 0.85rem;
    font-size: clamp(1.7rem, 3.4vw, 2.65rem);
    line-height: 1.15;
    background: linear-gradient(180deg, #f8fafc 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.es-hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.1rem 0 0;
    padding: 0;
    list-style: none;
}
.es-hero-pills li {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid rgba(186, 230, 253, 0.22);
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.06);
    padding: 0.28rem 0.7rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #e0f2fe;
}
.es-hero-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1.35rem; }
.es-hero-btn-solid,
.es-hero-btn-ghost {
    display: inline-flex;
    min-height: 2.7rem;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border-radius: 9999px;
    padding: 0.5rem 1.15rem;
    font-size: 0.875rem;
    font-weight: 700;
}
.es-hero-btn-solid {
    background: #fff;
    color: #0c4a6e;
    box-shadow: 0 10px 22px rgba(8, 25, 45, 0.15);
}
.es-hero-btn-ghost {
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    color: #fff;
}
.es-hero-visual {
    position: relative;
    overflow: hidden;
    min-height: 18rem;
    border-radius: 1.25rem;
    background:
        radial-gradient(circle at 30% 20%, rgba(255,255,255,.18), transparent 40%),
        linear-gradient(180deg, rgba(14,165,233,.12), rgba(8,47,73,.28));
}
.es-hero-spline,
.es-hero-visual spline-viewer {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
}
.es-hero-spline::part(container),
.es-hero-visual spline-viewer::part(container) {
    width: 100%;
    height: 100%;
}
.es-hero-loader {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.es-hero-loader .loader {
    width: 2.1rem;
    height: 2.1rem;
    border: 3px solid rgba(186, 230, 253, 0.22);
    border-top-color: #7dd3fc;
    border-radius: 9999px;
    animation: es-hero-spin 0.75s linear infinite;
}
.es-hero-visual-fallback {
    position: absolute;
    inset: 0;
}
.es-hero-visual-fallback img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.42;
    filter: saturate(0.7) contrast(1.05);
}
.es-hero-visual-rings,
.es-hero-visual-rings::before,
.es-hero-visual-rings::after {
    position: absolute;
    border-radius: 9999px;
    border: 1px solid rgba(125, 211, 252, 0.28);
    pointer-events: none;
}
.es-hero-visual-rings {
    inset: 18% 12%;
    box-shadow: inset 0 0 60px rgba(14, 165, 233, 0.18);
}
.es-hero-visual-rings::before {
    content: "";
    inset: 12%;
    border-color: rgba(45, 212, 191, 0.28);
}
.es-hero-visual-rings::after {
    content: "";
    inset: 28%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.22), transparent 68%);
}
.es-hero-visual.is-ready .es-hero-visual-fallback,
.es-hero-visual.is-ready .es-hero-loader {
    opacity: 0;
    pointer-events: none;
}
.es-hero-visual.is-fallback .es-hero-loader { display: none; }
.es-hero-chips {
    display: grid;
    gap: 0.75rem;
}
.es-hero-chip {
    border-radius: 1.15rem;
    border: 1px solid rgba(186, 230, 253, 0.16);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    padding: 0.95rem 1.05rem;
}
.es-hero-chip h3 {
    margin: 0 0 0.65rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #e0f2fe;
}
.es-hero-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.42rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.82rem;
}
.es-hero-price-row:last-child { border-bottom: 0; }
.es-hero-price-row span { color: rgba(224, 242, 254, 0.78); }
.es-hero-price-row strong { color: #7dd3fc; font-weight: 700; }
.es-hero-promo {
    display: block;
    border-radius: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #0ea5e9, #14b8a6);
    color: #fff;
    text-decoration: none;
}
.es-hero-promo strong { display: block; font-size: 0.95rem; }
.es-hero-promo span { display: block; margin-top: 0.3rem; font-size: 0.8rem; opacity: 0.92; }

@keyframes es-hero-spin {
    to { transform: rotate(360deg); }
}

@media (min-width: 1024px) {
    .es-hero-stage-grid {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
        grid-template-rows: auto 1fr;
        align-items: stretch;
        padding: 1.15rem 1.15rem 1.15rem 1.5rem;
        min-height: 34rem;
    }
    .es-hero-copy {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        grid-column: 1;
        grid-row: 1;
        padding: 1.25rem 0.4rem 0.35rem 0.35rem;
    }
    .es-hero-visual {
        grid-column: 2;
        grid-row: 1 / span 2;
        min-height: 100%;
    }
    .es-hero-chips {
        grid-column: 1;
        grid-row: 2;
        align-content: end;
        padding: 0 0.35rem 0.85rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .es-hero-spotlight,
    .es-hero-loader .loader { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
    .es-auth-pop-in { animation: none !important; }
}
