:root {
    --bg-dark: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.7);
    --bg-input: rgba(0, 0, 0, 0.3);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-soft: #cbd5e1;
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --primary-light: #60a5fa;
    --accent: #8b5cf6;
    --android-color: #10b981;
    --windows-color: #0ea5e9;
    --whatsapp-color: #25d366;
    --border: rgba(255, 255, 255, 0.1);
    --focus: #93c5fd;
    --btn-solid: #2563eb;
    --btn-solid-hover: #1d4ed8;

    /* Surfaces and lines that change with the light / dark mode */
    --bg-card-solid: rgba(30, 41, 59, 0.88);
    --nav-bg: rgba(15, 23, 42, 0.7);
    --nav-bg-scrolled: rgba(15, 23, 42, 0.9);
    --nav-border: rgba(255, 255, 255, 0.05);
    --nav-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
    --menu-shadow: 0 24px 40px -20px rgba(0, 0, 0, 0.7);
    --card-shadow: none;
    --fill-1: rgba(255, 255, 255, 0.04);
    --fill-2: rgba(255, 255, 255, 0.06);
    --fill-3: rgba(255, 255, 255, 0.1);
    --fill-4: rgba(255, 255, 255, 0.2);
    --line-2: rgba(255, 255, 255, 0.15);
    --line-3: rgba(255, 255, 255, 0.2);
    --line-4: rgba(255, 255, 255, 0.14);
    --hairline: rgba(255, 255, 255, 0.08);
    --panel: rgba(0, 0, 0, 0.3);
    --placeholder: #64748b;
    --footer-tint: rgba(0, 0, 0, 0.2);
    --soft-blue-text: #bfdbfe;
    --violet-text: #a78bfa;
    --amber-text: #fbbf24;
    --shape-opacity: 0.4;
    --frame-bg: #0b1220;
    --frame-bar: rgba(30, 41, 59, 0.9);
    --frame-shadow: 0 30px 80px rgba(2, 6, 23, 0.6), 0 0 0 6px rgba(255, 255, 255, 0.03), 0 0 120px rgba(59, 130, 246, 0.18);
    color-scheme: dark;

    /* Space on the left and right of the page: 16px on phones, up to 32px on big screens */
    --gutter: clamp(16px, 4vw, 32px);
    --content: 1200px;
    --header-h: 72px;
}

/* The site follows the browser / device setting (auto). The theme button can force light or dark. */
@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) {
        --bg-dark: #f1f5f9;
        --bg-card: rgba(255, 255, 255, 0.85);
        --bg-input: #ffffff;
        --text-main: #0f172a;
        --text-muted: #475569;
        --text-soft: #334155;
        --primary: #2563eb;
        --primary-hover: #1d4ed8;
        --primary-light: #1d4ed8;
        --accent: #7c3aed;
        --android-color: #047857;
        --windows-color: #0369a1;
        --whatsapp-color: #15803d;
        --border: rgba(15, 23, 42, 0.12);
        --focus: #2563eb;

        --bg-card-solid: rgba(255, 255, 255, 0.97);
        --nav-bg: rgba(241, 245, 249, 0.78);
        --nav-bg-scrolled: rgba(241, 245, 249, 0.94);
        --nav-border: rgba(15, 23, 42, 0.08);
        --nav-shadow: 0 10px 30px -14px rgba(15, 23, 42, 0.25);
        --menu-shadow: 0 24px 40px -20px rgba(15, 23, 42, 0.3);
        --card-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 8px 24px -12px rgba(15, 23, 42, 0.12);
        --fill-1: rgba(15, 23, 42, 0.03);
        --fill-2: rgba(15, 23, 42, 0.05);
        --fill-3: rgba(15, 23, 42, 0.07);
        --fill-4: rgba(15, 23, 42, 0.13);
        --line-2: rgba(15, 23, 42, 0.18);
        --line-3: rgba(15, 23, 42, 0.22);
        --line-4: rgba(15, 23, 42, 0.14);
        --hairline: rgba(15, 23, 42, 0.1);
        --panel: rgba(15, 23, 42, 0.05);
        --placeholder: #94a3b8;
        --footer-tint: rgba(15, 23, 42, 0.05);
        --soft-blue-text: #1d4ed8;
        --violet-text: #6d28d9;
        --amber-text: #b45309;
        --shape-opacity: 0.16;
        --frame-bg: #ffffff;
        --frame-bar: rgba(226, 232, 240, 0.95);
        --frame-shadow: 0 30px 70px -20px rgba(15, 23, 42, 0.3), 0 0 0 6px rgba(15, 23, 42, 0.03);
        color-scheme: light;
    }

    :root:not([data-theme="dark"]) select.form-input {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    }
}

:root[data-theme="light"] {
    --bg-dark: #f1f5f9;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-input: #ffffff;
    --text-main: #0f172a;
    --text-muted: #475569;
    --text-soft: #334155;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #1d4ed8;
    --accent: #7c3aed;
    --android-color: #047857;
    --windows-color: #0369a1;
    --whatsapp-color: #15803d;
    --border: rgba(15, 23, 42, 0.12);
    --focus: #2563eb;

    --bg-card-solid: rgba(255, 255, 255, 0.97);
    --nav-bg: rgba(241, 245, 249, 0.78);
    --nav-bg-scrolled: rgba(241, 245, 249, 0.94);
    --nav-border: rgba(15, 23, 42, 0.08);
    --nav-shadow: 0 10px 30px -14px rgba(15, 23, 42, 0.25);
    --menu-shadow: 0 24px 40px -20px rgba(15, 23, 42, 0.3);
    --card-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 8px 24px -12px rgba(15, 23, 42, 0.12);
    --fill-1: rgba(15, 23, 42, 0.03);
    --fill-2: rgba(15, 23, 42, 0.05);
    --fill-3: rgba(15, 23, 42, 0.07);
    --fill-4: rgba(15, 23, 42, 0.13);
    --line-2: rgba(15, 23, 42, 0.18);
    --line-3: rgba(15, 23, 42, 0.22);
    --line-4: rgba(15, 23, 42, 0.14);
    --hairline: rgba(15, 23, 42, 0.1);
    --panel: rgba(15, 23, 42, 0.05);
    --placeholder: #94a3b8;
    --footer-tint: rgba(15, 23, 42, 0.05);
    --soft-blue-text: #1d4ed8;
    --violet-text: #6d28d9;
    --amber-text: #b45309;
    --shape-opacity: 0.16;
    --frame-bg: #ffffff;
    --frame-bar: rgba(226, 232, 240, 0.95);
    --frame-shadow: 0 30px 70px -20px rgba(15, 23, 42, 0.3), 0 0 0 6px rgba(15, 23, 42, 0.03);
    color-scheme: light;
}

