/* Image Converter Plus — landing ("The Darkroom"). Self-contained: no base.css. */

/* ---- Fonts ---- */
@font-face {
    font-family: "Inter var";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url(../fonts/inter-var-latin.woff2) format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Inter var";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url(../fonts/inter-var-latin-ext.woff2) format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Inter var";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url(../fonts/inter-var-cyrillic.woff2) format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: "Inter var";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url(../fonts/inter-var-greek.woff2) format("woff2");
    unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
    font-family: "Inter var";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url(../fonts/inter-var-vietnamese.woff2) format("woff2");
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

/* ---- Tokens ---- */
:root {
    color-scheme: dark;
    --bg-0: #05060A;
    --bg-1: #0B0E16;
    --bg-2: #111624;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-brd: rgba(255, 255, 255, 0.09);
    --text-hi: #F2F4F8;
    --text-mid: #9BA3B5;
    --text-low: #757D96;
    --accent-a: #3E6DF5;
    --accent-b: #8B5CF6;
    --accent-glow: #5EA0FF;
    --ok: #30D158;
    --warn: #FFB020;
    --danger: #FF453A;
    --grad: linear-gradient(100deg, var(--accent-a), var(--accent-b));
    --font-sans: "Inter var", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
    --radius: 14px;
    --radius-lg: 24px;
    --nav-h: 56px;
}

/* ---- Reset ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
/* no CSS scroll-behavior:smooth — it corrupts ScrollTrigger's pin measurements
   whenever a refresh happens mid-scroll (rects sampled during the animated
   scroll); the #formats anchor gets its smooth scroll in home.js instead */
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-sans);
    background: var(--bg-0);
    color: var(--text-hi);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; } /* attribute-sized images must keep aspect when max-width bites */
a { color: var(--accent-glow); }
ul[role="list"] { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
::selection { background: rgba(62, 109, 245, 0.4); }
:focus-visible { outline: 2px solid var(--accent-glow); outline-offset: 3px; border-radius: 4px; }

/* Film grain */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 200;
    pointer-events: none;
    /* no mix-blend-mode: it forces whole-page compositing on scroll */
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

.skip-link {
    position: absolute;
    top: -48px;
    inset-inline-start: 16px;
    z-index: 300;
    padding: 10px 18px;
    background: var(--bg-2);
    border: 1px solid var(--glass-brd);
    border-radius: 10px;
    color: var(--text-hi);
    text-decoration: none;
    transition: top 0.15s ease-out;
}
.skip-link:focus { top: 12px; }

.mono { font-family: var(--font-mono); }
.grad {
    background: var(--grad);
    color: var(--accent-glow); /* fallback when background-clip:text unsupported */
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .grad {
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        color: transparent;
    }
}

/* ---- Nav ---- */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--nav-h);
    background: rgba(11, 14, 22, 0.6);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    backdrop-filter: blur(20px) saturate(140%);
    border-bottom: 1px solid var(--glass-brd);
}
.nav-inner {
    max-width: 1120px;
    margin-inline: auto;
    height: 100%;
    padding-inline: 20px;
    display: flex;
    align-items: center;
    gap: 24px;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-hi);
    text-decoration: none;
}
.nav-brand img { border-radius: 7px; }
.nav-links {
    display: flex;
    gap: 24px;
    list-style: none;
    margin-inline-start: auto;
}
.nav-links a {
    font-size: 13px;
    color: var(--text-mid);
    text-decoration: none;
    transition: color 0.15s ease-out;
}
.nav-links a:hover { color: var(--text-hi); }
.nav-cta {
    position: relative;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-hi);
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 100px;
    border: 1px solid transparent;
    background:
        linear-gradient(var(--bg-1), var(--bg-1)) padding-box,
        var(--grad) border-box;
    transition: box-shadow 0.15s ease-out;
}
.nav-cta:hover { box-shadow: 0 0 24px -8px rgba(94, 160, 255, 0.5); }

