:root {
    --color-primary: #708090;
    --color-secondary: #a9a9a9;
    --color-accent: #4169e1;
    --color-bg: #f5f5f5;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-border: #e0e0e0;
    --zz-header-h: 88px;
    --zz-page-w: 1120px;
    --space-lg: 24px;
    --zz-font-head: "Manrope", "Segoe UI", sans-serif;
    --zz-font-body: "Atkinson Hyperlegible", "Segoe UI", sans-serif;
}

@media (max-width: 1100px) {
    :root { --zz-header-h: 64px; }
}

*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body {
    margin: 0;
    max-width: 100%;
    overflow-x: hidden;
}

html { scroll-padding-top: var(--zz-header-h); }

body {
    padding-top: var(--zz-header-h);
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--zz-font-body);
    font-size: 1.05rem;
    line-height: 1.6;
}

img, video, iframe {
    max-width: 100%;
    height: auto;
}

a { color: var(--color-accent); }

h1, h2, h3 {
    font-family: var(--zz-font-head);
    line-height: 1.2;
    margin: 0 0 0.6em;
}

.zzo-container {
    width: min(var(--zz-page-w), 100%);
    margin: 0 auto;
    padding: 0 20px;
}

.zzo-measure { max-width: 760px; }

.zzo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.zzo-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 32px;
    align-items: start;
    padding: 36px 0 12px;
}

.zzo-aside {
    background: #ffffff;
    padding: 18px 16px 8px;
    clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}

.zzo-aside h2 { font-size: 1.15rem; }

.zzo-aside ul { padding-left: 1.1rem; }

.zzc-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    min-height: var(--zz-header-h);
    background: #333333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.zzc-header a,
.zzc-header a:visited { color: #f5f5f5; }

.zzc-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: var(--zz-header-h);
}

.zzc-logo { flex: 0 0 auto; line-height: 0; }

.zzc-logo img {
    width: 180px;
    height: auto;
    display: block;
}

.zzc-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    flex-wrap: nowrap;
}

.zzc-navlink {
    text-decoration: none;
    font-family: var(--zz-font-head);
    font-size: 0.92rem;
    font-weight: 700;
    padding: 8px 8px;
    white-space: nowrap;
    color: #f5f5f5;
}

.zzc-navlink.zzu-on {
    color: #f5f5f5;
    box-shadow: inset 0 -2px 0 #4169e1;
}

.zzc-bar-cta { flex: 0 0 auto; }

.zzc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--color-accent);
    background: transparent;
    color: var(--color-accent);
    font-family: var(--zz-font-head);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.zzc-btn:hover { transform: scale(1.05); }

.zzc-btn-primary,
.zzc-btn-primary:visited {
    background: var(--color-accent);
    color: #f5f5f5;
    border-color: var(--color-accent);
}

.zzc-btn-on-dark,
.zzc-btn-on-dark:visited {
    color: #f5f5f5;
    border-color: #f5f5f5;
}

.zzc-header .zzc-btn-primary,
.zzc-header .zzc-btn-primary:visited { color: #f5f5f5; }

.zzc-burger,
.zzc-overlay,
.zzc-drawer { display: none; }

.zzc-burger {
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.zzc-burger span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #f5f5f5;
}

.zzc-hero {
    position: relative;
    overflow: hidden;
    background: #708090;
    color: #f5f5f5;
    padding: 48px 0 56px;
}

.zzc-hero::before {
    content: "";
    position: absolute;
    width: 460px;
    height: 280px;
    left: -120px;
    bottom: -90px;
    background: #4169e1;
    opacity: 0.55;
    filter: blur(36px);
    border-radius: 58% 42% 62% 38%;
    pointer-events: none;
}

.zzc-hero-row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(20rem, 26rem);
    gap: 36px;
    align-items: start;
}

.zzc-hero h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); }

.zzc-kicker {
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.78rem;
    color: #e0e0e0;
}

.zzc-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.zzc-passport {
    background: #f5f5f5;
    color: var(--color-text);
    padding: 14px;
    clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
}

.zzc-passport-still {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 180px;
    object-fit: contain;
    margin: 0 auto 10px;
}

.zzc-passport-icon {
    width: 22%;
    max-width: 84px;
    height: auto;
    border-radius: 22%;
    object-fit: contain;
}

.zzc-passport-name { margin-top: 8px; }

.zzc-passport-dev,
.zzc-passport-gap { color: var(--color-text-light); font-size: 0.92rem; }