:root[data-theme="light"] select.form-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}


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

* {
    margin: 0;
    padding: 0;
}

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

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

@supports (overflow: clip) {
    body {
        overflow-x: clip;
    }
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

a {
    color: inherit;
}

strong {
    font-weight: 600;
}

:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}

.icon {
    width: 1.25em;
    height: 1.25em;
    fill: currentColor;
    flex-shrink: 0;
}

.icon-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -100px;
    z-index: 200;
    padding: 10px 16px;
    border-radius: 10px;
    background: var(--btn-solid);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.skip-link:focus {
    top: 12px;
}

/* ---------- Background Effects ---------- */
.background-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(clamp(60px, 10vw, 100px));
    opacity: var(--shape-opacity);
}

.shape-1 {
    top: -10%;
    left: -10%;
    width: clamp(260px, 45vw, 500px);
    height: clamp(260px, 45vw, 500px);
    background: var(--primary);
}

.shape-2 {
    bottom: -10%;
    right: -10%;
    width: clamp(300px, 50vw, 600px);
    height: clamp(300px, 50vw, 600px);
    background: var(--accent);
}

/* The moving shapes only run on bigger screens: on phones they cost battery and smoothness. */
@media (min-width: 768px) and (prefers-reduced-motion: no-preference) {
    .shape {
        animation: float 10s infinite ease-in-out alternate;
    }

    .shape-2 {
        animation-delay: -5s;
    }
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

/* ---------- Navigation ---------- */
.glass-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--nav-bg);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--nav-border);
    transition: background-color 0.3s, box-shadow 0.3s;
}

.glass-nav.is-scrolled {
    background: var(--nav-bg-scrolled);
    box-shadow: var(--nav-shadow);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: min(100% - 2 * var(--gutter), var(--content));
    min-height: var(--header-h);
    margin-inline: auto;
}

.logo {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: clamp(20px, 1vw + 16px, 24px);
    font-weight: 800;
    letter-spacing: 1px;
    text-decoration: none;
    white-space: nowrap;
}

.logo span {
    color: var(--primary);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: clamp(18px, 2.5vw, 30px);
}

.site-nav a:not(.btn-primary-small) {
    padding: 12px 0;
    color: var(--text-main);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.site-nav a:not(.btn-primary-small):hover {
    color: var(--primary);
}

/* The page you are on */
.site-nav a[aria-current="page"]:not(.btn-primary-small) {
    position: relative;
    color: var(--primary-light);
}

@media (min-width: 1000px) {
    .site-nav a[aria-current="page"]:not(.btn-primary-small)::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 2px;
        border-radius: 2px;
        background: linear-gradient(90deg, var(--primary), var(--accent));
    }
}

.menu-toggle {
    display: none;
}

/* Light / dark / auto button (shown once JavaScript is running) */
.theme-toggle {
    display: none;
}

.js .theme-toggle {
    display: inline-grid;
    flex-shrink: 0;
    place-items: center;
    order: 3;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--fill-2);
    color: var(--text-main);
    cursor: pointer;
    transition: border-color 0.3s, background-color 0.3s;
}

.site-nav {
    order: 2;
}

.theme-toggle .ti {
    display: none;
    width: 20px;
    height: 20px;
}

html:not([data-theme-pref]) .ti-auto,
html[data-theme-pref="system"] .ti-auto,
html[data-theme-pref="light"] .ti-light,
html[data-theme-pref="dark"] .ti-dark {
    display: block;
}

@media (hover: hover) {
    .theme-toggle:hover {
        border-color: var(--primary);
        background: rgba(59, 130, 246, 0.12);
    }
}

/* Phones and small tablets: the links fold into a menu button. */
@media (max-width: 999.98px) {
    .js .theme-toggle {
        order: 1;
        margin-left: auto;
    }

    .js .menu-toggle {
        order: 2;
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        border: 1px solid var(--border);
        border-radius: 12px;
        background: var(--fill-2);
        cursor: pointer;
    }

    .menu-bar {
        width: 20px;
        height: 2px;
        border-radius: 2px;
        background: var(--text-main);
        transition: transform 0.3s, opacity 0.3s;
    }

    .menu-toggle[aria-expanded="true"] .menu-bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle[aria-expanded="true"] .menu-bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle[aria-expanded="true"] .menu-bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .js .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        max-height: calc(100vh - var(--header-h));
        overflow-y: auto;
        padding: 12px var(--gutter) 20px;
        background: var(--bg-dark);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--menu-shadow);
    }

    .js .site-nav.is-open {
        display: flex;
    }

    .js .site-nav a:not(.btn-primary-small) {
        display: flex;
        align-items: center;
        min-height: 48px;
        padding: 12px 10px;
        border-radius: 10px;
    }

    .js .site-nav a:not(.btn-primary-small):hover {
        background: var(--fill-2);
    }

    .js .site-nav a[aria-current="page"]:not(.btn-primary-small) {
        background: rgba(59, 130, 246, 0.12);
    }

    .js .site-nav .btn-primary-small {
        margin-top: 8px;
        min-height: 48px;
    }

    /* Without JavaScript the links simply wrap under the logo. */
    html:not(.js) .nav-inner {
        flex-wrap: wrap;
        padding-block: 12px;
    }

    html:not(.js) .site-nav {
        flex-wrap: wrap;
        gap: 4px 18px;
    }
}