/* ---- Sections shared ---- */
section, .hero { position: relative; }
.section-inner {
    max-width: 1120px;
    margin-inline: auto;
    padding: clamp(88px, 12vh, 140px) 20px;
}
.center { text-align: center; }
.center .lede { margin-inline: auto; }
.eyebrow {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-glow);
    margin-bottom: 14px;
}
.eyebrow.warn { color: var(--warn); }
.eyebrow.violet { color: var(--accent-b); }
.headline {
    font-size: clamp(34px, 5vw, 64px);
    font-weight: 650;
    letter-spacing: -0.035em;
    line-height: 1.06;
    margin-bottom: 18px;
    text-wrap: balance;
}
.lede {
    font-size: clamp(17px, 2vw, 19px);
    color: var(--text-mid);
    max-width: 58ch;
}
.lede a { color: var(--accent-glow); text-underline-offset: 3px; }
/* ---- Hero ---- */
.hero {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    background:
        radial-gradient(900px 500px at 50% 12%, rgba(62, 109, 245, 0.10), transparent 70%),
        var(--bg-0);
}
.hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: none;
    transition: opacity 0.2s ease-out; /* unsettle: particles back fast */
}
.hero.gl-on .hero-canvas { display: block; }
/* Settled hand-off: particles animate, the real image owns the rest state —
   GL points are soft discs and can never be pixel-crisp. Dip-free ordering:
   the img (stacked above) fades in over fully-visible particles first; the
   canvas fades out only once the img is opaque, so coverage never drops. */
.hero.is-settled .hero-canvas {
    opacity: 0;
    transition: opacity 0.4s ease-out 0.6s; /* hold until the img is fully opaque (settle + 0.55s) */
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 880px;
    margin-inline: auto;
    padding: calc(var(--nav-h) + 12px) 20px 36px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hero-visual {
    height: min(32svh, 360px);
    max-width: 62vw;
    aspect-ratio: 3 / 4;
    margin-bottom: 18px;
    position: relative;
}
.hero-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 24px 80px -24px rgba(62, 109, 245, 0.35);
    /* unsettle: photo de-focuses back into the particle haze as the canvas returns beneath */
    transition: opacity 0.5s ease-out 0.15s, filter 0.5s ease-out 0.15s, transform 0.5s ease-out 0.15s;
}
.hero.gl-on .hero-fallback {
    opacity: 0;
    filter: blur(5px);       /* knob: 4–8px. bigger = softer start, more edge bloom */
    transform: scale(1.03);  /* knob: 1.02–1.05. the "settle" depth cue */
    will-change: opacity, filter, transform;
}
/* settle: the photo pulls into focus over the particles right as they land */
.hero.gl-on.is-settled .hero-fallback {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
    transition:
        opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-chip {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    font-size: 13px;
    color: var(--text-mid);
    margin-bottom: 20px;
    padding: 8px 16px;
    border: 1px solid var(--glass-brd);
    border-radius: 100px;
    background: var(--glass);
}
.hero-chip .chip-to { color: var(--text-hi); }
.chip-arrow { color: var(--accent-glow); }
.chip-note {
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-low);
}
.hero-title {
    font-size: clamp(40px, 6.5vw, 88px);
    font-weight: 650;
    letter-spacing: -0.035em;
    line-height: 1.03;
    margin-bottom: 14px;
}
.hero-sub {
    font-size: clamp(17px, 2.2vw, 19px);
    color: var(--text-mid);
    max-width: 46ch;
    margin-bottom: 28px;
}
.cta-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}
.badge-link { display: inline-block; border-radius: 8px; }
.badge-link img { height: 54px; width: auto; transition: opacity 0.15s ease-out; }
.badge-link:hover img { opacity: 0.85; }
.ghost-link {
    font-size: 15px;
    color: var(--text-mid);
    text-decoration: none;
    transition: color 0.15s ease-out;
}
.ghost-link:hover { color: var(--text-hi); }
.hero-availability {
    margin-top: 14px;
    font-size: 13px;
    color: var(--text-low);
}
@media (max-height: 700px) {
    .hero-visual { height: min(26svh, 280px); }
    .hero-title { font-size: clamp(36px, 5.5vw, 64px); }
}

/* ---- Formats ---- */
/* scroll dissolve: .formats slides up OVER the GSAP-pinned (position:fixed) hero */
.formats { background: var(--bg-1); position: relative; z-index: 1; }
.format-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 48px;
}
.chip {
    position: relative;
    padding: 15px 30px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--text-hi);
    background: var(--glass);
    border: 1px solid var(--glass-brd);
    border-radius: 100px;
    transition: transform 0.15s ease-out, border-color 0.15s ease-out, box-shadow 0.15s ease-out;
}
.chip:hover {
    transform: translateY(-2px);
    border-color: rgba(94, 160, 255, 0.5);
    box-shadow: 0 0 28px -8px rgba(94, 160, 255, 0.5);
}
/* Pro formats: the gradient hairline this site reserves for premium capsules
   (.nav-cta, .pro-panel). Masked ring rather than nav-cta's padding-box trick —
   the two format rows sit on different backgrounds, so the fill must stay --glass. */
