﻿:root {
    --bg: #0a1020;
    --bg-soft: #10182d;
    --surface: rgba(255, 255, 255, 0.12);
    --surface-strong: rgba(255, 255, 255, 0.18);
    --card-border: rgba(255, 255, 255, 0.2);
    --text: #eff4ff;
    --text-soft: #c8d3ea;
    --muted: #96a4c0;
    --primary: #d1345f;
    --primary-2: #f77737;
    --secondary: #0f766e;
    --accent: #8b5cf6;
    --success: #19c37d;
    --danger: #ff5d73;
    --warning: #f5b942;
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --container: 1200px;
    --header-height: 88px;
    --font-en: 'Poppins', sans-serif;
    --font-ar: 'Tajawal', sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

    html[lang='en'] body {
        font-family: var(--font-en);
    }

    html[lang='ar'] body {
        font-family: var(--font-ar);
    }

body {
    margin: 0;
    background: radial-gradient(circle at top left, rgba(209, 52, 95, 0.25), transparent 32%), radial-gradient(circle at top right, rgba(15, 118, 110, 0.22), transparent 28%), radial-gradient(circle at bottom center, rgba(139, 92, 246, 0.2), transparent 30%), linear-gradient(135deg, #09101e 0%, #0d1424 45%, #141b35 100%);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input {
    font: inherit;
}

/* ── Layout ──────────────────────────────────────────── */
.container {
    width: min(var(--container), calc(100% - 32px));
    margin-inline: auto;
}

/* ── Background orbs ─────────────────────────────────── */
.page-bg::before,
.page-bg::after {
    content: '';
    position: fixed;
    inset: auto;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
}

.page-bg::before {
    top: 80px;
    left: -120px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    animation: floatGlow 9s ease-in-out infinite alternate;
}

.page-bg::after {
    right: -120px;
    bottom: 70px;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    animation: floatGlow 11s ease-in-out infinite alternate;
}

@keyframes floatGlow {
    from {
        transform: translateY(0) scale(1);
    }

    to {
        transform: translateY(-25px) scale(1.08);
    }
}

.site-header,
.hero-section,
.features-section,
.how-section,
.site-footer,
.status-section,
.top-ad-section,
.in-content-ad-section {
    position: relative;
    z-index: 1;
}

/* ── Header ──────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(14px);
    background: rgba(8, 12, 24, 0.45);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-wrap {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.1rem;
}

.brand-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: 0 12px 30px rgba(209, 52, 95, 0.28);
}

    .brand-mark i {
        color: #fff;
        font-size: 1.1rem;
    }

.brand-text {
    letter-spacing: 0.3px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

    .main-nav a {
        color: var(--text-soft);
        font-weight: 500;
        transition: 0.25s ease;
    }

        .main-nav a:hover,
        .main-nav a:focus-visible {
            color: #fff;
        }

.lang-toggle {
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    padding: 12px 18px;
    border-radius: 999px;
    cursor: pointer;
    transition: 0.25s ease;
    font-weight: 600;
}

    .lang-toggle:hover,
    .lang-toggle:focus-visible {
        transform: translateY(-2px);
        background: rgba(255, 255, 255, 0.14);
    }

/* ── Sections ────────────────────────────────────────── */
.top-ad-section {
    padding-top: 22px;
}

.hero-section {
    padding: 34px 0;
}

.hero-grid {
   /* display: grid;*/
    grid-template-columns: 1.35fr 0.78fr;
    gap: 26px;
    align-items: start;
}

/* ── Glass card ──────────────────────────────────────── */
.glass-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.09));
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
}

.hero-content {
    padding: 34px;
}

/* ── Eyebrow / kicker ────────────────────────────────── */
.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffd4de;
    background: rgba(209, 52, 95, 0.14);
    border: 1px solid rgba(209, 52, 95, 0.24);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 18px;
}