/* ---------- Buttons ---------- */
.btn-primary,
.btn-primary-small,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s, border-color 0.3s;
}

.btn-primary,
.btn-primary-small {
    border: none;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
}

.btn-primary-small {
    min-height: 42px;
    padding: 10px 20px;
}

.btn-outline {
    border: 1px solid var(--line-3);
    background: var(--fill-1);
    color: var(--text-main);
}

@media (hover: hover) {
    .btn-primary:hover,
    .btn-primary-small:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
    }

    .btn-outline:hover {
        border-color: var(--primary);
        background: rgba(59, 130, 246, 0.12);
    }
}

/* ---------- Layout & Typography ---------- */
main {
    width: min(100% - 2 * var(--gutter), var(--content));
    margin-inline: auto;
}

/* Soft fade-in when a page opens */
@media (prefers-reduced-motion: no-preference) {
    main {
        animation: page-in 0.5s ease-out both;
    }
}

@keyframes page-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}

/* ---------- Page header (Apps, Buy, Contact) ---------- */
.page-hero {
    max-width: 760px;
    margin-inline: auto;
    padding-top: clamp(44px, 8vw, 88px);
    text-align: center;
}

.page-hero h1 {
    margin-bottom: 14px;
    font-size: clamp(34px, 3.5vw + 18px, 54px);
    font-weight: 800;
    line-height: 1.15;
    text-wrap: balance;
}

.page-hero p {
    color: var(--text-muted);
    font-size: clamp(17px, 0.5vw + 15px, 19px);
}

.page-hero + .section {
    padding-top: clamp(28px, 5vw, 56px);
}

.section {
    padding-block: clamp(48px, 8vw, 96px);
}

section[id] {
    scroll-margin-top: calc(var(--header-h) + 12px);
}

.section-title {
    margin-bottom: clamp(28px, 5vw, 50px);
    font-size: clamp(28px, 2vw + 20px, 40px);
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
}

.gradient-text {
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ---------- Hero Section ---------- */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-block: clamp(56px, 11vw, 120px) clamp(16px, 3vw, 32px);
    text-align: center;
}

.hero-content {
    max-width: 820px;
}

.badge {
    display: inline-block;
    margin-bottom: 20px;
    padding: 8px 16px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 50px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-light);
    font-size: clamp(14px, 0.4vw + 12.5px, 16px);
    font-weight: 600;
}

.hero h1 {
    margin-bottom: 20px;
    font-size: clamp(36px, 5.5vw + 14px, 64px);
    font-weight: 800;
    line-height: 1.1;
    overflow-wrap: break-word;
    text-wrap: balance;
}

.hero p {
    max-width: 600px;
    margin: 0 auto clamp(28px, 4vw, 40px);
    color: var(--text-muted);
    font-size: clamp(17px, 0.6vw + 14.5px, 20px);
}

.cta-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 16px;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 28px;
    margin-top: clamp(28px, 4vw, 44px);
    list-style: none;
    color: var(--text-soft);
    font-weight: 600;
}

.hero-points li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-points .icon {
    color: var(--android-color);
}

/* ---------- Glass Cards ---------- */
.glass-card {
    padding: clamp(20px, 4vw, 30px);
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--bg-card);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: var(--card-shadow);
    transition: transform 0.3s, border-color 0.3s;
}

@media (hover: hover) {
    .product-card:hover,
    .contact-card:hover {
        transform: translateY(-5px);
        border-color: var(--line-3);
    }
}

/* ---------- Products Grid ---------- */
.product-grid {
    display: grid;
    /* As many 300px columns as fit; one full-width column on phones. */
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: clamp(16px, 3vw, 30px);
}

/* Four products sit as a tidy 2 x 2 instead of three plus one. */
@media (min-width: 640px) {
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    container-type: inline-size;
}

.product-icon,
.contact-icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
    border-radius: 16px;
    background: rgba(59, 130, 246, 0.12);
    color: var(--primary-light);
}

.product-icon .icon,
.contact-icon .icon {
    width: 30px;
    height: 30px;
}

.product-icon.android {
    background: rgba(16, 185, 129, 0.12);
    color: var(--android-color);
}

.product-icon.web {
    background: rgba(139, 92, 246, 0.14);
    color: var(--violet-text);
}

.product-icon.windows {
    background: rgba(14, 165, 233, 0.12);
    color: var(--windows-color);
}

.product-card h2,
.product-card h3 {
    margin-bottom: 10px;
    padding-right: 4px;
    font-size: clamp(21px, 0.8vw + 17px, 24px);
    line-height: 1.3;
}

.platform-badge {
    display: inline-block;
    width: fit-content;
    margin-bottom: 15px;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}

.platform-badge.android {
    border: 1px solid rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.1);
    color: var(--android-color);
}

.platform-badge.web {
    border: 1px solid rgba(139, 92, 246, 0.35);
    background: rgba(139, 92, 246, 0.12);
    color: var(--violet-text);
}

.platform-badge.windows {
    border: 1px solid rgba(14, 165, 233, 0.3);
    background: rgba(14, 165, 233, 0.1);
    color: var(--windows-color);
}