.chip.is-pro { border-color: rgba(139, 92, 246, 0.45); }
@supports ((-webkit-mask-composite: xor) or (mask-composite: exclude)) {
    .chip.is-pro,
    .chip.is-pro:hover { border-color: transparent; }
    .chip.is-pro::after {
        content: '';
        position: absolute;
        inset: -1px;
        border-radius: inherit;
        padding: 1px;
        background: var(--grad);
        -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
                mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
        -webkit-mask-composite: xor;
                mask-composite: exclude;
        opacity: 0.85;
        transition: opacity 0.15s ease-out;
        pointer-events: none;
    }
    .chip.is-pro:hover::after { opacity: 1; }
}
.chip.is-pro:hover { box-shadow: 0 0 28px -8px rgba(139, 92, 246, 0.55); }
.pro-tag {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: #A78BFA;
    margin-inline-start: 5px;
}
.format-note {
    margin-top: 36px;
    font-size: 13px;
    color: var(--text-low);
}

/* ---- Features ---- */
.features-layout {
    display: grid;
    grid-template-columns: minmax(280px, 5fr) 6fr;
    gap: clamp(32px, 6vw, 96px);
    margin-top: 48px;
    align-items: start;
}
.features-phone {
    position: sticky;
    top: calc(var(--nav-h) + 8vh);
}
.phone {
    position: relative;
    width: min(340px, 100%);
    margin-inline: auto;
    aspect-ratio: 600 / 1304;
    border-radius: clamp(36px, 5.2vw, 52px);
    background: #1A1D26;
    padding: 10px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 32px 80px -32px rgba(0, 0, 0, 0.8);
    transition: transform 0.4s ease-out;
}
.phone::before {
    content: "";
    position: absolute;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    width: 26%;
    height: 3.2%;
    background: #05060A;
    border-radius: 100px;
    z-index: 2;
}
.phone img {
    position: absolute;
    inset: 10px;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    object-fit: cover;
    border-radius: clamp(28px, 4.2vw, 42px);
    opacity: 0;
    transition: opacity 0.4s ease-out;
}
.phone img.is-active { opacity: 1; }
.features-steps { display: flex; flex-direction: column; }
.feature-step {
    min-height: 52vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 44ch;
}
.step-index {
    font-size: 12px;
    letter-spacing: 0.18em;
    color: var(--text-low);
    margin-bottom: 12px;
}
.feature-step h3 {
    font-size: clamp(22px, 2.6vw, 28px);
    font-weight: 650;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}
.feature-step p { font-size: 16px; color: var(--text-mid); }

/* ---- Panels (glass) ---- */
.panel {
    background: rgba(13, 16, 26, 0.6);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    backdrop-filter: blur(20px) saturate(140%);
    border: 1px solid var(--glass-brd);
    border-radius: var(--radius-lg);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* ---- Dropzones ---- */
.dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 36px 24px;
    background: rgba(94, 160, 255, 0.06);
    border: 1.5px dashed rgba(94, 160, 255, 0.5);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color 0.15s ease-out, background 0.15s ease-out, box-shadow 0.15s ease-out;
}
.dropzone:hover {
    border-color: rgba(94, 160, 255, 0.75);
    background: rgba(94, 160, 255, 0.1);
}
/* drag highlight: solid accent + ring, clearly stronger than hover (HIG) */
.dropzone.is-over {
    border-style: solid;
    border-color: var(--accent-glow);
    background: rgba(94, 160, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(94, 160, 255, 0.22);
}
.dropzone:focus-within { outline: 2px solid var(--accent-glow); outline-offset: 3px; }
.dropzone input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
}
.dz-disc {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(94, 160, 255, 0.14);
}
.dz-icon { width: 26px; height: 26px; color: var(--accent-glow); }
.dz-label { font-size: 15px; font-weight: 500; color: var(--text-hi); }
.dz-btn {
    margin-top: 2px;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    color: var(--text-hi);
    font-size: 14px;
    font-weight: 600;
    transition: background 0.15s ease-out;
}
.dropzone:hover .dz-btn { background: rgba(255, 255, 255, 0.16); }
.lock-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 18px;
    font-size: 13px;
    color: var(--ok);
}
.lock-icon { width: 13px; height: 13px; flex-shrink: 0; }
.link-btn {
    font-size: 14px;
    color: var(--accent-glow);
    text-decoration: underline;
    text-underline-offset: 3px;
    margin-top: 14px;
}
.link-btn:hover { color: var(--text-hi); }
.noscript-note {
    margin-top: 18px;
    font-size: 14px;
    color: var(--text-mid);
}