.hero-content h1 {
    margin: 0 0 14px;
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.hero-text {
    margin: 0 0 26px;
    color: var(--text-soft);
    font-size: 1.05rem;
    max-width: 820px;
}

/* ── Download form ───────────────────────────────────── */
.download-form {
    display: grid;
    gap: 14px;
}

/* ── URL input — shared base for ALL platform inputs ── */
.input-wrap {
    position: relative;
}

.input-icon {
    position: absolute;
    top: 50%;
    left: 18px;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
    font-size: 1.05rem;
    z-index: 1;
}

html[dir='rtl'] .input-icon {
    left: auto;
    right: 18px;
}

/*
 * Target EVERY url input inside the download form — not just #instagramUrl.
 * This fixes the "too small text" issue for ig/fb/pin panel inputs.
 */
.download-form .input-wrap input[type="url"],
.download-form .input-wrap input[type="text"],
#instagramUrl,
#igUrl,
#fbUrl,
#pinUrl {
    width: 100%;
    min-height: 62px;
    padding: 16px 18px 16px 52px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(255,255,255,0.09);
    color: #fff;
    font-size: 1rem; /* ← was inheriting a tiny size — now explicit */
    font-weight: 500;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
    -webkit-appearance: none;
}

html[dir='rtl'] .download-form .input-wrap input[type="url"],
html[dir='rtl'] .download-form .input-wrap input[type="text"],
html[dir='rtl'] #instagramUrl,
html[dir='rtl'] #igUrl,
html[dir='rtl'] #fbUrl,
html[dir='rtl'] #pinUrl {
    padding: 16px 52px 16px 18px;
}

.download-form .input-wrap input::placeholder,
#instagramUrl::placeholder,
#igUrl::placeholder,
#fbUrl::placeholder,
#pinUrl::placeholder {
    color: rgba(155, 172, 204, 0.75);
    font-size: 0.93rem;
}

.download-form .input-wrap input:focus,
#instagramUrl:focus,
#igUrl:focus,
#fbUrl:focus,
#pinUrl:focus {
    border-color: rgba(245, 185, 66, 0.7);
    background: rgba(255,255,255,0.11);
    box-shadow: 0 0 0 4px rgba(245, 185, 66, 0.12), inset 0 1px 0 rgba(255,255,255,0.07);
}

/* Instagram input — accent on focus */
#igUrl:focus {
    border-color: rgba(225, 48, 108, 0.7);
    box-shadow: 0 0 0 4px rgba(225, 48, 108, 0.12), inset 0 1px 0 rgba(255,255,255,0.07);
}

/* Facebook input */
#fbUrl:focus {
    border-color: rgba(66, 179, 255, 0.7);
    box-shadow: 0 0 0 4px rgba(66, 179, 255, 0.12), inset 0 1px 0 rgba(255,255,255,0.07);
}

/* Pinterest input */
#pinUrl:focus {
    border-color: rgba(230, 0, 35, 0.7);
    box-shadow: 0 0 0 4px rgba(230, 0, 35, 0.12), inset 0 1px 0 rgba(255,255,255,0.07);
}

.helper-text {
    color: var(--muted);
    font-size: 0.83rem;
    line-height: 1.5;
    display: block;
    margin-top: -4px;
}

/* ── Platform tabs ───────────────────────────────────── */
.platform-tabs {
    display: flex;
    gap: 6px;
    background: rgba(0,0,0,0.28);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 5px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.platform-tab {
    flex: 1;
    min-width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 12px;
    border-radius: 11px;
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.45);
    font-size: 0.83rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
    font-family: inherit;
    white-space: nowrap;
    letter-spacing: 0.2px;
}

    .platform-tab i {
        font-size: 1rem;
    }

    .platform-tab:hover {
        color: rgba(255,255,255,0.8);
        background: rgba(255,255,255,0.06);
    }

    .platform-tab.active {
        color: #fff;
        transform: scale(1.02);
        box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    }

    .platform-tab[data-platform="instagram"].active {
        background: linear-gradient(135deg, #833ab4, #e1306c, #f56040);
    }

    .platform-tab[data-platform="facebook"].active {
        background: linear-gradient(135deg, #1877f2, #42b3ff);
    }

    .platform-tab[data-platform="pinterest"].active {
        background: linear-gradient(135deg, #bd081c, #e60023);
    }

/* ── Platform panel ──────────────────────────────────── */
.platform-panel {
    display: none;
}

    .platform-panel.active {
        display: block;
        animation: panelIn 0.25s ease;
    }

@keyframes panelIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Platform info badge ─────────────────────────────── */
.platform-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.09);
    margin-bottom: 16px;
}

.platform-info-icon {
    font-size: 1.15rem;
    margin-top: 2px;
    flex-shrink: 0;
}

    .platform-info-icon.ig {
        color: #e1306c;
    }

    .platform-info-icon.fb {
        color: #42b3ff;
    }

    .platform-info-icon.pin {
        color: #e60023;
    }

.platform-info-text {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.55;
}

    .platform-info-text strong {
        display: block;
        color: rgba(255,255,255,0.88);
        font-size: 0.86rem;
        font-weight: 700;
        margin-bottom: 3px;
    }

.platform-info-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 8px;
}

