@font-face {
    font-family: "vkmp2";
    src: url("/fonts/regular.ttf") format("truetype");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "vkmp2";
    src: url("/fonts/medium.ttf") format("truetype");
    font-weight: 600 700;
    font-display: swap;
}

:root {
    --bg: #0c0c0c;
    --surface: #161617;
    --border: #29292c;
    --text: #ececef;
    --muted: #a5a5ab;
    --accent: #1e90ff;       /* logo blue: icons, links (6:1 on --bg) */
    --cta: #1873d3;          /* button fill: white text 4.7:1 */
    --cta-hover: #1565b8;
    --tag-bg: #1d2a3a;
    --tag-text: #8cc4ff;
    --gold: #f2c14e;         /* VIP accent only (11:1 on --surface) */
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.55 "vkmp2", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

h1, h2, h3, p, ul, ol, figure {
    margin: 0;
}

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

img {
    display: block;
    max-width: 100%;
    height: auto;
}

.wrap {
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 16px;
}

.section {
    padding-top: 56px;
}

h2 {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 20px;
}

h3 {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
}

/* ---------- Hero ---------- */

.hero {
    display: grid;
    gap: 40px;
    align-items: center;
    padding-top: 40px;
    text-align: center;
}

.logo {
    width: 88px;
    height: 88px;
    margin: 0 auto 16px;
    display: block;
}

h1 {
    font-size: 44px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.5px;
}

.lead {
    margin-top: 8px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

.sub {
    margin: 12px auto 0;
    max-width: 34em;
    color: var(--muted);
}

.cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 0 32px;
    margin-top: 28px;
    border-radius: 14px;
    background: var(--cta);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.15s;
}

.cta:hover {
    background: var(--cta-hover);
}

.cta:focus-visible,
.shots:focus-visible,
.footer a:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

.cta svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.release-meta {
    margin-top: 10px;
    font-size: 14px;
    color: var(--muted);
}

.hero-shot {
    display: none;
}

.hero-shot img,
.shots img {
    border-radius: 22px;
    border: 1px solid var(--border);
}

/* ---------- Screenshots ---------- */

.shots {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 0 -16px;
    padding: 0 16px 12px;
    scroll-padding: 0 16px;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.shots figure {
    flex: 0 0 68%;
    max-width: 280px;
    scroll-snap-align: start;
}

/* ---------- Features ---------- */

.features {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}

.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--tag-bg);
    margin-bottom: 14px;
}

.icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: var(--accent);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.features ul {
    list-style: none;
    padding: 0;
    margin-top: 12px;
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 15px;
}

.tag {
    display: inline-block;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--tag-bg);
    color: var(--tag-text);
    font-size: 12px;
    line-height: 20px;
    white-space: nowrap;
    vertical-align: 1px;
}

/* ---------- Free vs VIP ---------- */

.plans {
    display: grid;
    gap: 12px;
    max-width: 720px;
    margin: 0 auto;
}

.plan {
    padding: 24px;
}

.plan h2 {
    margin-bottom: 6px;
}

.plan-lead {
    color: var(--muted);
}

.plan-list {
    list-style: none;
    padding: 0;
    margin-top: 16px;
    display: grid;
    gap: 10px;
}

.plan-list li {
    position: relative;
    padding-left: 28px;
}

.plan-list li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 0.3em;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--tag-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%238cc4ff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

/* VIP: gold accent, gradient border */
.plan-vip {
    border: 1px solid transparent;
    background:
        linear-gradient(160deg, #1d1a12, var(--surface) 55%) padding-box,
        linear-gradient(135deg, var(--gold), #6b5520 45%, var(--accent)) border-box;
}

.plan-vip .plan-list li::before {
    background-color: #2e2611;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23f2c14e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.vip-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    padding: 3px 10px 3px 8px;
    border-radius: 999px;
    background: #2e2611;
    color: var(--gold);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
}

.vip-badge svg {
    width: 16px;
    height: 16px;
    fill: var(--gold);
}

/* VIP spoiler (<details>) */
.plan-vip summary {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    list-style: none;
    border-radius: 12px;
}

.plan-vip summary::-webkit-details-marker {
    display: none;
}

.plan-vip summary:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 6px;
}

.plan-vip .vip-badge {
    margin: 0;
    flex: none;
}

.vip-title {
    flex: 1;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.chevron {
    flex: none;
    width: 24px;
    height: 24px;
    fill: none;
    stroke: var(--gold);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.2s;
}

.plan-vip[open] .chevron {
    transform: rotate(180deg);
}

.vip-body {
    margin-top: 16px;
}

.plan-note {
    margin-top: 16px;
    font-size: 14px;
    color: var(--muted);
}

/* ---------- Install ---------- */

.steps {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    counter-reset: step;
}

.steps li {
    counter-increment: step;
}

.steps li::before {
    content: counter(step);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-bottom: 12px;
    border-radius: 50%;
    background: var(--tag-bg);
    color: var(--tag-text);
    font-weight: 700;
}

.steps p {
    margin-top: 6px;
    color: var(--muted);
    font-size: 15px;
}

.bottom-cta {
    text-align: center;
}

/* ---------- Footer ---------- */

.footer {
    margin-top: 64px;
    border-top: 1px solid var(--border);
    padding: 24px 0 32px;
    color: var(--muted);
    font-size: 14px;
}

.footer-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    justify-content: space-between;
}

/* ---------- Narrow phones: full-width button ---------- */

@media (max-width: 479px) {
    .cta {
        display: flex;
        width: 100%;
    }
}

/* ---------- Desktop: two-column hero, screenshots in a row ---------- */

@media (min-width: 860px) {
    .hero {
        grid-template-columns: 1fr 300px;
        gap: 64px;
        padding-top: 80px;
        text-align: left;
    }

    .logo {
        margin: 0 0 20px;
    }

    h1 {
        font-size: 56px;
    }

    .lead {
        font-size: 26px;
    }

    .sub {
        margin-left: 0;
    }

    .hero-shot {
        display: block;
    }

    .shots {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
        overflow: visible;
        margin: 0;
        padding: 0;
    }

    .shots figure {
        max-width: none;
    }

    .shots .only-narrow {
        display: none;
    }

    .section {
        padding-top: 80px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cta,
    .chevron {
        transition: none;
    }
}