/* ---- Primary button ---- */
.btn-primary {
    display: block;
    width: 100%;
    padding: 15px 28px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: var(--grad);
    border-radius: var(--radius);
    box-shadow: 0 8px 40px -12px rgba(62, 109, 245, 0.45);
    transition: filter 0.15s ease-out, transform 0.15s ease-out;
}
.btn-primary:hover:not(:disabled) { filter: brightness(1.1); }
.btn-primary:active:not(:disabled) { transform: scale(0.99); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }
.btn-primary.is-done { background: var(--ok); }

/* ---- Privacy ---- */
.privacy { background: var(--bg-1); }
.privacy .section-inner {
    background:
        radial-gradient(700px 400px at 75% 0%, rgba(255, 69, 58, 0.05), transparent 70%);
}
.meta-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 32px;
    list-style: none;
}
.meta-tags li {
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--warn);
    padding: 7px 14px;
    border: 1px solid rgba(255, 176, 32, 0.25);
    border-radius: 100px;
    background: rgba(255, 176, 32, 0.06);
}
.inspector {
    max-width: 880px;
    margin: 56px auto 0;
    padding: clamp(24px, 4vw, 40px);
}
.inspector-title {
    font-size: clamp(20px, 2.4vw, 24px);
    font-weight: 650;
    letter-spacing: -0.015em;
    margin-bottom: 20px;
    text-align: center;
}
.inspector-intro { text-align: center; }
.inspector-result {
    display: grid;
    grid-template-columns: minmax(160px, 240px) 1fr;
    gap: clamp(20px, 3.5vw, 36px);
}
.inspector-thumb { position: relative; }
.inspector-thumb img {
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--glass-brd);
}
.inspector-thumb figcaption {
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-low);
    word-break: break-all;
}
.scanline {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 2px;
    background: var(--accent-glow);
    box-shadow: 0 0 18px 2px rgba(94, 160, 255, 0.7);
    opacity: 0;
}
.dossier-head {
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-low);
    margin-bottom: 14px;
}
.dossier-head .count { color: var(--warn); font-size: 17px; }
.dossier-rows {
    display: grid;
    grid-template-columns: minmax(90px, max-content) 1fr;
    column-gap: 20px;
    row-gap: 9px;
    font-family: var(--font-mono);
    font-size: 13px;
}
.dossier-rows dt {
    color: var(--text-low);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 11px;
    padding-top: 2px;
}
.dossier-rows dd { color: var(--warn); overflow-wrap: anywhere; }
.dossier-rows dd.is-stripped {
    color: var(--ok);
    text-decoration: line-through;
    text-decoration-color: rgba(48, 209, 88, 0.6);
}
.map-fix {
    position: relative;
    margin-top: 22px;
    border: 1px solid rgba(255, 69, 58, 0.3);
    border-radius: var(--radius);
    overflow: hidden;
    background:
        repeating-linear-gradient(to right, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 36px),
        repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 33px),
        var(--bg-0);
}
/* Static-map image sits under the SVG crosshair, covering exactly the SVG's
   360×200 area; the radar grid beneath is the loading and failure fallback. */
