/* AlViS customer zone — same design language as the public site */

:root {
    --blue: #0071bc;
    --blue-dark: #045a96;
    --blue-deep: #06284a;
    --navy: #071525;
    --ink: #16324f;
    --muted: #5c738a;
    --line: #d7e4f0;
    --paper: #f4f8fc;
    --white: #ffffff;
    --cyan: #3db5ff;
    --shadow: 0 18px 50px rgba(7, 32, 64, 0.08);
    --header: 76px;
    --font: "Source Sans 3", "Segoe UI", sans-serif;
    --display: "Manrope", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.zone {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    color: var(--ink);
    background:
        radial-gradient(900px 420px at 100% -10%, rgba(0, 113, 188, 0.08), transparent 60%),
        var(--paper);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.6;
}

img {
    max-width: 100%;
    border: 0;
}

a {
    color: var(--blue);
    text-decoration: none;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 100;
    padding: 0.5rem 0.8rem;
    background: var(--blue);
    color: white;
}

.skip-link:focus {
    top: 0.5rem;
}

.zone-main {
    flex: 1 0 auto;
    padding-bottom: 2.5rem;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 113, 188, 0.12);
    box-shadow: 0 8px 30px rgba(7, 32, 64, 0.04);
}

.header-inner {
    max-width: 1240px;
    min-height: var(--header);
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.brand {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.brand img {
    height: 46px;
    width: auto;
}

.zone-nav {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    margin-left: auto;
}

.zone-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 0.75rem;
    border-radius: 999px;
    color: var(--blue-deep);
    font-family: var(--display);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.zone-nav a:hover,
.zone-nav a.is-current {
    background: rgba(0, 113, 188, 0.1);
    color: var(--blue-dark);
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 0 0 auto;
}

.lang {
    display: inline-flex;
    padding: 3px;
    border-radius: 999px;
    background: #e7f1f9;
}

.lang-link {
    min-width: 2.3rem;
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    color: var(--blue-deep);
    font-family: var(--display);
    font-size: 0.78rem;
    font-weight: 800;
    text-align: center;
}

.lang-link.is-current {
    background: var(--blue);
    color: white;
}

.zone-user {
    max-width: 9rem;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    margin-left: auto;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: white;
    padding: 0;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: var(--blue-deep);
    border-radius: 2px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.4rem 0.9rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-family: var(--display);
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}

.btn-line {
    background: white;
    color: var(--blue-dark);
    border-color: #b9d6ea;
}

.btn-line:hover {
    border-color: var(--blue);
    color: var(--blue);
}

.btn-zone {
    background: var(--blue-deep);
    color: white;
}

.btn-zone:hover {
    background: var(--blue);
    color: white;
}

/* Hero */

.zone-hero {
    color: white;
    background:
        radial-gradient(700px 220px at 90% 0%, rgba(61, 181, 255, 0.35), transparent 60%),
        linear-gradient(115deg, var(--blue-deep), #0a4f86 58%, var(--blue));
}

.zone-hero-inner {
    width: min(1180px, calc(100% - 2.5rem));
    margin: 0 auto;
    padding: 1.45rem 0 1.3rem;
}

.eyebrow {
    margin: 0 0 0.15rem;
    color: #9fd4ff;
    font-family: var(--display);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.zone-hero h1 {
    margin: 0;
    color: white;
    font-family: var(--display);
    font-size: clamp(1.7rem, 3vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

/* Content frame */

.every_frame {
    width: min(1180px, calc(100% - 2.5rem));
    margin: 1.4rem auto 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.15rem;
    align-items: start;
}

.every_frame:has(.prevZ img, .side_navigation2 img, .side_navigation2 a) {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
}

.every,
.every_text,
.side_navigation2,
.billboard {
    width: auto;
    float: none;
    overflow: visible;
}

.every {
    min-width: 0;
    padding: 0.35rem 1.35rem 1.25rem;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.every_text {
    min-width: 0;
    overflow-x: auto;
    text-align: left;
}

.side_navigation2:not(:has(img, a, table)) {
    display: none;
}

.every_frame h1,
.every_text h1 {
    margin: 0.85rem 0 0.45rem;
    color: var(--blue-deep);
    font-family: var(--display);
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    border: 0;
}

.every_frame h2,
.every_text h2,
h2.textTitle {
    margin: 1.15rem 0 0.45rem;
    color: var(--blue-deep);
    font-family: var(--display);
    font-size: 1.2rem;
    font-weight: 800;
    border: 0;
}

.every_frame h3,
.every_text h3 {
    margin: 1.15rem 0 0.25rem;
    color: var(--blue);
    font-family: var(--display);
    font-size: 1.05rem;
    font-weight: 800;
}

.every_text p,
.every_text li {
    color: var(--ink);
}

.every_text a:hover {
    color: var(--blue-dark);
}

.every_text > ul {
    margin: 0.6rem 0 1rem;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.45rem;
}

.every_text li:has(> a) > a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0.65rem 0.95rem;
    background: var(--paper);
    border: 1px solid rgba(0, 113, 188, 0.1);
    border-radius: 12px;
    color: var(--blue-deep);
    font-size: 1.02rem !important;
    font-weight: 700;
}

.every_text li[style]:has(> a) > a {
    margin-left: 1.1rem;
    background: white;
    font-weight: 600;
}

.every_text li:has(> a) > a:hover {
    border-color: var(--blue);
    background: white;
    box-shadow: var(--shadow);
}

.every_text li:not(:has(> a)) {
    margin-left: 1.1rem;
}

/* Downloads table */

table.list {
    width: 100%;
    margin: 0.4rem 0 1rem;
    border: 0;
    border-collapse: collapse;
    background: white;
    font-size: 0.95rem;
}

table.list th {
    padding: 0.7rem 0.75rem;
    background: var(--blue);
    color: white;
    font-weight: 700;
    text-align: left;
    border: 0;
    white-space: nowrap;
}

table.list td {
    padding: 0.65rem 0.75rem;
    border: 0;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
    background: #fff;
}

table.list td.alt {
    background: #f7fbfe;
}

table.list a {
    font-weight: 800;
}

input.button,
table.form input.button,
.customer-login button {
    min-height: 46px;
    padding: 0 1.15rem;
    border: 0;
    border-radius: 12px;
    background: var(--blue);
    color: white;
    font-family: var(--display);
    font-weight: 800;
    cursor: pointer;
}

input.button:hover,
.customer-login button:hover {
    background: var(--blue-dark);
}

/* Sign-in card inside the zone */

.every_frame:has(table.form):not(:has(h1, h2, ul, table.list)) {
    width: min(520px, calc(100% - 2.5rem));
}

table.form {
    width: 100%;
    margin: 0.8rem 0 0.4rem;
    border: 0;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--paper);
    border-radius: 16px;
    overflow: hidden;
}

table.form th {
    padding: 1rem 1rem 0.2rem;
    background: transparent;
    color: var(--blue-deep);
    font-family: var(--display);
    font-size: 1.25rem;
    font-weight: 800;
    text-align: left;
    border: 0;
}

table.form td {
    padding: 0.35rem 1rem;
    color: var(--muted);
    text-align: left;
}

table.form tr:last-child td {
    padding-bottom: 1rem;
}

table.form input[type="text"],
table.form input[type="password"],
.customer-login input {
    width: 100%;
    height: 46px;
    padding: 0 0.85rem;
    border: 1px solid #c9dced;
    border-radius: 12px;
    background: white;
    color: var(--ink);
    font-size: 1rem;
}

table.form input:focus,
.customer-login input:focus {
    outline: 2px solid rgba(0, 113, 188, 0.25);
    border-color: var(--blue);
}

.customer-login {
    display: grid;
    gap: 0.45rem;
}

.customer-login label {
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 700;
}

.customer-login label[style] {
    color: #b42318 !important;
}

p.warning {
    margin: 0.8rem 0;
    padding: 0.75rem 0.9rem;
    color: #b42318;
    background: #fff1f0;
    border-radius: 12px;
}

/* Case-study column and webinars */

.prevZ,
.side_navigation2:has(img, a) {
    padding: 0.75rem;
    background: white;
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.prevZ table,
.prevZ tbody,
.prevZ tr,
.prevZ td {
    display: block;
    width: 100%;
}

.prevZ img,
img.nahlad,
img.nahladW,
table.t2 img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 210px;
    margin: 0 0 0.7rem;
    padding: 0.35rem;
    object-fit: contain;
    background: #f7fbfe;
    border: 0;
    border-radius: 12px;
    float: none;
}

.prevZ a:hover img,
table.t2 a:hover img {
    box-shadow: 0 10px 24px rgba(0, 113, 188, 0.25);
}

table.t2 {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.85rem;
}

table.t2 td {
    padding: 0.75rem;
    background: var(--paper);
    vertical-align: middle;
}

table.t2 td:first-child {
    width: 240px;
    border-radius: 14px 0 0 14px;
}

table.t2 td.webinar {
    border-radius: 0 14px 14px 0;
    color: var(--ink);
    font-weight: 600;
}

table.t2 img {
    max-height: 140px;
    margin: 0;
    padding: 0;
    background: transparent;
}

/* Footer */

.site-footer {
    color: rgba(255, 255, 255, 0.86);
    background: var(--navy);
}

.footer-inner {
    width: min(1180px, calc(100% - 2.5rem));
    margin: 0 auto;
    padding: 2.2rem 0 1.2rem;
    display: grid;
    grid-template-columns: 1.3fr 1fr 0.8fr;
    gap: 1.5rem;
}

.site-footer h2 {
    margin: 0 0 0.45rem;
    color: white;
    font-family: var(--display);
    font-size: 1.05rem;
}

.site-footer p,
.site-footer a {
    color: rgba(255, 255, 255, 0.78);
}

.site-footer a:hover {
    color: white;
}

.footer-brand > img {
    height: 42px;
    width: auto;
    margin-bottom: 0.7rem;
    padding: 0.35rem 0.55rem;
    background: white;
    border-radius: 10px;
}

.partner-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.8rem;
}

.partner-row img {
    height: 46px;
    width: auto;
    padding: 0.25rem 0.4rem;
    background: white;
    border-radius: 8px;
}

.legal {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.8rem 0 1rem;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.85rem;
    text-align: center;
}

/* Standalone sign-in */

.zone-gate .gate {
    flex: 1;
    display: grid;
    place-items: center;
    padding: 2rem 1rem 2.5rem;
}

.gate-card {
    width: min(440px, 100%);
    padding: 1.4rem 1.35rem 1.2rem;
    background: white;
    border-radius: 22px;
    box-shadow: 0 30px 80px rgba(7, 32, 64, 0.12);
}

.gate-brand {
    display: flex;
    justify-content: center;
    margin-bottom: 0.9rem;
}

.gate-brand img {
    height: 52px;
    width: auto;
}

.gate-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 0.35rem;
}

.gate-card h1 {
    margin: 0 0 0.35rem;
    color: var(--blue-deep);
    font-family: var(--display);
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.zone-lead {
    margin: 0 0 1rem;
    color: var(--muted);
}

.gate-back {
    display: inline-flex;
    margin-top: 0.85rem;
    color: var(--blue-dark);
    font-weight: 700;
}

.customer-login button {
    width: 100%;
    margin-top: 0.25rem;
}

@media (max-width: 1100px) {
    .nav-toggle {
        display: none;
    }

    .header-inner {
        flex-wrap: wrap;
        height: auto;
        padding-top: 0.55rem;
        padding-bottom: 0.45rem;
    }

    .header-tools {
        margin-left: auto;
    }

    .zone-nav {
        position: static;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        order: 5;
        flex: 1 0 100%;
        margin: 0.15rem 0 0;
        padding: 0;
        overflow: visible;
        background: transparent;
    }
}

@media (max-width: 900px) {
    .every_frame,
    .every_frame:has(.prevZ img, .side_navigation2 img, .side_navigation2 a) {
        grid-template-columns: 1fr;
    }

    table.t2,
    table.t2 tbody,
    table.t2 tr,
    table.t2 td {
        display: block;
        width: auto;
    }

    table.t2 td:first-child,
    table.t2 td.webinar {
        border-radius: 14px;
    }

    table.t2 td:first-child {
        padding-bottom: 0;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .site-header {
        height: auto;
    }

    .header-inner {
        display: flex;
        align-items: center;
        gap: 0.45rem 0.7rem;
        min-height: 64px;
        padding: 0.5rem 0.75rem 0.4rem;
    }

    .brand img {
        height: 34px;
    }

    .zone-user {
        display: none;
    }

    .every {
        padding: 0.2rem 0.9rem 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}