.zzc-passport-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
    margin: 10px 0;
}

.zzc-passport-facts div { margin: 0; }

.zzc-passport-facts dt {
    font-size: 0.75rem;
    color: var(--color-text-light);
}

.zzc-passport-facts dd { margin: 0; font-weight: 700; }

.zzc-band { margin: 0 0 36px; }

.zzc-band h2 { font-size: 1.55rem; }

.zzc-criteria {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.zzc-criteria li {
    background: #ffffff;
    padding: 16px 16px 8px;
    clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
    filter: drop-shadow(0 10px 18px rgba(51, 51, 51, 0.08));
}

.zzc-rank { display: flex; flex-direction: column; gap: 18px; }

.zzc-rank-item {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) auto;
    grid-template-areas:
        "pos pos still"
        "icon name still"
        "icon dev still"
        "desc desc still"
        "facts facts still"
        "gap gap still"
        "acts acts still";
    column-gap: 14px;
    row-gap: 4px;
    background: #ffffff;
    padding: 16px;
    clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
    animation: zz-rise 0.45s ease both;
}

.zzc-rank-pos { grid-area: pos; margin: 0; font-family: var(--zz-font-head); letter-spacing: 0.08em; color: var(--color-accent); }
.zzc-rank-item .zzc-app-icon { grid-area: icon; }
.zzc-rank-name { grid-area: name; align-self: end; }
.zzc-rank-dev { grid-area: dev; margin: 0; color: var(--color-text-light); }
.zzc-rank-desc { grid-area: desc; }
.zzc-rank-facts { grid-area: facts; margin: 0; }
.zzc-rank-gap { grid-area: gap; margin: 0; color: var(--color-text-light); }
.zzc-rank-actions { grid-area: acts; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

.zzc-app-icon {
    width: 96px;
    height: 96px;
    border-radius: 22%;
    object-fit: contain;
}

.zzc-rank-item .zzc-app-preview { grid-area: still; }

.zzc-app-preview {
    width: auto;
    height: auto;
    max-width: 200px;
    max-height: 240px;
    object-fit: contain;
    justify-self: end;
    align-self: center;
}

.zzc-cta {
    position: relative;
    overflow: hidden;
    background: #708090;
    color: #f5f5f5;
    padding: 42px 0;
    margin-top: 12px;
}

.zzc-cta::after {
    content: "";
    position: absolute;
    width: 240px;
    height: 140px;
    left: -30px;
    bottom: -40px;
    background: #a9a9a9;
    opacity: 0.45;
    filter: blur(24px);
    border-radius: 40% 60% 45% 55%;
    pointer-events: none;
}

.zzc-cta .zzo-container { position: relative; }

.zzc-cta a.zzc-btn-primary:visited { color: #f5f5f5; }

.zzc-page { padding: 36px 0 64px; }

.zzc-page h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); }

.zzc-crumbs { color: var(--color-text-light); font-size: 0.92rem; }

.zzc-review-facts {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) auto;
    gap: 8px 20px;
    align-items: start;
    margin: 18px 0 28px;
    background: #ffffff;
    padding: 20px;
    clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}

.zzc-review-copy p { margin: 0 0 8px; }

.zzc-review .zzc-app-preview {
    grid-area: auto;
    justify-self: end;
    max-width: 220px;
    max-height: 280px;
}

.zzc-checked { font-weight: 700; }

.zzc-note {
    background: #ffffff;
    clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
    min-height: 100%;
}