.map-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    aspect-ratio: 360 / 200;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease-out;
}
.map-fix.has-map .map-img { opacity: 1; }
.map-svg { position: relative; z-index: 1; width: 100%; height: auto; }
.map-fix.has-map .fix-h, .map-fix.has-map .fix-v { stroke: transparent; }
.map-note {
    display: none;
    font-size: 11px;
    color: var(--text-low);
    padding: 0 16px 12px;
}
.map-fix.has-map .map-note { display: block; }
.fix-h, .fix-v { stroke: rgba(255, 69, 58, 0.4); stroke-width: 1; }
.fix-ring { fill: none; stroke: var(--danger); stroke-width: 1.5; }
.fix-dot { fill: var(--danger); }
.map-caption {
    font-size: 12px;
    letter-spacing: 0.14em;
    color: var(--danger);
    padding: 12px 16px 2px;
}
.map-coords {
    font-size: 12px;
    color: var(--text-mid);
    padding: 0 16px 14px;
}
.map-fix.is-stripped { border-color: rgba(48, 209, 88, 0.3); }
.map-fix.is-stripped .map-img { opacity: 0; }
.map-fix.is-stripped .fix-h, .map-fix.is-stripped .fix-v { stroke: transparent; }
.map-fix.is-stripped .fix-ring, .map-fix.is-stripped .fix-dot { opacity: 0; }
.map-fix.is-stripped .map-caption { color: var(--ok); }
.verdict {
    margin-top: 20px;
    font-size: clamp(17px, 2.2vw, 20px);
    color: var(--text-hi);
}
.verdict strong { color: var(--warn); }
.dossier-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.dossier-actions .btn-primary { width: auto; }
.dossier-actions .link-btn { margin-top: 0; }
.clean-state { margin-top: 24px; }
.clean-state p { font-size: 16px; color: var(--text-mid); max-width: 52ch; }
.clean-state strong { color: var(--ok); }
.clean-state .badge-link { margin-top: 18px; }
.clean-state .badge-link img { height: 46px; }
.privacy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 14px;
    margin-top: 56px;
}
.privacy-item {
    padding: 26px 22px;
    background: var(--glass);
    border: 1px solid var(--glass-brd);
    border-radius: var(--radius-lg);
}
.pi-icon { width: 26px; height: 26px; color: var(--accent-glow); margin-bottom: 14px; }
.privacy-item h4 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.privacy-item p { font-size: 13px; color: var(--text-mid); }

/* ---- Workflow ---- */
.workflow-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 48px;
}
.workflow-card { padding: clamp(28px, 4vw, 44px); overflow: hidden; }
.workflow-shot {
    width: min(190px, 52%);
    margin: 0 auto 28px;
    border-radius: 24px;
    background: #1A1D26;
    padding: 7px;
    box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.8);
    transition: transform 0.2s ease-out;
}
.workflow-shot img { border-radius: 18px; }
.tilt-l { transform: rotate(-3deg); }
.tilt-r { transform: rotate(3deg); }
.workflow-card:hover .tilt-l { transform: rotate(-3deg) translateY(-6px); }
.workflow-card:hover .tilt-r { transform: rotate(3deg) translateY(-6px); }
.workflow-card h3 {
    font-size: clamp(22px, 2.6vw, 26px);
    font-weight: 650;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}
.workflow-card p { font-size: 16px; color: var(--text-mid); }

/* ---- Manifesto ---- */
.manifesto { background: var(--bg-0); }
.manifesto .section-inner { padding-block: clamp(120px, 24vh, 220px); }
.manifesto .headline { font-size: clamp(38px, 6vw, 80px); }
.rule-line {
    width: min(420px, 70%);
    height: 1px;
    margin: 32px auto;
    background: var(--grad);
    transform-origin: left center;
}
.manifesto .lede { max-width: 54ch; }

/* ---- Pro ---- */
.pro { background: var(--bg-1); }
.pro-panel {
    position: relative;
    max-width: 880px;
    margin-inline: auto;
    padding: clamp(32px, 5vw, 56px);
    border: 1px solid transparent;
    background:
        linear-gradient(rgba(13, 16, 26, 0.92), rgba(13, 16, 26, 0.92)) padding-box,
        linear-gradient(120deg, rgba(62, 109, 245, 0.7), rgba(139, 92, 246, 0.7), rgba(62, 109, 245, 0.15)) border-box;
}
.pro-list { display: flex; flex-direction: column; gap: 26px; margin-top: 36px; }
.pro-list li { display: flex; gap: 16px; align-items: flex-start; }
.pro-icon { width: 24px; height: 24px; color: var(--accent-b); flex-shrink: 0; margin-top: 2px; }
.pro-list h3 { font-size: 17px; font-weight: 600; margin-bottom: 3px; }
.pro-list p { font-size: 15px; color: var(--text-mid); }
.pro-price {
    margin-top: 44px;
    padding-top: 36px;
    border-top: 1px solid var(--glass-brd);
    text-align: center;
}
.price-line {
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 650;
    letter-spacing: -0.03em;
}
.price-note { font-size: 15px; color: var(--text-mid); margin: 8px 0 24px; }