.product-desc {
    flex-grow: 1;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.price {
    margin-bottom: 20px;
    color: var(--text-main);
    font-size: clamp(28px, 1vw + 24px, 32px);
    font-weight: 800;
}

.price span {
    color: var(--text-muted);
    font-size: 16px;
    font-weight: 400;
}

.soon-badge {
    position: absolute;
    top: clamp(20px, 4vw, 30px);
    right: clamp(20px, 4vw, 30px);
    padding: 4px 10px;
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 50px;
    background: rgba(245, 158, 11, 0.12);
    color: var(--amber-text);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

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

/* Side by side when both fit on one line, otherwise one under the other (never a broken label). */
.product-actions > * {
    flex: 1 1 0;
    min-width: max-content;
    white-space: nowrap;
}

/* Narrow cards: every card stacks its buttons, so prices and buttons line up across the row. */
@container (max-width: 270px) {
    .product-actions > * {
        flex-basis: 100%;
    }
}

.btn-download,
.btn-buy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 12px;
    color: #fff;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s;
}

.btn-download {
    background: var(--fill-3);
    color: var(--text-main);
}

.btn-download:hover {
    background: var(--fill-4);
}

.btn-buy {
    background: var(--btn-solid);
}

.btn-buy:hover {
    background: var(--btn-solid-hover);
}

.btn-buy.btn-soft {
    background: rgba(59, 130, 246, 0.16);
    color: var(--soft-blue-text);
}

.btn-buy.btn-soft:hover {
    background: rgba(59, 130, 246, 0.28);
}

.btn-download.is-disabled {
    border: 1px dashed var(--line-2);
    background: var(--fill-1);
    color: var(--text-muted);
    cursor: not-allowed;
}

.product-meta {
    margin: -6px 0 16px;
    color: var(--text-muted);
    font-size: 14px;
}

/* ---------- Payment Form ---------- */
.payment-card {
    display: grid;
    gap: clamp(24px, 4vw, 40px);
    max-width: 1000px;
    margin-inline: auto;
}

/* Laptops and big tablets: instructions on the left, form on the right. */
@media (min-width: 900px) {
    .payment-card {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}

.payment-instructions {
    padding: clamp(18px, 3vw, 24px);
    border-radius: 16px;
    background: var(--panel);
}

.payment-instructions h2,
.payment-instructions h3 {
    margin-bottom: 16px;
    font-size: 20px;
}

.steps {
    display: grid;
    gap: 16px;
    list-style: none;
    counter-reset: step;
}

.steps li {
    position: relative;
    padding-left: 44px;
    color: var(--text-soft);
    counter-increment: step;
}

.steps a {
    color: var(--primary-light);
    font-weight: 600;
}

.steps li::before {
    content: counter(step);
    position: absolute;
    top: -1px;
    left: 0;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.bkash-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-top: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.08);
}

.bkash-number {
    color: var(--primary-light);
    font-size: clamp(20px, 1vw + 16px, 24px);
    font-weight: 800;
    letter-spacing: 1px;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.btn-copy {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    background: var(--fill-3);
    color: var(--text-main);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-copy:hover {
    background: var(--fill-4);
}

.amount-line {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
}

.amount-line strong {
    color: var(--text-main);
    font-size: 18px;
}

.payment-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field label {
    font-weight: 600;
}

.form-input {
    width: 100%;
    min-height: 52px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-input);
    color: var(--text-main);
    /* 16px stops iPhones from zooming in when a field is tapped. */
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-input::placeholder {
    color: var(--placeholder);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.35);
}

select.form-input {
    padding-right: 48px;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-position: right 16px center;
    background-repeat: no-repeat;
    background-size: 18px;
    cursor: pointer;
}

.form-input option {
    background: var(--bg-dark);
    color: var(--text-main);
}

.form-input option:disabled {
    color: var(--placeholder);
}

.hidden-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.w-100 {
    width: 100%;
    margin-top: 6px;
    border-radius: 12px;
}

.form-note {
    color: var(--text-muted);
    font-size: 14px;
    text-align: center;
}

/* ---------- Contact ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: clamp(16px, 3vw, 30px);
}

.contact-card {
    display: flex;
    flex-direction: column;
}

.contact-card h2,
.contact-card h3 {
    margin-bottom: 8px;
    font-size: 22px;
}

.contact-card p {
    flex-grow: 1;
    margin-bottom: 20px;
    color: var(--text-muted);
    overflow-wrap: anywhere;
}

.contact-card p strong {
    color: var(--text-main);
}

.contact-card .btn-primary,
.contact-card .btn-download {
    width: 100%;
    border-radius: 12px;
}

.contact-icon.whatsapp {
    background: rgba(37, 211, 102, 0.12);
    color: var(--whatsapp-color);
}

/* ---------- Footer ---------- */
.site-footer {
    margin-top: clamp(40px, 8vw, 80px);
    padding: clamp(32px, 5vw, 48px) var(--gutter) max(32px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--hairline);
    background: linear-gradient(to bottom, transparent, var(--footer-tint));
    color: var(--text-muted);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: min(100%, var(--content));
    margin-inline: auto;
}

.logo-small {
    color: var(--text-main);
    font-size: 22px;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.logo-small:hover {
    opacity: 1;
}

.footer-inner p {
    font-size: 15px;
    letter-spacing: 0.2px;
}

/* ---------- Toast (small message at the bottom) ---------- */
.toast {
    position: fixed;
    left: 50%;
    bottom: max(24px, env(safe-area-inset-bottom));
    z-index: 300;
    max-width: calc(100% - 32px);
    padding: 12px 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #1e293b;
    color: #fff;
    text-align: center;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 16px);
    transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
    pointer-events: none;
}

.toast.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

/* ---------- Responsive ---------- */

/* Phones */
@media (max-width: 599.98px) {
    .cta-group > a {
        flex: 1 1 100%;
    }

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

    /* Plain cards scroll more smoothly on budget phones than blurred glass. */
    .glass-card {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        background: var(--bg-card-solid);
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 14px;
    }
}

/* Very small phones (320px wide) */
@media (max-width: 359.98px) {
    .logo {
        font-size: 19px;
        letter-spacing: 0.5px;
    }

    .bkash-box .btn-copy {
        flex: 1 1 100%;
        justify-content: center;
    }
}

/* Phones turned sideways: keep the hero short */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding-block: 40px 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* ---------- TextSwap PDF page ---------- */
.ts-hero {
    padding-bottom: clamp(24px, 4vw, 40px);
}

.ts-hero .btn-primary .icon {
    width: 1.1em;
    height: 1.1em;
    transition: transform 0.3s;
}

@media (hover: hover) {
    .ts-hero .btn-primary:hover .icon,
    .ts-cta .btn-primary:hover .icon {
        transform: translateX(4px);
    }
}

.ts-preview {
    max-width: 1040px;
    margin-inline: auto;
    padding-bottom: clamp(24px, 5vw, 48px);
}

.ts-frame {
    overflow: hidden;
    border: 1px solid var(--line-4);
    border-radius: 18px;
    background: var(--frame-bg);
    box-shadow: var(--frame-shadow);
}

.ts-frame-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--frame-bar);
}

