/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Clarika, ui-sans-serif, system-ui, -apple-system,
        BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
        "Noto Sans", sans-serif, "Apple Color Emoji",
        "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    background-color: #fff;
    color: #333;
}

.header-navbar {
    margin-top: 12px;
}

/* Fonts */
@font-face {
    font-family: Clarika;
    src: url(/distribution-map/assets/font/clarika/ClarikaGeoRegular.woff2);
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: Clarika;
    src: url(/distribution-map/assets/font/clarika/ClarikaGeoMedium.woff2);
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: Clarika;
    src: url(/distribution-map/assets/font/clarika/ClarikaGeoDemiBold.woff2);
    font-weight: 600;
    font-display: swap;
}
@font-face {
    font-family: Clarika;
    src: url(/distribution-map/assets/font/clarika/ClarikaGeoBold.woff2);
    font-weight: 700;
    font-display: swap;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

/* CTA button (navbar) */
.cta-btn {
    background-color: #0286fb;
    color: #fff;
    padding: 12px 32px;
    border-radius: 24px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    display: inline-block;
    transition: all 0.2s ease;
    border: none;
    box-shadow:
        6px 6px 14px rgba(2, 134, 251, 0.35),
        -3px -3px 10px rgba(255, 255, 255, 0.7),
        inset 1px 1px 2px rgba(255, 255, 255, 0.25),
        inset -1px -1px 2px rgba(0, 0, 0, 0.1);
}

.cta-btn:hover {
    background-color: #0270d4;
    color: #fff;
    box-shadow:
        4px 4px 10px rgba(2, 134, 251, 0.3),
        -2px -2px 8px rgba(255, 255, 255, 0.6),
        inset 1px 1px 2px rgba(255, 255, 255, 0.25),
        inset -1px -1px 2px rgba(0, 0, 0, 0.1);
    transform: translateY(1px);
}

/* Lite page */
.lite-bg {
    background-size: 40px 40px;
    background-image:
        linear-gradient(to right, #fafafa 1px, transparent 1px),
        linear-gradient(to bottom, #fafafa 1px, transparent 1px);
}

.lite-section {
    padding-top: 130px;
    padding-bottom: 70px;
    text-align: center;
}

.lite-title {
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.lite-subtitle {
    font-size: 1.125rem;
    color: rgba(75, 85, 99, 1);
    margin-bottom: 20px;
}

/* Language switcher radio */
.code-switcher-container {
    display: block;
    text-align: center;
    margin-bottom: 20px;
}

.code-switcher {
    position: relative;
    display: inline-flex;
    padding: 2px;
    border: 1px solid lightgrey;
    border-radius: 18px;
    background: #fff;
}

.code-switcher input[type="radio"] {
    position: absolute;
    visibility: hidden;
}

.code-switcher label {
    font-size: 13px;
    z-index: 1;
    min-width: 62px;
    line-height: 22px;
    cursor: pointer;
    border-radius: 18px;
    transition: color 0.25s ease-in-out;
    padding: 0 10px;
    text-align: center;
}

.code-switcher label:hover {
    background: #eee;
}

.code-switcher .highlighter {
    position: absolute;
    top: 2px;
    left: 2px;
    width: calc(50% - 2px);
    height: calc(100% - 4px);
    border-radius: 18px;
    background: #6ebaff;
    transition: transform 0.25s ease-in-out;
    z-index: 0;
}

.code-switcher .highlighter[data-mode="en-us"] {
    transform: translateX(100%);
}

/* Form row */
.lite-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 48px;
    margin-top: 22px;
    margin-bottom: 18px;
}

.lite-col-left {
    flex: 1 1 340px;
    max-width: 380px;
    min-width: 260px;
}

.lite-col-right {
    flex: 1 1 450px;
    min-width: 280px;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Form */
.lite-form {
    border: 2px solid #eee;
    padding: 20px;
    border-radius: 10px;
    background-color: #fff;
    display: inline-block;
    text-align: left;
    margin-bottom: 24px;
    width: 100%;
    max-height: 400px;
    overflow-y: auto;
}

.input-title {
    font-size: 0.8rem;
    margin-bottom: 2px;
    font-weight: bold;
    color: #174170;
}

.lite-input {
    width: 100%;
    max-width: 500px;
    background: #fafafb;
    border: 1px solid #e7e7e7;
    border-radius: 8px;
    font-size: 1rem;
    padding: 12px 15px;
    margin-bottom: 15px;
    outline: none;
    box-sizing: border-box;
    transition: border 0.2s;
    font-family: inherit;
}

.lite-input:focus {
    border-color: #6db9ff;
}

/* Upload dropzone */
.upload-dropzone {
    width: 100%;
    max-width: 500px;
    background: #fafafa;
    border: 2.5px dashed #ddd;
    border-radius: 12px;
    padding: 32px 18px 28px;
    cursor: pointer;
    text-align: center;
    font-size: 1.13rem;
    color: #888;
    margin: 0 0 12px 0;
    transition: border-color 0.18s, background 0.18s;
    position: relative;
}

.upload-dropzone:hover,
.upload-dropzone.drag-active {
    border-color: #b2d4f8;
    background: #f8faff;
    color: #359aed;
}

/* Canvas preview */
.preview-canvas {
    display: block;
    width: 100%;
    max-width: 500px;
    height: auto;
    aspect-ratio: 1000 / 627;
    background: #f6f6f8;
    border-radius: 10px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    border: 1px solid #e6e6e6;
    margin: 16px 0 0 0;
    overflow: hidden;
    transform: rotate(2deg);
    transition: transform 0.18s;
}

.preview-canvas:hover {
    transform: rotate(0deg);
}

/* Share checkbox */
.share-checkbox {
    margin-top: 20px;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
}

.share-checkbox label {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    gap: 10px;
    cursor: default;
}

.share-checkbox input[type="checkbox"] {
    width: 15px;
    height: 15px;
    cursor: pointer;
}

/* Buttons */
.download-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
    margin-top: 10px;
    margin-bottom: 15px;
    max-width: 500px;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

.btn-download {
    display: inline-block;
    padding: 12px 30px;
    background: #6db9ff;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    margin-top: 10px;
    font-size: 1.08rem;
    cursor: pointer;
    box-shadow: 0.3px 0.4px 0.3px rgba(0, 0, 0, 0.028), 0.9px 1.3px 1.1px rgba(0, 0, 0, 0.042), 4px 6px 5px rgba(0, 0, 0, 0.07);
    position: relative;
    overflow: hidden;
    transition: background 0.15s;
    font-family: inherit;
}

.btn-download:hover:not(:disabled) {
    background: #359aed;
}

.btn-download:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-download span:first-child {
    content: "";
    position: absolute;
    left: -120px;
    top: 0;
    height: 100%;
    width: 80px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.15) 0, rgba(255, 255, 255, 0.6) 45%, rgba(255, 255, 255, 0.13) 80%);
    animation: shine 2s infinite;
    z-index: 2;
    pointer-events: none;
}

.btn-second {
    display: inline-block;
    padding: 12px 30px;
    background: #fff;
    color: #6db9ff;
    border: 2px solid #6db9ff;
    border-radius: 8px;
    font-weight: bold;
    margin-top: 10px;
    font-size: 1.08rem;
    cursor: pointer;
    box-shadow: 0.3px 0.4px 0.3px rgba(0, 0, 0, 0.028), 0.9px 1.3px 1.1px rgba(0, 0, 0, 0.042), 4px 6px 5px rgba(0, 0, 0, 0.07);
    position: relative;
    overflow: hidden;
    transition: all 0.15s;
    font-family: inherit;
}

.btn-second:hover {
    color: #359aed;
    border-color: #359aed;
}

@keyframes shine {
    0% { left: -120px; }
    55% { left: 100%; }
    100% { left: 100%; }
}

/* Locked fields */
.locked-field {
    filter: blur(4px);
}

.locked-info {
    background-color: #eee;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    margin-bottom: 13px;
}

/* Download wrapper with rate limit */
.download-wrapper-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.download-wrapper-blurred {
    filter: blur(4px);
    pointer-events: none;
}

.rate-limit-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: none;
}

.rate-limit-message {
    background-color: #fff3e0;
    border: 2px solid #ff9800;
    border-radius: 10px;
    padding: 15px 20px;
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    pointer-events: auto;
    max-width: 90%;
}

.rate-limit-message a {
    color: #1976d2;
    text-decoration: underline;
}

.region-not-available {
    background-color: #ffedd6;
    border: 1px solid #e8ceac;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    margin-bottom: 13px;
    font-weight: bold;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Gallery marquee */
.gallery-section {
    margin-top: 50px;
}

.image-slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    background-color: white;
    border-top: 1px solid #f3f4f6;
    border-bottom: 1px solid #f3f4f6;
}

.gradient-left {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 20%;
    z-index: 10;
    pointer-events: none;
    background: linear-gradient(to right, white, rgba(255, 255, 255, 0));
}

.gradient-right {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 20%;
    z-index: 10;
    pointer-events: none;
    background: linear-gradient(to left, white, rgba(255, 255, 255, 0));
}

.image-slider-track {
    display: flex;
    width: auto;
    position: relative;
    padding: 2.5rem 0;
    animation: scroll 20s linear infinite;
}

.image-slider-container:hover .image-slider-track {
    animation-play-state: paused;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.slide {
    position: relative;
    margin-right: 1rem;
    height: 200px;
    width: auto;
    aspect-ratio: 1.595 / 1;
    flex-shrink: 0;
    border-radius: 0.5rem;
    overflow: hidden;
    background-color: #f3f4f6;
    border: 2px solid #eee;
    cursor: pointer;
}

.slide:hover {
    border: 2px solid #6db9ff;
}

.slide img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    aspect-ratio: 1.595 / 1;
}

.slide-placeholder {
    position: relative;
    margin-right: 1rem;
    height: 200px;
    width: 319px;
    flex-shrink: 0;
    border-radius: 0.5rem;
    overflow: hidden;
    background: linear-gradient(90deg, #eee 25%, #ddd 50%, #eee 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border: 2px solid #eee;
}

@keyframes shimmer {
    0% { background-position: -100% 0; }
    100% { background-position: 100% 0; }
}

.slide-label {
    background-color: black;
    color: white;
    font-size: 0.65rem;
    border-top-right-radius: 0.5rem;
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 0.25rem 0.5rem;
}

/* Packages (reused from features) */
.packages {
    border: 2px dashed #ededed;
    border-radius: 20px;
    padding: 10px 20px 30px;
    margin-top: 30px;
}

.list {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.package-card {
    border-radius: 20px;
    margin: 20px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    border: 4px solid #dbdbdb;
    box-shadow: 0.3px 0.4px 0.3px rgba(0, 0, 0, 0.018), 0.9px 1.3px 1.1px rgba(0, 0, 0, 0.022), 4px 6px 5px rgba(0, 0, 0, 0.03);
    cursor: default;
    transition: all .1s ease-in-out;
    text-align: left;
    padding-bottom: 40px;
    flex: 1;
    min-width: 280px;
    max-width: 400px;
}

.package-card:hover {
    transform: scale(1.02);
    box-shadow: 0.3px 0.4px 0.3px rgba(0, 0, 0, 0.028), 0.9px 1.3px 1.1px rgba(0, 0, 0, 0.042), 4px 6px 5px rgba(0, 0, 0, 0.07);
}

.package-card .ribbon {
    display: block;
    background-color: #fff;
    position: absolute;
    font-weight: bold;
    rotate: -20deg;
    padding: 0 10px;
    padding-right: 25px;
    right: -15px;
    bottom: -10px;
    width: 300px;
    text-align: right;
    box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.08);
}

.packageTitle {
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
}

.packagePrice {
    font-size: 2rem;
    font-weight: bold;
    display: block;
    width: 200px;
    margin: 10px auto 25px;
    padding: 10px 20px;
    border-radius: 10px;
    text-align: center;
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10.9px);
    -webkit-backdrop-filter: blur(10.9px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 2;
}

.packageFeatures ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-left: 50px;
}

.packageFeatures li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.packageFeatures li svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.feature-text {
    border-bottom: 1px dashed transparent;
    transition: border-color 0.2s;
}

.feature-text:hover {
    border-bottom: 1px dashed #aaa;
}

.monthly::before {
    content: '🔥';
    position: absolute;
    left: 5%;
    top: -10px;
    rotate: 5deg;
    transform: rotate(5deg);
    -ms-transform: rotate(5deg);
    -webkit-transform: rotate(5deg);
    opacity: 0.2;
    font-size: 7rem;
}

.lite {
    background: rgb(250, 250, 250);
    background: linear-gradient(349deg, rgba(250, 250, 250, 1) 0%, rgba(250, 250, 250, 1) 48%, rgba(209, 209, 209, 1) 100%);
}

.monthly {
    background: rgb(250, 250, 250);
    background: linear-gradient(349deg, rgba(250, 250, 250, 1) 0%, rgba(250, 250, 250, 1) 48%, rgba(252, 176, 69, 1) 100%);
}

/* Action area */
.action-area {
    text-align: center;
    margin-top: 20px;
}

.btn {
    display: inline-block;
    font-size: 1rem;
    font-weight: bold;
    padding: 10px 24px;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.btn-pro {
    background: linear-gradient(60deg, #f79533, #f37055, #ef4e7b, #a166ab, #5073b8, #1098ad, #07b39b, #6fba82);
    background-size: 300% 300%;
    color: #fff;
    border: none;
    border-radius: 24px;
    padding: 12px 32px;
    font-weight: 600;
    animation: animatedgradient 3s ease infinite alternate;
    box-shadow: 6px 6px 14px rgba(0, 0, 0, 0.15), -3px -3px 10px rgba(255, 255, 255, 0.7), inset 1px 1px 2px rgba(255, 255, 255, 0.25), inset -1px -1px 2px rgba(0, 0, 0, 0.1);
}

.btn-pro:hover {
    color: #fff;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.12), -2px -2px 8px rgba(255, 255, 255, 0.6), inset 1px 1px 2px rgba(255, 255, 255, 0.25), inset -1px -1px 2px rgba(0, 0, 0, 0.1);
    transform: translateY(1px);
}

.arrow {
    font-size: 0.8rem;
    margin-left: 4px;
}

.smallText {
    font-size: 0.8rem;
    margin-top: 10px;
    color: rgba(107, 114, 128, 1);
    text-align: center;
    margin-bottom: 0;
}

@keyframes animatedgradient {
    0% { background-position: 0 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

/* FAQ */
.faqGrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 40px;
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.faqItem h3 {
    font-size: 1.08rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 6px;
}

.faqItem p {
    font-size: 1rem;
    color: #4a5568;
    margin: 0;
    line-height: 1.6;
}

/* Language switcher */
.lang-switcher {
    padding: 32px 0 48px;
    text-align: center;
}

.lang-switcher p {
    display: inline;
    margin-right: 8px;
    color: #6c757d;
    font-size: 14px;
}

.lang-btn {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    font-size: 13px;
    color: #495057;
    text-decoration: none;
    margin: 3px 2px;
    background: #fff;
    transition: border-color 0.15s, background 0.15s;
}

.lang-btn:hover {
    border-color: #0286fb;
    color: #0286fb;
    background: #f0f8ff;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .lite-row {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .lite-col-right {
        order: -1;
        margin-bottom: 24px;
    }

    .lite-col-left,
    .lite-col-right {
        max-width: 100%;
        width: 100%;
        flex: 1 1 auto;
    }

    .preview-canvas {
        max-width: 100%;
        width: 100%;
    }

    .lite-form {
        width: 100%;
        max-width: 100%;
        max-height: none;
    }

    .lite-input,
    .upload-dropzone {
        max-width: 100%;
        width: 100%;
    }

    .download-wrapper {
        grid-template-columns: 1fr;
    }

    .faqGrid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .list {
        flex-direction: column;
        align-items: center;
    }

    .package-card {
        width: 100%;
    }

    .image-slider-track {
        animation: scroll 80s linear infinite;
    }

    .packages {
        padding: 0;
    }

    .package-card {
        margin: 10px 0;
        padding: 15px;
        min-width: auto;
        max-width: 100%;
        width: 100%;
    }
}