/* ---- Languages ---- */
.languages .section-inner { padding-bottom: 40px; }
.languages .section-inner:last-child { padding-block: 40px clamp(88px, 12vh, 140px); }
.marquee {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 14px;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
    display: flex;
    gap: 12px;
    width: max-content;
    animation: marquee 38s linear infinite;
}
.marquee-track.reverse { animation-direction: reverse; }
.marquee:hover .marquee-track,
.marquee.is-offscreen .marquee-track { animation-play-state: paused; }
.marquee-track span {
    padding: 10px 22px;
    font-size: 15px;
    color: var(--text-mid);
    background: var(--glass);
    border: 1px solid var(--glass-brd);
    border-radius: 100px;
    white-space: nowrap;
}
@keyframes marquee {
    to { transform: translateX(calc(-50% - 6px)); }
}
.a11y-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}
.a11y-pills li {
    padding: 10px 20px;
    font-size: 14px;
    color: var(--text-mid);
    background: var(--glass);
    border: 1px solid var(--glass-brd);
    border-radius: 100px;
}

/* ---- Closing ---- */
.closing {
    background: linear-gradient(to bottom, var(--bg-0), #000);
}
.closing-icon {
    margin: 0 auto 28px;
    border-radius: 22px;
    box-shadow: 0 0 80px -12px rgba(62, 109, 245, 0.45);
}
.closing .lede { margin-bottom: 32px; }
.closing .badge-link { display: inline-block; }

/* ---- Footer ---- */
.site-footer {
    background: #000;
    border-top: 1px solid var(--glass-brd);
    padding: 26px 20px;
}
.footer-inner {
    max-width: 1120px;
    margin-inline: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.copyright { font-size: 12px; color: var(--text-low); }
.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a {
    font-size: 12px;
    color: var(--text-low);
    text-decoration: none;
    transition: color 0.15s ease-out;
}
.footer-links a:hover { color: var(--text-hi); }

/* ---- Footer language switcher ---- */
.lang-menu { position: relative; }
.lang-trigger {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: var(--text-low);
    cursor: pointer;
    list-style: none;
    transition: color 0.15s ease-out;
    -webkit-user-select: none;
    user-select: none;
}
.lang-trigger::-webkit-details-marker { display: none; }
.lang-trigger:hover { color: var(--text-hi); }
.lang-globe, .lang-chev { flex: none; }
.lang-chev { transition: transform 0.15s ease-out; }
.lang-menu[open] .lang-chev { transform: rotate(180deg); }
.lang-panel {
    position: absolute;
    bottom: calc(100% + 8px);
    inset-inline-end: 0;
    z-index: 150;
    width: 240px;
    max-width: calc(100vw - 40px);
    max-height: min(60vh, 420px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 6px;
    background: rgba(17, 22, 36, 0.88);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid var(--glass-brd);
    border-radius: var(--radius);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.lang-menu[open] .lang-panel {
    animation: lang-pop 0.2s cubic-bezier(0.28, 0.11, 0.32, 1);
    transform-origin: bottom;
}
@keyframes lang-pop {
    from { opacity: 0; transform: translateY(4px) scale(0.98); }
}
.lang-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-mid);
    text-decoration: none;
}
.lang-list a:hover { background: var(--glass); color: var(--text-hi); }
.lang-list a[aria-current] { color: var(--text-hi); font-weight: 600; }
.lang-check { margin-inline-start: auto; color: var(--accent-glow); flex: none; }

/* ---- Reveal gating (JS present only) ---- */
html.js [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
}
html.js .split-lines { visibility: hidden; }
/* the visual is the LCP element — never gate its paint on JS */
html.js .hero-content > :not(.hero-visual) { opacity: 0; }

/* ---- Mobile ---- */
@media (max-width: 767px) {
    .nav-links { display: none; }
    .hero-visual { width: min(30svh, 58vw); }
    .features-layout { grid-template-columns: 1fr; }
    .features-phone { position: static; }
    .phone { width: min(260px, 78vw); }
    .feature-step {
        min-height: 0;
        padding-block: 28px;
        max-width: none;
    }
    .inspector-result { grid-template-columns: 1fr; }
    .inspector-thumb { max-width: 240px; }
    .dossier-rows { grid-template-columns: 1fr; row-gap: 2px; }
    .dossier-rows dt { margin-top: 10px; }
    .lang-panel { inset-inline-end: auto; inset-inline-start: 0; }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html.js [data-reveal],
    html.js .hero-content > * { opacity: 1 !important; transform: none !important; }
    html.js .split-lines { visibility: visible !important; }
    .marquee { -webkit-mask-image: none; mask-image: none; }
    .marquee-track {
        animation: none !important;
        width: auto;
        flex-wrap: wrap;
        justify-content: center;
    }
    .marquee-track span:nth-child(n+16) { display: none; } /* hide the duplicated half */
    .hero.gl-on .hero-fallback { opacity: 1; filter: none; transform: none; }
    .hero-canvas { display: none !important; }
}
