/* Гостевой контур: фон body, CTA-карточка (главная / Login), футер.
   Вынесено из site.css (C2); использует токены foundation + палитры. */

/* Гостевые страницы (главная, Login и т.д.): фон-пейзаж */
body.zen-body.zen-guest {
    background-color: #cbd5e1;
    background-image: url("/images/guest-landscape-bg.png");
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* Гостевая плашка: иконка (по умолчанию — акцент темы) */
.vd-glass-card--guest-cta .vd-guest-cta-icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--vd-accent), var(--vd-accent-strong));
    box-shadow: var(--vd-accent-glow);
}

.vd-glass-card--guest-cta .vd-guest-cta-icon-symbol {
    color: #fff !important;
}

.vd-glass-card--guest-cta .vd-guest-cta-icon-wrap--brand {
    width: auto;
    height: auto;
    padding: 0;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
}

.vd-glass-card--guest-cta .vd-guest-cta-logo {
    width: 72px;
    height: 72px;
    display: block;
}

.vd-glass-card--guest-cta .vd-guest-cta-logo .vd-guest-cta-bubble--outer {
    stroke: #1e293b;
}

.vd-glass-card--guest-cta .vd-guest-cta-logo .vd-guest-cta-bubble--inner {
    stroke: #ffffff;
}

/* Карточка: всё содержимое по центру (как на макете) */
.vd-glass-card--guest-cta.vd-guest-cta-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Ряд бренда: только иконка + TaskVibe, без отдельной «плашки» */
.vd-glass-card--guest-cta .vd-guest-cta-brand-inner {
    width: 100%;
    max-width: 100%;
    gap: 5px;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.vd-glass-card--guest-cta .vd-guest-cta-brand-inner .vd-guest-cta-logo {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .vd-glass-card--guest-cta .vd-guest-cta-brand-inner .vd-guest-cta-logo {
        width: 68px;
        height: 68px;
    }
}

.vd-glass-card--guest-cta .vd-guest-cta-title {
    line-height: 1;
    letter-spacing: -0.02em;
    margin: 0;
    display: inline-flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: baseline;
    justify-content: center;
}

.vd-glass-card--guest-cta .vd-guest-cta-lead {
    width: 100%;
    max-width: 28rem;
}

.vd-glass-card--guest-cta .vd-guest-cta-actions {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* TaskVibe: один шрифт у всех частей заголовка (display-6 / fw-bold с h1) */
.vd-glass-card--guest-cta .vd-guest-cta-title .vd-guest-brand-task,
.vd-glass-card--guest-cta .vd-guest-cta-title .vd-guest-brand-v-cap,
.vd-glass-card--guest-cta .vd-guest-cta-title .vd-guest-brand-i-plain,
.vd-glass-card--guest-cta .vd-guest-cta-title .vd-guest-brand-be {
    font-family: inherit;
    font-weight: inherit;
    font-size: inherit;
    font-style: inherit;
    letter-spacing: inherit;
}

/* «V» и «i» — горизонтальный градиент бренда + тени */
.vd-glass-card--guest-cta .vd-guest-cta-title .vd-guest-brand-v-cap,
.vd-glass-card--guest-cta .vd-guest-cta-title .vd-guest-brand-i-plain {
    background: linear-gradient(90deg, #4a3aff 0%, #6d46f0 52%, #8b23f2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 1px 2px rgba(var(--vd-chrome-shadow-rgb), 0.35))
        drop-shadow(0 2px 8px rgba(var(--vd-chrome-shadow-rgb), 0.18));
    -webkit-font-smoothing: antialiased;
}

/* Гостевая главная: кремовая CTA (токены стёкол из foundation; палитры могут переопределить) */
body.zen-body.zen-guest .vd-glass-card--guest-cta {
    background: linear-gradient(
            152deg,
            var(--vd-glass-guest-stop-1) 0%,
            var(--vd-glass-guest-stop-2) 45%,
            var(--vd-glass-guest-stop-3) 100%
        )
        !important;
    border: 1px solid var(--vd-glass-guest-border) !important;
    backdrop-filter: blur(22px) saturate(1.06);
    -webkit-backdrop-filter: blur(22px) saturate(1.06);
    box-shadow:
        0 22px 56px rgba(var(--vd-chrome-shadow-rgb), 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.52) !important;
    color: #1e293b !important;
}

body.zen-body.zen-guest .vd-glass-card--guest-cta .vd-guest-cta-icon-wrap:not(.vd-guest-cta-icon-wrap--brand) {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--vd-accent) 0%, var(--vd-accent-strong) 100%) !important;
    box-shadow: 0 0 0 3px var(--vd-accent-soft);
}

body.zen-body.zen-guest .vd-glass-card--guest-cta .vd-guest-cta-icon-symbol {
    color: #fff !important;
}

body.zen-body.zen-guest .vd-glass-card--guest-cta .vd-guest-brand-task,
body.zen-body.zen-guest .vd-glass-card--guest-cta .vd-guest-brand-be {
    color: #ffffff !important;
    text-shadow:
        0 1px 2px rgba(var(--vd-chrome-shadow-rgb), 0.35),
        0 2px 8px rgba(var(--vd-chrome-shadow-rgb), 0.18);
}

body.zen-body.zen-guest .vd-glass-card--guest-cta a.vd-guest-cta-login-btn.vd-accent-gradient-bg {
    background: linear-gradient(135deg, var(--vd-accent) 0%, var(--vd-accent-strong) 100%) !important;
    color: #fff !important;
    box-shadow: 0 8px 22px var(--vd-accent-soft-2);
}

body.zen-body.zen-guest .vd-glass-card--guest-cta a.vd-guest-cta-login-btn.vd-accent-gradient-bg:hover,
body.zen-body.zen-guest .vd-glass-card--guest-cta a.vd-guest-cta-login-btn.vd-accent-gradient-bg:focus {
    filter: brightness(1.06);
    box-shadow: 0 10px 26px var(--vd-accent-soft-2);
}

/* Гостевые страницы (главная, Login): футер = то же стекло, что vd-glass-card--guest-cta */
body.zen-body.zen-guest .footer {
    background: linear-gradient(
            152deg,
            var(--vd-glass-guest-stop-1) 0%,
            var(--vd-glass-guest-stop-2) 45%,
            var(--vd-glass-guest-stop-3) 100%
        )
        !important;
    border-top: 1px solid var(--vd-glass-guest-border) !important;
    backdrop-filter: blur(22px) saturate(1.06);
    -webkit-backdrop-filter: blur(22px) saturate(1.06);
    box-shadow:
        0 -14px 44px rgba(var(--vd-chrome-shadow-rgb), 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.52) !important;
    color: rgba(51, 65, 85, 0.92) !important;
}

body.zen-body.zen-guest .footer .vd-chip {
    border-color: rgba(var(--vd-chrome-shadow-rgb), 0.12) !important;
}

body.zen-body.zen-guest .footer .vd-chip-violet,
body.zen-body.zen-guest .footer .vd-chip-blue {
    background: rgba(var(--vd-chrome-shadow-rgb), 0.06) !important;
    color: var(--vd-text) !important;
    border-color: rgba(var(--vd-chrome-shadow-rgb), 0.14) !important;
}

/* ═══ Канонический гостевой welcome (как на скриншоте): перекрывает палитры ═══ */
body.zen-body.zen-guest .vd-glass-card--guest-cta.vd-guest-cta-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
}