.ts-frame-bar span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--fill-4);
}

.ts-frame-bar span:nth-child(1) { background: #f87171; }
.ts-frame-bar span:nth-child(2) { background: #fbbf24; }
.ts-frame-bar span:nth-child(3) { background: #34d399; }

.ts-frame-bar em {
    flex: 1;
    max-width: 280px;
    margin-left: 12px;
    padding: 4px 12px;
    border-radius: 8px;
    background: var(--panel);
    color: var(--text-muted);
    font-size: 13px;
    font-style: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ts-frame img {
    display: block;
    width: 100%;
    height: auto;
}

.ts-privacy {
    display: flex;
    align-items: center;
    gap: clamp(18px, 4vw, 32px);
    max-width: 900px;
    margin-inline: auto;
    border-color: rgba(16, 185, 129, 0.3);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), var(--bg-card) 60%);
}

.ts-privacy-icon {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: rgba(16, 185, 129, 0.15);
    color: var(--android-color);
}

.ts-privacy-icon .icon {
    width: 36px;
    height: 36px;
}

.ts-privacy h2 {
    margin-bottom: 8px;
    font-size: clamp(22px, 1.2vw + 18px, 28px);
    line-height: 1.25;
}

.ts-privacy p {
    color: var(--text-soft);
}

.ts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: clamp(16px, 3vw, 24px);
}

.ts-card h3 {
    margin-bottom: 8px;
    font-size: 20px;
}

.ts-card p {
    color: var(--text-muted);
}

.ts-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(139, 92, 246, 0.18));
    color: var(--primary-light);
}

.ts-icon .icon {
    width: 26px;
    height: 26px;
}

@media (hover: hover) {
    .ts-card:hover {
        transform: translateY(-5px);
        border-color: rgba(96, 165, 250, 0.4);
    }
}

.ts-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: clamp(16px, 3vw, 24px);
    list-style: none;
}

.ts-steps li {
    position: relative;
    text-align: center;
}

/* Six steps sit as 3 + 3, four as 4, instead of 4 + 2 */
@media (min-width: 900px) {
    .ts-steps.cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.ts-steps .icon {
    width: 34px;
    height: 34px;
    margin-bottom: 14px;
    color: var(--primary-light);
}

.ts-steps h3 {
    margin-bottom: 8px;
    font-size: 20px;
}

.ts-steps p {
    color: var(--text-muted);
}

.ts-step-num {
    position: absolute;
    top: 14px;
    left: 16px;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-size: 15px;
    font-weight: 800;
}

.ts-faq {
    display: grid;
    gap: 12px;
    max-width: 820px;
    margin-inline: auto;
}

.ts-faq details {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--bg-card);
    transition: border-color 0.3s;
}

.ts-faq details[open] {
    border-color: rgba(96, 165, 250, 0.4);
}

.ts-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 56px;
    padding: 14px 20px;
    border-radius: 16px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.ts-faq summary::-webkit-details-marker {
    display: none;
}

.ts-faq summary::after {
    content: "+";
    flex-shrink: 0;
    color: var(--primary-light);
    font-size: 24px;
    font-weight: 400;
    line-height: 1;
    transition: transform 0.3s;
}

.ts-faq details[open] summary::after {
    transform: rotate(45deg);
}

.ts-faq summary:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
}

.ts-faq details p {
    padding: 0 20px 18px;
    color: var(--text-muted);
}

.ts-cta {
    max-width: 820px;
    margin-inline: auto;
    padding-block: clamp(32px, 6vw, 56px);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(139, 92, 246, 0.18));
    text-align: center;
}

.ts-cta h2 {
    margin-bottom: 10px;
    font-size: clamp(26px, 2vw + 18px, 38px);
    line-height: 1.2;
}

.ts-cta p {
    margin-bottom: 24px;
    color: var(--text-soft);
}

.ts-cta .btn-primary .icon,
.ts-cta .btn-outline .icon {
    width: 1.1em;
    height: 1.1em;
}

@media (max-width: 640px) {
    .ts-privacy {
        flex-direction: column;
        text-align: center;
    }

    .ts-frame-bar em {
        display: none;
    }
}

/* Featured banner on the home page */
.ts-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px 24px;
    border-color: rgba(96, 165, 250, 0.35);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(139, 92, 246, 0.18));
}

.ts-banner h2 {
    margin-bottom: 6px;
    font-size: clamp(22px, 1.2vw + 18px, 28px);
    line-height: 1.25;
}

.ts-banner p {
    max-width: 560px;
    color: var(--text-soft);
}

/* Very large screens: let the page breathe a little wider. */
@media (min-width: 1800px) {
    :root {
        --content: 1360px;
    }
}

/* TextSwap preview: the screenshot that matches the light / dark mode in use */
.ts-frame .shot-light {
    display: none;
}