.platform-chip {
    font-size: 0.7rem;
    padding: 3px 9px;
    border-radius: 20px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.13);
    color: rgba(255,255,255,0.55);
    font-weight: 500;
}

/* ── Pinterest note ──────────────────────────────────── */
.pin-note {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.4);
    padding: 9px 13px;
    background: rgba(230,0,35,0.07);
    border: 1px solid rgba(230,0,35,0.18);
    border-radius: 10px;
    margin-top: 10px;
    line-height: 1.5;
}

    .pin-note i {
        color: #e60023;
        margin-top: 2px;
        flex-shrink: 0;
    }

/* ── Platforms strip ─────────────────────────────────── */
.platforms-strip {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.07);
}

.platforms-strip-label {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.3);
    white-space: nowrap;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.6);
    white-space: nowrap;
}

    .platform-badge i {
        font-size: 0.8rem;
    }

    .platform-badge.ig-badge {
        border-color: rgba(225,48,108,0.3);
    }

    .platform-badge.fb-badge {
        border-color: rgba(66,179,255,0.3);
    }

    .platform-badge.pin-badge {
        border-color: rgba(230,0,35,0.3);
    }

    .platform-badge i.fa-instagram {
        color: #e1306c;
    }

    .platform-badge i.fa-facebook-f {
        color: #42b3ff;
    }

    .platform-badge i.fa-pinterest-p {
        color: #e60023;
    }

/* ── Format section ──────────────────────────────────── */
.format-section {
    margin-top: 10px;
}

.format-title {
    margin: 0 0 12px;
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
}

.format-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

/* Pinterest has 2 options */
#panel-pinterest .format-options {
    grid-template-columns: repeat(2, 1fr);
}

.format-card {
    position: relative;
    display: grid;
    gap: 8px;
    padding: 18px;
    border-radius: 16px;
    cursor: pointer;
    background: rgba(255,255,255,0.07);
    border: 1.5px solid rgba(255,255,255,0.11);
    transition: 0.22s ease;
    min-height: 110px;
}

    .format-card:hover {
        transform: translateY(-3px);
        border-color: rgba(255,255,255,0.22);
        background: rgba(255,255,255,0.10);
    }

    .format-card input[type="radio"] {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    .format-card.active {
        background: linear-gradient(135deg, rgba(209,52,95,0.22), rgba(139,92,246,0.18));
        border-color: rgba(255,255,255,0.26);
        box-shadow: 0 12px 28px rgba(209,52,95,0.14);
    }

.format-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(255,255,255,0.12);
    font-size: 1.05rem;
}

.format-text {
    font-weight: 700;
    font-size: 0.88rem;
    line-height: 1.4;
    color: #fff;
}

/* ── Action row ──────────────────────────────────────── */
.action-row {
    margin-top: 6px;
}

.primary-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 58px;
    width: 100%;
    padding: 14px 26px;
    border: 0;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    cursor: pointer;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.2px;
    transition: 0.25s ease;
    box-shadow: 0 16px 30px rgba(209, 52, 95, 0.28);
}

    .primary-btn:hover,
    .primary-btn:focus-visible {
        transform: translateY(-2px);
        box-shadow: 0 22px 36px rgba(209, 52, 95, 0.38);
    }

    .primary-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