.zzc-note-band { height: 12px; background: #708090; }

.zzc-note:nth-child(2) .zzc-note-band { background: #4169e1; }
.zzc-note:nth-child(3) .zzc-note-band { background: #a9a9a9; }
.zzc-note:nth-child(4) .zzc-note-band { background: #333333; }
.zzc-note:nth-child(5) .zzc-note-band { background: #4169e1; }

.zzc-note h2,
.zzc-note p { padding: 0 14px; }

.zzc-note h2 { font-size: 1.15rem; padding-top: 12px; }

.zzc-form { display: grid; gap: 8px; max-width: 520px; }

.zzc-form input,
.zzc-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    background: #ffffff;
    font: inherit;
    color: inherit;
}

.zzc-table-wrap { overflow-x: auto; }

.zzc-table { width: 100%; border-collapse: collapse; background: #ffffff; }

.zzc-table th,
.zzc-table td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--color-border);
    vertical-align: top;
}

.zzc-footer {
    background: #333333;
    color: #f5f5f5;
    padding: 22px 0 32px;
}

.zzc-footer a,
.zzc-footer a:visited,
.zzc-footer-link {
    color: #f5f5f5;
    background: none;
    border: 0;
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

.zzc-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.zzc-footer-links {
    display: flex;
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.zzc-footer-note { font-size: 0.92rem; color: #e8e8e8; }

.zzc-cookie { display: none; }

.zzc-cookie:not([hidden]) {
    display: flex;
    position: fixed;
    z-index: 110;
    gap: 12px;
    align-items: center;
}

body:has(#zzc-cookie:not([hidden])) { padding-bottom: 88px; }

.zzc-cookie-pill:not([hidden]) {
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: calc(100% - 32px);
    border-radius: 999px;
    background: #ffffff;
    color: var(--color-text);
    padding: 8px 8px 8px 18px;
    box-shadow: 0 10px 28px rgba(51, 51, 51, 0.18);
}

.zzc-cookie p {
    margin: 0;
    font-size: 0.92rem;
    white-space: nowrap;
}

.zzc-drawer-only { display: none; }

@keyframes zz-rise {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .zzc-rank-item { animation: none; }
    .zzc-btn { transition: none; }
}

@media (max-width: 1100px) {
    .zzc-logo img { width: 120px; }
    .zzc-nav { display: none; }
    .zzc-bar-cta { display: none; }
    .zzc-bar { justify-content: space-between; }
    .zzc-burger { display: block; margin-left: auto; }

    .zzc-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 200;
        background: rgba(0, 0, 0, 0.45);
        opacity: 0;
        visibility: hidden;
        transition: opacity .25s, visibility .25s;
    }

    .zzc-drawer {
        display: block;
        position: fixed;
        z-index: 210;
        background: var(--color-bg);
        overflow-y: auto;
        visibility: hidden;
        transition: transform .3s ease, opacity .3s ease, visibility .3s;
    }

    .zzc-drawer a { display: block; padding: 14px 20px; color: var(--color-text); text-decoration: none; }

    .zzc-drawer-close {
        position: absolute;
        top: 12px;
        right: 16px;
        width: 44px;
        height: 44px;
        border: 0;
        background: transparent;
        font-size: 1.8rem;
        line-height: 1;
        cursor: pointer;
    }

    .zzc-drawer-top {
        top: var(--zz-header-h);
        left: 0;
        right: 0;
        max-height: calc(100dvh - var(--zz-header-h));
        padding: 56px 0 16px;
        transform: translateY(-16px);
        opacity: 0;
    }

    .zzc-btn.zzc-drawer-only {
        display: inline-flex;
        margin: 8px 20px 16px;
    }

    body.zz-bore { overflow: hidden; }
    body.zz-bore .zzc-overlay { opacity: 1; visibility: visible; }
    body.zz-bore .zzc-drawer { visibility: visible; }
    body.zz-bore .zzc-drawer-top { transform: translateY(0); opacity: 1; }
}

@media (max-width: 800px) {
    .zzc-hero-row,
    .zzo-shell,
    .zzc-criteria { grid-template-columns: 1fr; }

    .zzc-rank-item { grid-template-columns: 72px minmax(0, 1fr); }
    .zzc-review-facts { grid-template-columns: 72px minmax(0, 1fr); }
    .zzc-review-copy { grid-column: 1 / -1; }
    .zzc-review .zzc-app-preview {
        grid-column: 1 / -1;
        justify-self: start;
        margin-top: 8px;
    }
    .zzc-review .zzc-app-icon { width: 72px; height: 72px; }

    .zzc-rank-item .zzc-app-icon { width: 64px; height: 64px; }
    .zzc-rank-item .zzc-app-preview {
        display: block;
        grid-column: 1 / -1;
        margin: 16px auto 0;
        justify-self: center;
    }

    .zzc-footer-row { flex-direction: column; align-items: flex-start; }

    .zzc-cookie-pill:not([hidden]) {
        left: 12px;
        right: 12px;
        width: auto;
        transform: none;
        border-radius: 18px;
        max-width: none;
        flex-direction: column;
        align-items: stretch;
    }

    .zzc-cookie p { white-space: normal; }
}

@media (max-width: 768px) {
    .zzo-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .zzo-grid { grid-template-columns: 1fr; }
    .zzc-passport-facts { grid-template-columns: 1fr; }
}