@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) .ts-frame .shot-light {
        display: block;
    }

    :root:not([data-theme="dark"]) .ts-frame .shot-dark {
        display: none;
    }
}

:root[data-theme="light"] .ts-frame .shot-light {
    display: block;
}

:root[data-theme="light"] .ts-frame .shot-dark {
    display: none;
}

/* Phones: a little less space between the logo and the buttons */
@media (max-width: 599.98px) {
    .nav-inner {
        gap: 8px;
    }
}

/* =====================================================================
   Site structure: language switch, Products menu, footer, categories
   ===================================================================== */

/* ---------- Language switch (EN | বাং) ---------- */
.lang-toggle {
    display: none;
}

.js .lang-toggle {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    order: 3;
    height: 44px;
    padding: 3px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--fill-2);
    color: var(--text-main);
    cursor: pointer;
    transition: border-color 0.3s;
}

.lang-toggle .lt {
    min-width: 36px;
    padding: 6px 8px;
    border-radius: 999px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.6;
    text-align: center;
    transition: background-color 0.25s, color 0.25s;
}

html:not([lang="bn"]) .lang-toggle .lt-en,
html[lang="bn"] .lang-toggle .lt-bn {
    background: var(--btn-solid);
    color: #fff;
}

@media (hover: hover) {
    .lang-toggle:hover {
        border-color: var(--primary);
    }
}

/* ---------- Products drop-down ---------- */
.nav-drop {
    position: relative;
}

.nav-drop-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 0;
    border: 0;
    background: none;
    color: var(--text-main);
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s;
}

.nav-drop-btn .icon {
    width: 16px;
    height: 16px;
    transition: transform 0.25s;
}

.nav-drop-btn[aria-expanded="true"] .icon {
    transform: rotate(180deg);
}

.nav-drop-btn:hover,
.nav-drop-btn.is-current {
    color: var(--primary-light);
}

.nav-drop-menu {
    display: none;
}

.nav-drop-menu a {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 10px 12px;
    border-radius: 12px;
    text-decoration: none;
}

.nav-drop-menu a .icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-top: 3px;
    color: var(--primary-light);
}

.nav-drop-menu a strong {
    display: block;
    color: var(--text-main);
    font-weight: 600;
}

.nav-drop-menu a small {
    display: block;
    margin-top: 2px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.45;
}

.nav-drop-menu .nav-drop-all {
    align-items: center;
    margin-top: 4px;
    border-top: 1px solid var(--hairline);
    border-radius: 0 0 12px 12px;
    color: var(--soft-blue-text);
    font-weight: 600;
}

.nav-drop-menu .nav-drop-all .icon {
    margin-top: 0;
    width: 18px;
    height: 18px;
}

.nav-drop-menu a[aria-current="page"] {
    background: rgba(59, 130, 246, 0.12);
}

@media (min-width: 1000px) {
    .nav-drop-menu {
        position: absolute;
        top: calc(100% + 10px);
        left: 50%;
        z-index: 120;
        width: 380px;
        padding: 8px;
        border: 1px solid var(--border);
        border-radius: 18px;
        background: var(--bg-card-solid);
        -webkit-backdrop-filter: blur(16px);
        backdrop-filter: blur(16px);
        box-shadow: var(--menu-shadow);
        transform: translateX(-50%);
    }

    /* keeps the menu open while the pointer crosses the small gap under the button */
    .nav-drop-menu::before {
        content: "";
        position: absolute;
        inset: -12px 0 auto;
        height: 12px;
    }

    .nav-drop-btn[aria-expanded="true"] + .nav-drop-menu {
        display: block;
    }

    .site-nav .nav-drop-menu a[aria-current="page"]::after {
        display: none;
    }
}

@media (min-width: 1000px) and (hover: hover) {
    .nav-drop:hover .nav-drop-menu {
        display: block;
    }

    .nav-drop:hover .nav-drop-btn {
        color: var(--primary-light);
    }

    .nav-drop-menu a:hover {
        background: var(--fill-2);
    }
}

@media (max-width: 999.98px) {
    .js .lang-toggle {
        order: 1;
        margin-left: auto;
    }

    .js .theme-toggle {
        margin-left: 0;
    }

    .nav-drop-btn {
        display: flex;
        justify-content: space-between;
        width: 100%;
        min-height: 48px;
        padding: 12px 10px;
        border-radius: 10px;
    }

    .nav-drop-btn:hover {
        background: var(--fill-2);
    }

    .nav-drop-btn[aria-expanded="true"] + .nav-drop-menu {
        display: grid;
        gap: 2px;
        margin: 2px 0 6px 10px;
        padding-left: 10px;
        border-left: 2px solid var(--hairline);
    }

    .js .site-nav .nav-drop-menu a:not(.btn-primary-small) {
        align-items: flex-start;
        min-height: 0;
        padding: 10px;
    }
}

/* Without JavaScript the Products links are simply listed. */
html:not(.js) .nav-drop-btn .icon {
    display: none;
}

html:not(.js) .nav-drop-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
}

html:not(.js) .nav-drop-menu a small {
    display: none;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
    padding-top: clamp(20px, 3vw, 32px);
    color: var(--text-muted);
    font-size: 14px;
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    list-style: none;
}

.breadcrumb li + li::before {
    content: "/";
    margin-right: 8px;
    opacity: 0.5;
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--primary-light);
}

.breadcrumb [aria-current="page"] {
    color: var(--text-main);
    font-weight: 600;
}

.breadcrumb + .page-hero {
    padding-top: clamp(20px, 4vw, 40px);
}

.breadcrumb + .hero {
    padding-top: clamp(28px, 6vw, 64px);
}

/* ---------- Category tiles, group headings, chips ---------- */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: clamp(16px, 3vw, 30px);
}