.btn-loader {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.35);
    border-top-color: #fff;
    border-radius: 50%;
    display: none;
    animation: spin 0.8s linear infinite;
    flex-shrink: 0;
}

.primary-btn.loading .btn-loader {
    display: inline-block;
}

.primary-btn.loading .btn-label {
    opacity: 0.9;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.error-text {
    margin: 0;
    min-height: 18px;
    color: #ffb4c0;
    font-weight: 500;
    font-size: 0.87rem;
}

/* ── Hero side ───────────────────────────────────────── */
.hero-side {
    display: grid;
    gap: 20px;
}

.preview-card {
    padding: 24px;
}

.preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.live-badge,
.secure-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.09);
    color: var(--text-soft);
    font-weight: 600;
    font-size: 0.85rem;
}

    .live-badge span:first-child {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--success);
        box-shadow: 0 0 12px var(--success);
        flex-shrink: 0;
    }

.preview-body {
    display: grid;
    gap: 10px;
}

.mini-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.09);
}

.mini-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: linear-gradient(135deg, rgba(209,52,95,0.24), rgba(247,119,55,0.2));
    flex-shrink: 0;
    font-size: 1rem;
}

.mini-card strong {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    display: block;
    margin-bottom: 3px;
}

.mini-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.45;
}

/* ── Result box ──────────────────────────────────────── */
.status-section {
    padding-bottom: 20px;
}

.result-box {
    padding: 22px 24px;
}

.result-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 1rem;
    color: #fff;
    font-weight: 700;
}

.result-content .muted {
    color: var(--muted);
    margin: 0;
    font-size: 0.9rem;
}

.result-success,
.result-error {
    padding: 16px 18px;
    border-radius: 14px;
    font-weight: 500;
    font-size: 0.9rem;
}

.result-success {
    background: rgba(25, 195, 125, 0.12);
    border: 1px solid rgba(25, 195, 125, 0.26);
    color: #d8fff0;
}

.result-error {
    background: rgba(255, 93, 115, 0.12);
    border: 1px solid rgba(255, 93, 115, 0.22);
    color: #ffd4db;
}

.result-actions {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.result-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 13px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: #fff;
    transition: 0.25s ease;
    font-size: 0.88rem;
}

    .result-action-btn:hover {
        transform: translateY(-2px);
        background: rgba(255,255,255,0.13);
    }

/* ── Features / How sections ─────────────────────────── */
.features-section,
.how-section {
    padding: 58px 0;
}

.section-heading {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 28px;
}

    .section-heading h2 {
        margin: 0;
        font-size: clamp(1.7rem, 3vw, 2.6rem);
        line-height: 1.15;
    }

.features-grid,
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.feature-card,
.step-card {
    padding: 24px;
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(209,52,95,0.18), rgba(247,119,55,0.16));
    margin-bottom: 16px;
    font-size: 1.15rem;
}

.feature-card h3,
.step-card h3 {
    margin: 0 0 8px;
    font-size: 1rem;
}

.feature-card p,
.step-card p {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.88rem;
    line-height: 1.55;
}

.step-number {
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #ffd7df;
    margin-bottom: 10px;
}

/* ── Ads ─────────────────────────────────────────────── */
.ad-placeholder {
    display: grid;
    place-items: center;
    text-align: center;
    border-radius: 20px;
    border: 1px dashed rgba(255,255,255,0.2);
    background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
    color: #d8e3fb;
    overflow: hidden;
}

    .ad-placeholder span {
        padding: 18px;
        display: inline-flex;
        gap: 10px;
        align-items: center;
        justify-content: center;
        font-weight: 600;
        font-size: 0.85rem;
    }

.ad-top {
    min-height: 110px;
}

.ad-side {
    min-height: 260px;
}

.ad-inline {
    min-height: 130px;
}

.ad-footer {
    min-height: 90px;
}

.in-content-ad-section {
    padding: 12px 0;
}

/* ── Footer ──────────────────────────────────────────── */
.site-footer {
    padding: 48px 0 26px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    gap: 24px;
    padding-bottom: 24px;
}