body.zen-body.zen-guest .vd-glass-card--guest-cta .vd-guest-cta-brand-inner {
    width: 100% !important;
    justify-content: center !important;
}

body.zen-body.zen-guest .vd-glass-card--guest-cta {
    background: linear-gradient(
            152deg,
            var(--vd-glass-guest-stop-1) 0%,
            var(--vd-glass-guest-stop-2) 45%,
            var(--vd-glass-guest-stop-3) 100%
        )
        !important;
    border: 1px solid var(--vd-glass-guest-border) !important;
    backdrop-filter: blur(22px) saturate(1.06);
    -webkit-backdrop-filter: blur(22px) saturate(1.06);
    box-shadow:
        0 22px 56px rgba(var(--vd-chrome-shadow-rgb), 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.52) !important;
    color: #1e293b !important;
}

body.zen-body.zen-guest .vd-glass-card--guest-cta .vd-guest-cta-brand-inner {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

body.zen-body.zen-guest .vd-glass-card--guest-cta .vd-guest-cta-lead {
    color: rgba(51, 65, 85, 0.92) !important;
}

body.zen-body.zen-guest .vd-glass-card--guest-cta .vd-guest-brand-task,
body.zen-body.zen-guest .vd-glass-card--guest-cta .vd-guest-brand-be {
    color: #ffffff !important;
    -webkit-text-fill-color: #fff !important;
    text-shadow:
        0 1px 2px rgba(var(--vd-chrome-shadow-rgb), 0.35),
        0 2px 8px rgba(var(--vd-chrome-shadow-rgb), 0.18);
}

body.zen-body.zen-guest .vd-glass-card--guest-cta a.vd-guest-cta-login-btn.vd-accent-gradient-bg {
    background: linear-gradient(135deg, #1e50da 0%, #1a46bf 100%) !important;
    border: 1px solid #1a46bf !important;
    color: #fff !important;
    box-shadow: 0 8px 22px rgba(30, 80, 218, 0.32);
}

body.zen-body.zen-guest .vd-glass-card--guest-cta a.vd-guest-cta-login-btn.vd-accent-gradient-bg:hover,
body.zen-body.zen-guest .vd-glass-card--guest-cta a.vd-guest-cta-login-btn.vd-accent-gradient-bg:focus {
    background: linear-gradient(135deg, #1a46bf 0%, #163d9e 100%) !important;
    border-color: #163d9e !important;
    filter: none;
    box-shadow: 0 10px 26px rgba(30, 80, 218, 0.38);
}