.cat-card {
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

.cat-card h3 {
    margin-bottom: 8px;
    font-size: 22px;
    line-height: 1.3;
}

.cat-card p {
    flex-grow: 1;
    margin-bottom: 18px;
    color: var(--text-muted);
}

.cat-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--soft-blue-text);
    font-size: 14px;
    font-weight: 600;
}

.cat-meta .icon {
    width: 18px;
    height: 18px;
    transition: transform 0.3s;
}

@media (hover: hover) {
    .cat-card:hover {
        transform: translateY(-5px);
        border-color: var(--line-3);
    }

    .cat-card:hover .cat-meta .icon,
    .card-link:hover .icon {
        transform: translateX(4px);
    }
}

.product-icon.auto,
.ts-icon.auto {
    background: rgba(245, 158, 11, 0.14);
    color: var(--amber-text);
}

.platform-badge.auto {
    border: 1px solid rgba(245, 158, 11, 0.35);
    background: rgba(245, 158, 11, 0.12);
    color: var(--amber-text);
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    margin-top: 16px;
    color: var(--soft-blue-text);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

.card-link .icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s;
}

.card-title-link {
    color: inherit;
    text-decoration: none;
}

.card-title-link:hover {
    color: var(--primary-light);
}

.group-section {
    padding-block: clamp(28px, 5vw, 48px);
}

.group-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    margin-bottom: clamp(18px, 3vw, 28px);
}

.group-title {
    display: flex;
    align-items: center;
    gap: 16px;
}

.group-title .product-icon {
    flex-shrink: 0;
    margin-bottom: 0;
}

.group-title h2 {
    font-size: clamp(22px, 1.2vw + 18px, 28px);
    line-height: 1.25;
}

.group-title p {
    color: var(--text-muted);
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: clamp(24px, 4vw, 36px);
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 18px;
    border: 1px solid var(--line-3);
    border-radius: 999px;
    background: var(--fill-1);
    color: var(--text-main);
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.3s, background-color 0.3s;
}

.chip .icon {
    width: 18px;
    height: 18px;
    color: var(--primary-light);
}

.chip:hover {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.12);
}

/* ---------- Product pages ---------- */
.section.tight {
    padding-block: clamp(12px, 2.5vw, 28px);
}

.section-lead {
    max-width: 680px;
    margin: 0 auto clamp(24px, 4vw, 40px);
    color: var(--text-muted);
    font-size: clamp(16px, 0.4vw + 15px, 18px);
    text-align: center;
}

.section-title:has(+ .section-lead) {
    margin-bottom: 14px;
}

.section-cta {
    margin-top: clamp(24px, 4vw, 40px);
}

.prod-hero {
    padding-bottom: clamp(16px, 3vw, 32px);
}

.prod-hero .btn-primary .icon {
    width: 1.1em;
    height: 1.1em;
}

.fact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
    gap: clamp(12px, 2vw, 20px);
}

.fact {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 18px;
}

.fact-icon {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(59, 130, 246, 0.12);
    color: var(--primary-light);
}

.fact-icon .icon {
    width: 22px;
    height: 22px;
}

.fact-label {
    display: block;
    color: var(--text-muted);
    font-size: 13px;
}

.fact strong {
    font-size: 18px;
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(16px, 3vw, 30px);
}

@media (min-width: 900px) {
    .split {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.split h3 {
    margin-bottom: 14px;
    font-size: 20px;
}

.split p {
    color: var(--text-soft);
}

.table-wrap {
    margin-bottom: 16px;
    overflow-x: auto;
}

.mini-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.mini-table th,
.mini-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--hairline);
    text-align: left;
    white-space: nowrap;
}

.mini-table th {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
}

.code-line {
    margin-top: 10px;
    padding: 12px 14px;
    border: 1px dashed var(--line-2);
    border-radius: 12px;
    background: var(--panel);
    color: var(--text-main) !important;
    font-weight: 600;
}

.plain-steps {
    display: grid;
    gap: 14px;
    list-style: none;
    counter-reset: ps;
}

.plain-steps.wide {
    max-width: 760px;
    margin-inline: auto;
}

.plain-steps li {
    position: relative;
    min-height: 30px;
    padding-left: 44px;
    color: var(--text-soft);
    counter-increment: ps;
}

.plain-steps li::before {
    content: counter(ps);
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.plain-steps strong {
    color: var(--text-main);
}

.notes-grid {
    margin-top: clamp(16px, 3vw, 30px);
}

.notice {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    border-color: rgba(245, 158, 11, 0.35);
}

.notice > .icon {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    color: var(--amber-text);
}

.notice h2 {
    margin-bottom: 4px;
    font-size: 20px;
}

.notice p {
    color: var(--text-soft);
}

/* ---------- Footer ---------- */
.footer-grid {
    display: grid;
    grid-template-columns: 1.7fr repeat(3, 1fr);
    gap: clamp(24px, 4vw, 48px);
    width: min(100%, var(--content));
    margin-inline: auto;
}

.footer-brand p {
    max-width: 36ch;
    margin: 12px 0 18px;
}

.footer-wa {
    min-height: 44px;
    padding: 10px 20px;
    font-size: 15px;
}

.footer-wa .icon {
    width: 18px;
    height: 18px;
}

.footer-col h2 {
    margin-bottom: 14px;
    color: var(--text-main);
    font-size: 15px;
    font-weight: 700;
}

.footer-col ul {
    display: grid;
    gap: 9px;
    list-style: none;
}

.footer-col a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    width: min(100%, var(--content));
    margin: clamp(24px, 4vw, 40px) auto 0;
    padding-top: 20px;
    border-top: 1px solid var(--hairline);
    font-size: 14px;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

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

    .footer-bottom {
        flex-direction: column;
    }
}