.footer-brand p {
    color: var(--text-soft);
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 6px 0 0;
}

.footer-links,
.footer-social {
    display: grid;
    align-content: start;
    gap: 10px;
}

    .footer-links h4,
    .footer-social h4 {
        margin: 0 0 6px;
        color: #fff;
        font-size: 0.95rem;
    }

    .footer-links a {
        color: var(--text-soft);
        font-size: 0.88rem;
        transition: color 0.2s ease;
    }

        .footer-links a:hover {
            color: #fff;
        }

.social-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

    .social-list a {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        display: grid;
        place-items: center;
        background: rgba(255,255,255,0.08);
        border: 1px solid rgba(255,255,255,0.1);
        transition: 0.25s ease;
        font-size: 0.9rem;
    }

        .social-list a:hover {
            transform: translateY(-2px);
            background: rgba(255,255,255,0.14);
        }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.07);
    padding-top: 18px;
    display: grid;
    gap: 14px;
}

    .footer-bottom p {
        margin: 0;
        color: var(--muted);
        text-align: center;
        font-size: 0.85rem;
    }

/* ── Utilities ───────────────────────────────────────── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    border: 0;
}

/* ── Responsive — 1080px ─────────────────────────────── */
@media (max-width: 1080px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-side {
        grid-column: span 2;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .features-grid,
    .steps-grid {
        grid-template-columns: 1fr 1fr;
    }

    .ad-side {
        min-height: 150px;
    }
}

/* ── Responsive — 760px ──────────────────────────────── */
@media (max-width: 760px) {
    .nav-wrap {
        flex-wrap: wrap;
        justify-content: center;
        padding: 12px 0;
    }

    .main-nav {
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 14px;
    }

    .hero-section {
        padding-top: 20px;
    }

    .hero-grid,
    .footer-grid,
    .features-grid,
    .steps-grid {
        grid-template-columns: 1fr;
    }

    .hero-side {
        grid-column: auto;
    }

    .hero-content,
    .preview-card {
        padding: 22px;
    }

    .feature-card,
    .step-card,
    .result-box {
        padding: 20px;
    }

    .format-options {
        grid-template-columns: repeat(3, 1fr);
        gap: 9px;
    }

    .format-card {
        min-height: 90px;
        padding: 14px;
    }

    .primary-btn {
        width: 100%;
    }

    .section-heading {
        text-align: start;
    }

    html[dir='rtl'] .section-heading {
        text-align: right;
    }

    html[dir='ltr'] .section-heading {
        text-align: left;
    }

    .platform-tabs {
        gap: 4px;
        padding: 4px;
    }

    .platform-tab {
        padding: 9px 10px;
        font-size: 0.78rem;
        gap: 5px;
    }

    .platforms-strip {
        gap: 6px;
    }

    .platform-badge {
        font-size: 0.68rem;
        padding: 3px 8px;
    }
}

/* ── Responsive — 480px ──────────────────────────────── */
@media (max-width: 480px) {
    .container {
        width: min(var(--container), calc(100% - 20px));
    }

    .hero-content h1 {
        font-size: 1.75rem;
    }

    .brand-text {
        font-size: 1rem;
    }

    .lang-toggle {
        padding: 10px 14px;
    }

    .format-options {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .format-card {
        min-height: auto;
        padding: 14px 16px;
        display: flex;
        align-items: center;
        gap: 14px;
    }

    .format-icon {
        width: 38px;
        height: 38px;
        flex-shrink: 0;
    }

    #panel-pinterest .format-options {
        grid-template-columns: 1fr;
    }

    .platforms-strip {
        flex-direction: column;
        align-items: flex-start;
    }
}

.legal-section {
    padding: 36px 0 24px;
}

.legal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.legal-card {
    padding: 22px;
}

.legal-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    background: linear-gradient(135deg, rgba(209,52,95,0.18), rgba(99,102,241,0.18));
    color: #fff;
    font-size: 1rem;
}

.legal-card h3 {
    margin: 0 0 10px;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.legal-card p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.72);
}

html[dir='rtl'] .legal-card {
    text-align: right;
}
