/* DataGurus LLC — elegant product branding */

@keyframes dg-brand-in {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes dg-footer-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Main app: top-left glass lockup ───────────────────────── */
.app-brand {
    position: absolute;
    top: calc(14px + env(safe-area-inset-top, 0px));
    left: calc(14px + env(safe-area-inset-left, 0px));
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 6px 14px 6px 6px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.14);
    text-decoration: none;
    color: inherit;
    max-width: calc(100% - 160px);
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    animation: dg-brand-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.app-brand:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.28);
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.app-brand:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.35);
}

.app-brand-logo {
    height: 34px;
    width: auto;
    max-width: 118px;
    object-fit: contain;
    border-radius: 100px;
    display: block;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.app-brand-divider {
    width: 1px;
    height: 22px;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.35) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    flex-shrink: 0;
}

.app-brand-name {
    font-size: 13px;
    font-weight: 650;
    letter-spacing: -0.015em;
    color: rgba(255, 255, 255, 0.95);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    padding-right: 2px;
}

.app-brand-name span {
    display: block;
    font-size: 9.5px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.52);
    margin-top: 2px;
}

/* ── Auth header logo (login / signup) ─────────────────────── */
.brand-logo {
    height: 44px;
    width: auto;
    max-width: 156px;
    object-fit: contain;
    border-radius: 14px;
    margin: 0 auto 16px;
    display: block;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 8px 24px -6px rgba(15, 23, 42, 0.18);
    animation: dg-brand-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ── Floating corp mark (auth secondary pages) ─────────────── */
.corp-mark {
    position: fixed;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    right: calc(16px + env(safe-area-inset-right, 0px));
    z-index: 20;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 12px 7px 7px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(15, 23, 42, 0.07);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
    text-decoration: none;
    color: #64748b;
    transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    opacity: 0.94;
    animation: dg-footer-in 0.6s 0.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.corp-mark:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
}

.corp-mark img {
    height: 30px;
    width: auto;
    max-width: 102px;
    object-fit: contain;
    border-radius: 100px;
    display: block;
    flex-shrink: 0;
}

.corp-mark-label {
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.25;
    color: #475569;
}

.corp-mark-label small {
    display: block;
    font-size: 9px;
    font-weight: 500;
    color: #94a3b8;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-top: 1px;
}

/* ── Site footer (main app + shared) ───────────────────────── */
.site-footer {
    margin-top: auto;
    padding: 36px 24px calc(28px + env(safe-area-inset-bottom, 0px));
    text-align: center;
    animation: dg-footer-in 0.65s 0.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.site-footer-inner {
    max-width: 420px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.site-footer-rule {
    width: 48px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #cbd5e1, transparent);
    margin-bottom: 4px;
}

.site-footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 6px;
    border-radius: 100px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.site-footer-brand:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.09);
}

.site-footer-brand img {
    height: 28px;
    width: auto;
    max-width: 96px;
    object-fit: contain;
    border-radius: 100px;
    display: block;
}

.site-footer-meta a {
    color: inherit;
    font-weight: 650;
    text-decoration: none;
    transition: color 0.15s ease;
}

.site-footer-meta a:hover {
    color: #166534;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.site-footer-meta {
    font-size: 12px;
    font-weight: 500;
    color: #94a3b8;
    letter-spacing: 0.02em;
    line-height: 1.5;
}

.site-footer-meta strong {
    font-weight: 650;
    color: #64748b;
}

/* Admin nav lockup */
.nav-brand-logo {
    height: 30px;
    width: auto;
    max-width: 104px;
    object-fit: contain;
    border-radius: 100px;
    display: block;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
}

@media (max-width: 520px) {
    .app-brand {
        gap: 8px;
        padding: 5px 10px 5px 5px;
        max-width: calc(100% - 72px);
    }

    .app-brand-logo {
        height: 28px;
        max-width: 96px;
    }

    .app-brand-divider {
        height: 18px;
    }

    .app-brand-name {
        font-size: 12px;
    }

    .corp-mark {
        bottom: calc(10px + env(safe-area-inset-bottom, 0px));
        right: calc(10px + env(safe-area-inset-right, 0px));
        padding: 5px 8px 5px 5px;
        gap: 6px;
    }

    .corp-mark img {
        height: 26px;
        max-width: 84px;
    }

    .corp-mark-label {
        display: none;
    }

    .site-footer {
        padding: 28px 16px calc(22px + env(safe-area-inset-bottom, 0px));
    }
}

@media (max-width: 380px) {
    .app-brand-name,
    .app-brand-divider {
        display: none;
    }

    .app-brand {
        padding: 5px;
        border-radius: 100px;
    }
}