@media (max-width: 359.98px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================================================================
   Bangla: taller lines, no letter-spacing, room for marks above the letters
   ===================================================================== */
html[lang="bn"] body {
    font-family: 'Outfit', 'Noto Sans Bengali', 'Nirmala UI', 'Vrinda', system-ui, sans-serif;
    line-height: 1.85;
}

html[lang="bn"] h1,
html[lang="bn"] h2,
html[lang="bn"] h3 {
    line-height: 1.45;
    letter-spacing: 0;
}

html[lang="bn"] .hero h1,
html[lang="bn"] .page-hero h1 {
    line-height: 1.4;
}

/* The gradient fill is clipped to the text box; give Bangla vowel marks extra room. */
html[lang="bn"] .gradient-text {
    padding-block: 0.12em;
}

html[lang="bn"] .soon-badge,
html[lang="bn"] .platform-badge,
html[lang="bn"] .badge {
    letter-spacing: 0;
    text-transform: none;
}

html[lang="bn"] .btn-primary,
html[lang="bn"] .btn-primary-small,
html[lang="bn"] .btn-outline,
html[lang="bn"] .btn-download,
html[lang="bn"] .btn-buy,
html[lang="bn"] .chip {
    line-height: 1.5;
}

html[lang="bn"] .nav-drop-menu a small,
html[lang="bn"] .fact-label {
    line-height: 1.6;
}

html[lang="bn"] .ts-faq summary {
    line-height: 1.6;
}

/* Small phones: one compact language button (it shows the language you can switch to) */
@media (max-width: 400px) {
    .nav-inner {
        gap: 6px;
    }

    .logo {
        font-size: 18px;
        letter-spacing: 0.3px;
    }

    .js .theme-toggle,
    .js .menu-toggle,
    .js .lang-toggle {
        width: auto;
        height: 40px;
    }

    .js .theme-toggle,
    .js .menu-toggle {
        width: 40px;
    }

    .js .lang-toggle {
        padding: 0 4px;
    }

    .lang-toggle .lt {
        display: none;
        min-width: 38px;
        background: none !important;
        color: var(--text-main) !important;
    }

    html:not([lang="bn"]) .lang-toggle .lt-bn,
    html[lang="bn"] .lang-toggle .lt-en {
        display: block;
    }
}

/* ---------- Free apps (home page showcase and SlipSnap page) ---------- */
.badge-free {
    border-color: rgba(16, 185, 129, 0.45);
    background: rgba(16, 185, 129, 0.14);
    color: #34d399;
}

@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) .badge-free { color: #047857; }
}

:root[data-theme="light"] .badge-free { color: #047857; }

.fact-free .fact-icon {
    background: rgba(16, 185, 129, 0.16);
    color: var(--android-color);
}

.fact-free strong { color: var(--android-color); }

.shot-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: clamp(16px, 3vw, 28px);
    max-width: 900px;
    margin: 0 auto;
}

.shot { text-align: center; }

.shot img {
    display: block;
    width: 100%;
    max-width: 280px;
    height: auto;
    margin: 0 auto 12px;
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: 0 18px 40px -18px rgba(2, 6, 23, 0.55);
}

.shot figcaption {
    max-width: 280px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 15px;
}

.free-showcase { position: relative; }

.free-head {
    max-width: 640px;
    margin: 0 auto clamp(22px, 4vw, 34px);
    text-align: center;
}

.free-head h2 {
    margin-bottom: 8px;
    font-size: clamp(26px, 2vw + 18px, 38px);
    line-height: 1.2;
}

.free-head p { color: var(--text-muted); }

.free-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: clamp(16px, 3vw, 28px);
    max-width: 920px;
    margin: 0 auto;
}

.free-card {
    position: relative;
    overflow: hidden;
    padding-top: clamp(30px, 5vw, 38px);
    border: 2px solid rgba(16, 185, 129, 0.55);
    background: linear-gradient(160deg, rgba(16, 185, 129, 0.16), rgba(59, 130, 246, 0.1)), var(--bg-card);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.08), 0 20px 50px -24px rgba(16, 185, 129, 0.55);
}

.free-ribbon {
    position: absolute;
    top: 0;
    right: 0;
    padding: 6px 18px 6px 22px;
    border-radius: 0 0 0 18px;
    background: #059669;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.free-card h3 { margin: 12px 0 8px; font-size: clamp(22px, 1vw + 18px, 26px); }

.free-card p { margin-bottom: 18px; color: var(--text-soft); }

.free-card .cta-group { justify-content: flex-start; }

@media (hover: hover) {
    .free-card:hover {
        transform: translateY(-5px);
        border-color: #10b981;
    }
}

.price-free { color: var(--android-color); }

.soon-badge.free-tag {
    border-color: transparent;
    background: #059669;
    color: #fff;
}

.free-list {
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
    color: var(--text-soft);
    font-size: 15px;
}

.free-list li {
    position: relative;
    padding: 5px 0 5px 24px;
}

.free-list li::before {
    content: "";
    position: absolute;
    top: 12px;
    left: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--android-color);
}

.notice-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
    border-color: rgba(245, 158, 11, 0.45);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(245, 158, 11, 0.04)), var(--bg-card);
}

.notice-card h2 { margin-bottom: 8px; font-size: clamp(18px, 0.8vw + 15px, 22px); }

.notice-card ul { margin: 0; padding-left: 20px; color: var(--text-soft); }

.notice-card li { padding: 2px 0; }

.pp-step { padding-top: 48px; }
.pp-step h3 { margin-bottom: 12px; }
.pp-art {
    display: block;
    width: 100%;
    max-width: 190px;
    height: auto;
    margin: 0 auto 14px;
    filter: drop-shadow(0 12px 20px rgba(2, 6, 23, 0.35));
}
.pp-done { width: 64px !important; height: 64px !important; margin: 24px auto 14px !important; color: var(--android-color); }
.ts-steps p a { color: var(--primary-light); text-decoration: underline; }
