/* ─────────────────────────────────────────────────────────────────────────────
   لندینگ «دستیار هوش مصنوعی» — سیستم طراحی دو-تم (تیره/روشن)
   پالت خود اپ: بنفش برند 6C4DF6→4A33C9 روی سرمه‌ای 0D0E1E؛ لهجهٔ طلایی اعتبار
   و فیروزه‌ای وضعیت. حالت پیش‌فرض از سیستم می‌آید و با data-theme قفل می‌شود.
   همهٔ جفت‌رنگ‌های متن روی AA (متن ≥4.5:1، آیکون/خط ≥3:1) حساب شده‌اند.
   ──────────────────────────────────────────────────────────────────────────── */

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2'),
         url('../fonts/Vazirmatn-Regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2'),
         url('../fonts/Vazirmatn-Bold.ttf') format('truetype');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'Lalezar';
    src: url('../fonts/Lalezar-Regular.woff2') format('woff2'),
         url('../fonts/Lalezar-Regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}

/* ── توکن‌ها ─────────────────────────────────────────────────────────────── */

:root {
    color-scheme: light;

    --bg: #F5F5FD;
    --bg-soft: #ECEDFA;
    --card: #FFFFFF;
    --card-2: #F6F6FD;
    --border: #DEE0F0;
    --border-2: #C7CAE4;
    --text: #191A31;
    --text-2: #454A69;
    --text-3: #666B8C;

    --brand: #6C4DF6;
    --brand-deep: #4A33C9;
    --brand-ink: #5A3DE0;       /* لینک/آیکون برند روی سطح روشن، 5.1:1 روی سفید */
    --brand-soft: #ECE7FE;      /* پس‌زمینهٔ چیپ برند */
    --on-brand: #FFFFFF;

    --gold-surface: #E9B949;
    --gold-ink: #8A6D12;        /* متن طلایی روی سطح روشن */
    --teal-ink: #0F7C70;
    --teal-surface: #16A394;

    --header-bg: rgba(250, 250, 255, .78);
    --shadow-card: 0 1px 2px rgba(49, 43, 99, .05), 0 14px 36px rgba(49, 43, 99, .10);
    --shadow-pop: 0 24px 70px rgba(49, 43, 99, .18);
    --glow: 0 14px 44px rgba(108, 77, 246, .30);

    /* صفحهٔ داخل قاب موبایل — نسخهٔ روشن اپ */
    --app-bg: #F3F4FC;
    --app-bg-2: #EAE7FD;
    --app-card: #FFFFFF;
    --app-border: #E0E2F0;
    --app-text: #1A1B33;
    --app-text-2: #4A4F6E;
    --app-bot: #FFFFFF;
    --app-chip: #EEF0FE;
    --app-accent: #6C4DF6;

    --radius: 20px;
    --radius-lg: 28px;
    --shell: min(1160px, 92vw);
    --nav-h: 4.25rem;
}

[data-theme="dark"] {
    color-scheme: dark;

    --bg: #0D0E1E;
    --bg-soft: #12142A;
    --card: #181B36;
    --card-2: #20233F;
    --border: rgba(255, 255, 255, .09);
    --border-2: rgba(255, 255, 255, .17);
    --text: #EDEEFA;
    --text-2: #B9BDD9;
    --text-3: #9297BB;

    --brand: #A79BFF;
    --brand-deep: #6C4DF6;
    --brand-ink: #B7ADFF;
    --brand-soft: rgba(139, 116, 255, .16);
    --on-brand: #FFFFFF;

    --gold-surface: #E9B949;
    --gold-ink: #EFC768;
    --teal-ink: #4FDCCB;
    --teal-surface: #3FD1C0;

    --header-bg: rgba(13, 14, 30, .72);
    --shadow-card: none;
    --shadow-pop: 0 30px 80px rgba(0, 0, 0, .55);
    --glow: 0 16px 56px rgba(108, 77, 246, .45);

    /* صفحهٔ داخل قاب موبایل — نسخهٔ تیرهٔ اپ */
    --app-bg: #0D0E1E;
    --app-bg-2: #191540;
    --app-card: #1D2040;
    --app-border: #2A2E4A;
    --app-text: #F5F6FF;
    --app-text-2: #B7BCD8;
    --app-bot: #1B1E36;
    --app-chip: #272B50;
    --app-accent: #A79BFF;
}

/* بدون JS تم از سیستم می‌آید. */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) {
        color-scheme: dark;
        --bg: #0D0E1E; --bg-soft: #12142A; --card: #181B36; --card-2: #20233F;
        --border: rgba(255,255,255,.09); --border-2: rgba(255,255,255,.17);
        --text: #EDEEFA; --text-2: #B9BDD9; --text-3: #9297BB;
        --brand: #A79BFF; --brand-deep: #6C4DF6; --brand-ink: #B7ADFF;
        --brand-soft: rgba(139,116,255,.16); --on-brand: #FFFFFF;
        --gold-ink: #EFC768; --teal-ink: #4FDCCB;
        --header-bg: rgba(13,14,30,.72);
        --shadow-card: none; --shadow-pop: 0 30px 80px rgba(0,0,0,.55);
        --glow: 0 16px 56px rgba(108,77,246,.45);
        --app-bg: #0D0E1E; --app-bg-2: #191540; --app-card: #1D2040;
        --app-border: #2A2E4A; --app-text: #F5F6FF; --app-text-2: #B7BCD8;
        --app-bot: #1B1E36; --app-chip: #272B50; --app-accent: #A79BFF;
    }
}

/* ── پایه ─────────────────────────────────────────────────────────────────── */

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 1rem);
    -webkit-text-size-adjust: 100%;
}

body.landing {
    margin: 0;
    font-family: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
    font-size: 1rem;
    line-height: 1.9;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

h1, h2, h3, h4 { line-height: 1.45; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
img, video { max-width: 100%; display: block; }
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .3em; }

::selection { background: var(--brand-deep); color: #fff; }

:focus-visible {
    outline: 2.5px solid var(--brand-ink);
    outline-offset: 3px;
    border-radius: 6px;
}

.shell { width: var(--shell); margin-inline: auto; }
.shell-narrow { width: min(780px, 92vw); margin-inline: auto; }

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0; border: 0;
    clip-path: inset(50%);
    overflow: hidden;
    white-space: nowrap;
}

.skip-link {
    position: fixed;
    top: .75rem; inset-inline-start: .75rem;
    z-index: 200;
    padding: .65rem 1.2rem;
    border-radius: 999px;
    background: var(--brand-deep);
    color: #fff;
    transform: translateY(-300%);
    transition: transform .2s;
}
.skip-link:focus { transform: none; }

/* تیترها */
.display {
    font-family: 'Lalezar', 'Vazirmatn', sans-serif;
    font-weight: 400;
    letter-spacing: .01em;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .32rem 1rem;
    border-radius: 999px;
    background: var(--brand-soft);
    border: 1px solid color-mix(in srgb, var(--brand) 34%, transparent);
    color: var(--brand-ink);
    font-size: .84rem;
    font-weight: 700;
    margin: 0 0 1.1rem;
}
.eyebrow::before {
    content: "";
    width: .5rem; height: .5rem;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 10px currentColor;
}

.section-head { max-width: 46rem; }
.section-head h2 {
    font-size: clamp(1.8rem, 3.6vw, 2.7rem);
    line-height: 1.35;
}
.section-head .lede { font-size: 1.08rem; color: var(--text-2); }

.lede { color: var(--text-2); }

section { position: relative; }
.band { padding-block: clamp(4rem, 9vw, 7rem); }
.band-soft { background: var(--bg-soft); }

/* ── دکمه‌ها ──────────────────────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    padding: .85rem 1.7rem;
    border-radius: 999px;
    border: 1.5px solid transparent;
    font: inherit;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none !important;
    transition: transform .18s, box-shadow .18s, background .18s, border-color .18s;
    -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn .icon { flex: none; }

.btn-primary {
    background: linear-gradient(135deg, #7B5CFF, #6C4DF6 45%, #4A33C9);
    color: var(--on-brand);
    box-shadow: var(--glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 56px rgba(108, 77, 246, .45); }

.btn-outline {
    border-color: var(--border-2);
    color: var(--text);
    background: color-mix(in srgb, var(--card) 55%, transparent);
}
.btn-outline:hover { border-color: var(--brand-ink); color: var(--brand-ink); transform: translateY(-2px); }

.btn-ghost {
    padding: .55rem 1.15rem;
    color: var(--text);
    border-color: var(--border-2);
    background: transparent;
    font-size: .95rem;
}
.btn-ghost:hover { border-color: var(--brand-ink); color: var(--brand-ink); }

.btn-lg { padding: 1.05rem 2.1rem; font-size: 1.08rem; }

/* دکمهٔ بازار — نشان دانلود دو خطی */
.btn-bazaar .btn-col { display: flex; flex-direction: column; align-items: flex-start; text-align: start; }
.btn-bazaar .bazaar-sub { display: block; font-size: .72rem; font-weight: 400; opacity: .88; line-height: 1.3; }
.btn-bazaar .bazaar-main { display: block; font-size: 1.02rem; line-height: 1.4; }

.cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .9rem;
    margin-top: 1.8rem;
}

/* ── هدر ─────────────────────────────────────────────────────────────────── */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: transparent;
    transition: background .25s, box-shadow .25s, border-color .25s;
    border-bottom: 1px solid transparent;
}
.site-header.scrolled,
.site-header.menu-open {
    background: var(--header-bg);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    backdrop-filter: blur(18px) saturate(1.4);
    border-bottom-color: var(--border);
}

.header-row {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    min-height: var(--nav-h);
    position: relative;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    color: var(--text) !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 1.12rem;
}
.brand-mark {
    width: 2.35rem; height: 2.35rem;
    border-radius: .8rem;
    flex: none;
    box-shadow: 0 6px 18px rgba(108, 77, 246, .35);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: .35rem;
    margin-inline-start: auto;
}
.site-nav a {
    padding: .5rem .9rem;
    border-radius: 999px;
    color: var(--text-2);
    font-size: .96rem;
    text-decoration: none !important;
    transition: color .15s, background .15s;
}
.site-nav a:hover { color: var(--text); background: var(--brand-soft); }
.site-nav a[aria-current="page"] { color: var(--brand-ink); font-weight: 700; }

/* ── منوی «قابلیت‌ها» ─────────────────────────────────────────────────────────
   شش صفحهٔ ابزار به‌صورت شش لینک، نوار را به سه ردیف می‌شکست. حالا یک پنل‌اند که
   می‌گوید هرکدام چیست — هم کوتاه‌تر، هم گویاتر. */

.nav-group { position: relative; }

.nav-disclosure {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .5rem .9rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--text-2);
    font: inherit;
    font-size: .96rem;
    cursor: pointer;
    transition: color .15s, background .15s;
}
.nav-disclosure:hover { color: var(--text); background: var(--brand-soft); }
.nav-disclosure .chev { transition: transform .2s ease; opacity: .75; }
.nav-disclosure[aria-expanded="true"] { color: var(--text); background: var(--brand-soft); }
.nav-disclosure[aria-expanded="true"] .chev { transform: rotate(180deg); }
/* روی هر کدام از شش صفحه که باشیم، خودِ «قابلیت‌ها» هم پررنگ می‌شود. */
.nav-group.here > .nav-disclosure { color: var(--brand-ink); font-weight: 700; }

.nav-menu {
    position: absolute;
    top: calc(100% + .55rem);
    /* Pinned at the trigger's inline START so the panel grows toward the middle of the
       page. Anchoring the other edge sent it 65px off the right of an RTL viewport. */
    inset-inline-start: 0;
    z-index: 60;
    width: min(34rem, calc(100vw - 2rem));
    padding: .6rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    -webkit-backdrop-filter: blur(22px) saturate(1.4);
    backdrop-filter: blur(22px) saturate(1.4);
    box-shadow: 0 26px 60px rgba(5, 6, 15, .38);
    animation: nav-menu-in .17s ease-out;
}
@keyframes nav-menu-in {
    from { opacity: 0; transform: translateY(-7px); }
    to { opacity: 1; transform: none; }
}

.nav-menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .15rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.nav-menu-grid a {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: .7rem;
    padding: .6rem .65rem;
    border-radius: 14px;
    color: var(--text) !important;
}
.nav-menu-grid a:hover { background: var(--brand-soft); }
.nav-menu-grid a[aria-current="page"] { background: var(--brand-soft); }
.nav-menu-grid a[aria-current="page"] .name { color: var(--brand-ink); }

.nav-menu-grid .tile {
    display: grid;
    place-items: center;
    width: 2.3rem; height: 2.3rem;
    border-radius: 12px;
    font-size: 1.15rem;
    line-height: 1;
    background: linear-gradient(140deg,
        color-mix(in srgb, var(--brand) 22%, transparent),
        color-mix(in srgb, var(--brand) 8%, transparent));
    border: 1px solid color-mix(in srgb, var(--brand) 20%, transparent);
    transition: transform .18s ease;
}
.nav-menu-grid a:hover .tile { transform: translateY(-1px) scale(1.05); }

.nav-menu-grid .text { display: grid; gap: .12rem; min-width: 0; }
.nav-menu-grid .name { font-weight: 600; font-size: .95rem; }
.nav-menu-grid .blurb {
    font-size: .8rem;
    color: var(--text-2);
    /* یک خط می‌ماند؛ عنوان مهم‌تر از توضیح است. */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-menu-all {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: .35rem;
    padding: .6rem .75rem;
    border-radius: 14px;
    border-top: 1px solid var(--border);
    border-radius: 0 0 14px 14px;
    color: var(--brand-ink) !important;
    font-size: .88rem;
    font-weight: 600;
}
.nav-menu-all:hover { background: var(--brand-soft); }

@media (prefers-reduced-motion: reduce) {
    .nav-menu { animation: none; }
    .nav-menu-grid .tile, .nav-disclosure .chev { transition: none; }
}

.header-actions { display: flex; align-items: center; gap: .6rem; margin-inline-start: auto; }
.site-nav + .header-actions { margin-inline-start: 0; }

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.7rem; height: 2.7rem;
    border-radius: 50%;
    border: 1.5px solid var(--border-2);
    background: transparent;
    color: var(--text-2);
    cursor: pointer;
    transition: color .15s, border-color .15s, transform .3s;
}
.theme-toggle:hover { color: var(--brand-ink); border-color: var(--brand-ink); transform: rotate(15deg); }
.theme-toggle .icon-sun, .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root:not([data-theme="dark"]) .theme-toggle .icon-moon { display: block; }

.nav-toggle {
    display: none;
    width: 2.7rem; height: 2.7rem;
    border-radius: .9rem;
    border: 1.5px solid var(--border-2);
    background: transparent;
    color: var(--text);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}
.nav-toggle .icon-x { display: none; }
.nav-toggle[aria-expanded="true"] .icon-x { display: block; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }

/* 1100, not 920. Measured rather than guessed: with six items the bar needs about 1010px
   of content width, and below that it wrapped into two rows and a 100px-tall header. The
   old breakpoint was set when the nav had four items. */
@media (max-width: 1100px) {
    .site-nav {
        position: absolute;
        top: 100%;
        inset-inline: calc(50% - 50vw);
        flex-direction: column;
        align-items: stretch;
        gap: .2rem;
        padding: 1rem clamp(1rem, 4vw, 2rem) 1.4rem;
        /* روی محتوای شلوغ هیرو باز می‌شود — تقریباً مات تا خوانا بماند */
        background: color-mix(in srgb, var(--bg) 97%, transparent);
        -webkit-backdrop-filter: blur(20px) saturate(1.4);
        backdrop-filter: blur(20px) saturate(1.4);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 30px 60px rgba(5, 6, 15, .35);
        display: none;

        /* The sheet scrolls ITSELF. With the six tools in it the panel runs past the bottom
           of a phone screen, and it hangs off a header that scrolls away — so the download
           buttons at the end were simply unreachable. dvh, not vh: on mobile Safari and
           Chrome vh is the height WITHOUT the address bar, which would hide them again the
           moment the bar is showing. overscroll-behavior keeps the page underneath still
           when the sheet reaches its end. */
        max-height: calc(100vh - var(--nav-h));
        max-height: calc(100dvh - var(--nav-h));
        overflow-y: auto;
        overscroll-behavior: contain;
    }
    .site-nav.open { display: flex; }
    .site-nav > a { font-size: 1.05rem; padding: .8rem 1rem; }
    .nav-toggle { display: inline-flex; }
    .header-cta { display: none; }
    .site-nav .nav-cta { display: flex; gap: .7rem; margin-top: .8rem; }
    .site-nav .nav-cta .btn { flex: 1; }

    /* On a phone the six tools are not a dropdown inside a dropdown — the sheet IS the
       menu, so the panel sits in the flow, open, and the button above it stays a real
       disclosure for anyone who wants the list out of the way. */
    .nav-group { position: static; }
    .nav-disclosure {
        width: 100%;
        justify-content: space-between;
        font-size: 1.05rem;
        padding: .8rem 1rem;
    }
    .nav-menu {
        position: static;
        width: auto;
        margin: .1rem 0 .5rem;
        padding: .3rem;
        border-radius: 18px;
        /* Opaque. The sheet floats over the hero, and a translucent panel with no blur
           behind it let the headline ghost through between the rows. */
        background: var(--card-2);
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        box-shadow: none;
        animation: none;
    }
    /* One column: two 44px-tall rows side by side on a 360px screen leaves neither the
       name nor the tap target enough room. */
    .nav-menu-grid { grid-template-columns: 1fr; }
    .nav-menu-grid a { padding: .7rem .6rem; }
    .nav-menu-grid .tile { width: 2.5rem; height: 2.5rem; font-size: 1.25rem; }
    .nav-menu-grid .name { font-size: 1rem; }
    .nav-menu-grid .blurb { font-size: .85rem; }
    .nav-menu-all { padding: .75rem; }
}
@media (min-width: 1101px) {
    .site-nav .nav-cta { display: none; }
}

/* Just above the breakpoint the bar is at its tightest, so the ghost «نسخهٔ وب» button is
   the first thing to go: it duplicates a link that is already in the menu panel, the mobile
   sheet and the footer, and dropping it buys the nav 87px exactly where it needs them. */
@media (max-width: 1240px) {
    .btn-ghost.header-cta { display: none; }
}

/* ── پس‌زمینهٔ شفق ────────────────────────────────────────────────────────── */

.aurora {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}
.aurora::before,
.aurora::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
}
.aurora::before {
    width: 52rem; height: 52rem;
    inset-inline-start: -14rem;
    top: -22rem;
    background: radial-gradient(closest-side, rgba(108, 77, 246, .38), transparent 70%);
}
.aurora::after {
    width: 44rem; height: 44rem;
    inset-inline-end: -16rem;
    top: 4rem;
    background: radial-gradient(closest-side, rgba(63, 209, 192, .16), transparent 70%);
}
:root:not([data-theme="dark"]) .aurora::before { opacity: .55; }
:root:not([data-theme="dark"]) .aurora::after { opacity: .6; }

.aurora .grid-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(color-mix(in srgb, var(--text) 14%, transparent) 1px, transparent 1.6px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(ellipse 75% 62% at 50% 32%, #000 25%, transparent 72%);
    mask-image: radial-gradient(ellipse 75% 62% at 50% 32%, #000 25%, transparent 72%);
    opacity: .5;
}

/* ── هیرو ─────────────────────────────────────────────────────────────────── */

.hero { padding-block: clamp(2.2rem, 6vw, 5rem) clamp(3.5rem, 7vw, 6rem); }

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}

.hero-copy h1 {
    font-size: clamp(2.5rem, 5.6vw, 4.1rem);
    line-height: 1.3;
    margin-bottom: .5em;
}
.hero-copy .grad {
    background: linear-gradient(120deg, #7B5CFF, var(--brand-deep) 55%, #16A394 135%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
[data-theme="dark"] .hero-copy .grad {
    background: linear-gradient(120deg, #C3B8FF, #8E72FF 45%, #4FDCCB 125%);
    -webkit-background-clip: text;
    background-clip: text;
}
.hero-copy .lede {
    font-size: clamp(1.05rem, 1.8vw, 1.2rem);
    max-width: 34rem;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem .6rem;
    margin: 1.6rem 0 0;
    padding: 0;
    list-style: none;
}
.hero-points li {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .42rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--border-2);
    background: color-mix(in srgb, var(--card) 62%, transparent);
    color: var(--text-2);
    font-size: .88rem;
    font-weight: 700;
}
.hero-points .icon { color: var(--teal-ink); flex: none; }

.hero-stage {
    position: relative;
    display: grid;
    justify-items: center;
    padding-block: 1rem 1.5rem;
}

/* کارت‌های شناور دور موبایل */
.float-card {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .6rem .95rem;
    border-radius: 1.1rem;
    background: color-mix(in srgb, var(--card) 88%, transparent);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-2);
    box-shadow: var(--shadow-pop);
    font-size: .84rem;
    font-weight: 700;
    color: var(--text);
    animation: float 7s ease-in-out infinite;
}
.float-card .icon { color: var(--brand-ink); }
.float-card.fc-1 { top: 9%; inset-inline-start: -1rem; animation-delay: -1.2s; }
.float-card.fc-2 { top: 46%; inset-inline-end: -1.6rem; animation-delay: -3.4s; }
.float-card.fc-3 { bottom: 7%; inset-inline-start: 0; animation-delay: -5.1s; }
.float-card .ok { color: var(--teal-ink); }
.float-card .gold { color: var(--gold-ink); }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-11px); }
}

@media (max-width: 1080px) {
    .float-card.fc-1 { inset-inline-start: 4%; }
    .float-card.fc-2 { inset-inline-end: 2%; }
}
@media (max-width: 980px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-copy { text-align: center; }
    .hero-copy .lede { margin-inline: auto; }
    .hero-points { justify-content: center; }
    .cta-row { justify-content: center; }
    .section-head { margin-inline: auto; text-align: center; }
}

/* ── قاب موبایل ───────────────────────────────────────────────────────────── */

.phone {
    position: relative;
    width: min(340px, 84vw);
    border-radius: 3.2rem;
    padding: .55rem;
    background: linear-gradient(160deg, #3D4157, #14162A 40%, #2A2E48);
    box-shadow:
        inset 0 0 0 1.5px rgba(255, 255, 255, .18),
        var(--shadow-pop);
    flex: none;
}
:root:not([data-theme="dark"]) .phone {
    background: linear-gradient(160deg, #C9CCE0, #8E93AE 42%, #B4B8D0);
    box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .65), var(--shadow-pop);
}

.phone::after { /* بازتاب شیشه */
    content: "";
    position: absolute;
    inset: .55rem;
    border-radius: 2.7rem;
    background: linear-gradient(200deg, rgba(255, 255, 255, .12), transparent 30%);
    pointer-events: none;
    z-index: 6;
}

.phone-screen {
    position: relative;
    border-radius: 2.7rem;
    overflow: hidden;
    background: var(--app-bg);
    display: flex;
    flex-direction: column;
    aspect-ratio: 9 / 19.2;
    isolation: isolate;
}
.phone-screen::before { /* گرادیان ملایم بالای صفحه مثل خود اپ */
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 38%;
    background: linear-gradient(var(--app-bg-2), var(--app-bg));
    z-index: -1;
}

.p-punch {
    position: absolute;
    top: .6rem;
    inset-inline-start: calc(50% - .36rem);
    width: .72rem; height: .72rem;
    border-radius: 50%;
    background: #05060D;
    box-shadow: inset 0 0 0 2px #1B1E30, 0 0 0 2px rgba(255, 255, 255, .06);
    z-index: 4;
}

.p-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .55rem 1.35rem .15rem;
    font-size: .72rem;
    font-weight: 700;
    color: var(--app-text);
}
.p-status .icons { display: flex; gap: .3rem; align-items: center; }
.p-status svg { width: .95rem; height: .95rem; }

.p-appbar {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem .95rem .45rem;
}
.p-appbar .t { font-weight: 700; font-size: .95rem; color: var(--app-text); }
.p-appbar .credit {
    margin-inline-start: auto;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .18rem .7rem;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 700;
    color: #10143B;
    background: linear-gradient(135deg, #F0C866, #DFA92E);
}

.p-body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: .55rem;
    padding: .35rem .8rem .6rem;
    overflow: hidden;
}

/* نوار پایین با ۶ تب واقعی اپ */
.p-nav {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: .1rem;
    padding: .4rem .45rem calc(.45rem + 6px);
    background: color-mix(in srgb, var(--app-card) 82%, transparent);
    border-top: 1px solid var(--app-border);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.p-nav span {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .18rem;
    font-size: .53rem;
    font-weight: 700;
    color: var(--app-text-2);
    padding: .28rem 0 .22rem;
    border-radius: .8rem;
    line-height: 1.2;
    white-space: nowrap;
}
.p-nav svg { width: .95rem; height: .95rem; }
.p-nav .on {
    color: #fff;
    background: linear-gradient(135deg, #6C4DF6, #4A33C9);
    box-shadow: 0 6px 14px rgba(108, 77, 246, .4);
}

.p-home {
    position: absolute;
    bottom: .35rem;
    inset-inline-start: 33%;
    width: 34%; height: 4px;
    border-radius: 4px;
    background: color-mix(in srgb, var(--app-text) 35%, transparent);
    z-index: 4;
}

/* اجزای مشترک صفحه‌های اپ */
.p-chip {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .25rem .7rem;
    border-radius: 999px;
    background: var(--app-chip);
    border: 1px solid var(--app-border);
    color: var(--app-text-2);
    font-size: .68rem;
    font-weight: 700;
    white-space: nowrap;
}
.p-chip.on {
    color: #fff;
    background: linear-gradient(135deg, #6C4DF6, #4A33C9);
    border-color: transparent;
}
.p-chip-row { display: flex; gap: .4rem; overflow: hidden; }

.p-card {
    background: var(--app-card);
    border: 1px solid var(--app-border);
    border-radius: 1.05rem;
    padding: .65rem .8rem;
}
.p-label { font-size: .62rem; font-weight: 700; color: var(--app-text-2); margin-bottom: .3rem; }

.p-bubble {
    max-width: 88%;
    padding: .55rem .8rem;
    border-radius: 1.15rem;
    font-size: .78rem;
    line-height: 1.75;
}
/* مثل خود اپ: پیام کاربر با گرادیان برند */
.p-bubble.user {
    margin-inline-start: auto;
    background: linear-gradient(135deg, #8E72FF, #4A33C9);
    color: #fff;
    border-end-start-radius: .35rem;
}
.p-bubble.bot {
    margin-inline-end: auto;
    background: var(--app-bot);
    border: 1px solid var(--app-border);
    color: var(--app-text);
    border-end-end-radius: .35rem;
}
/* عکس پیوست‌شده داخل حباب پیام */
.p-bubble .p-photo {
    display: block;
    width: 100%;
    max-width: 10rem;
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
    border-radius: .7rem;
    margin-bottom: .45rem;
}

.p-bill {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    margin-top: .4rem;
    padding: .1rem .55rem;
    border-radius: 999px;
    font-size: .62rem;
    font-weight: 700;
    background: var(--app-chip);
    border: 1px solid var(--app-border);
    color: var(--app-text-2);
}

.p-composer {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: .45rem;
    background: var(--app-card);
    border: 1px solid var(--app-border);
    border-radius: 999px;
    padding: .4rem .5rem;
    font-size: .74rem;
    color: var(--app-text-2);
}
.p-composer .hint { flex: 1; white-space: nowrap; overflow: hidden; }
.p-composer .send,
.p-composer .mic {
    width: 1.9rem; height: 1.9rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex: none;
}
.p-composer .send {
    background: linear-gradient(135deg, #6C4DF6, #4A33C9);
    color: #fff;
}
.p-composer .mic { background: var(--app-chip); color: var(--app-text-2); }
.p-composer svg { width: .95rem; height: .95rem; }

/* تایپ‌شدن پاسخ */
.p-typing { display: inline-flex; gap: .22rem; align-items: center; padding: .2rem 0; }
.p-typing i {
    width: .32rem; height: .32rem;
    border-radius: 50%;
    background: var(--app-accent);
    animation: typing 1.2s infinite;
}
.p-typing i:nth-child(2) { animation-delay: .18s; }
.p-typing i:nth-child(3) { animation-delay: .36s; }
@keyframes typing {
    0%, 60%, 100% { opacity: .25; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(-2px); }
}

/* گرید عکس داخل حباب/صفحه */
.p-art-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .4rem;
    margin-top: .5rem;
}
.p-art-grid img {
    border-radius: .7rem;
    aspect-ratio: 1;
    object-fit: cover;
    width: 100%;
    height: auto; /* بر اتریبیوت height تصویر غلبه می‌کند تا aspect-ratio عمل کند */
}

/* صفحهٔ ویدیو */
.p-video-tile {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    /* کمی بلندتر از خود ویدیوی ۱۶:۹ — بالا/پایین را زمینهٔ ستاره‌ای پر می‌کند */
    aspect-ratio: 16 / 11;
    background: radial-gradient(120% 90% at 50% 8%, #23264D 0%, #0B0C1E 55%, #05060F 100%);
    border: 1px solid var(--app-border);
}
.p-video-tile video {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: contain; /* ویدیوی واقعی افقی است؛ برش نمی‌دهیم */
}
.p-video-poster {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    color: #EDEEFA;
    background:
        radial-gradient(1.5px 1.5px at 18% 22%, rgba(255,255,255,.9), transparent),
        radial-gradient(1px 1px at 72% 14%, rgba(255,255,255,.8), transparent),
        radial-gradient(1.2px 1.2px at 84% 46%, rgba(255,255,255,.7), transparent),
        radial-gradient(1px 1px at 34% 64%, rgba(255,255,255,.6), transparent),
        radial-gradient(1.4px 1.4px at 58% 82%, rgba(255,255,255,.75), transparent),
        radial-gradient(90% 55% at 50% 118%, rgba(108, 77, 246, .5), transparent 70%);
    border: 0;
    width: 100%;
    cursor: pointer;
    font: inherit;
    z-index: 2;
    transition: opacity .3s;
}
.p-video-poster .play-ring {
    width: 3.2rem; height: 3.2rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .14);
    border: 1.5px solid rgba(255, 255, 255, .6);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    transition: transform .2s;
}
.p-video-poster:hover .play-ring { transform: scale(1.08); }
.p-video-poster .cap { font-size: .72rem; font-weight: 700; opacity: .92; padding-inline: .8rem; }
.p-video-tile.playing .p-video-poster { opacity: 0; pointer-events: none; }

.p-progress {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .68rem;
    color: var(--app-text-2);
}
.p-progress .bar {
    flex: 1;
    height: .38rem;
    border-radius: 999px;
    background: var(--app-chip);
    overflow: hidden;
    position: relative;
}
.p-progress .bar i {
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    width: 68%;
    border-radius: inherit;
    background: linear-gradient(90deg, #6C4DF6, #A79BFF);
    animation: renderbar 2.6s ease-in-out infinite alternate;
}
@keyframes renderbar { from { width: 42%; } to { width: 84%; } }

/* موزیک */
.p-track {
    display: flex;
    align-items: center;
    gap: .6rem;
    background: var(--app-card);
    border: 1px solid var(--app-border);
    border-radius: 1rem;
    padding: .5rem .6rem;
}
.p-track .cover {
    width: 2.5rem; height: 2.5rem;
    flex: none;
    border-radius: .7rem;
    display: grid;
    place-items: center;
    color: #fff;
}
.p-track .cover svg { width: 1.1rem; height: 1.1rem; }
.p-track .cover.c1 { background: linear-gradient(135deg, #8E72FF, #4A33C9); }
.p-track .cover.c2 { background: linear-gradient(135deg, #F0C866, #D07B2E); color: #3A2A05; }
.p-track .meta { flex: 1; min-width: 0; }
.p-track .meta .n { display: block; font-size: .74rem; font-weight: 700; color: var(--app-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-track .meta .d { display: block; font-size: .62rem; color: var(--app-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-track .play {
    width: 2rem; height: 2rem;
    flex: none;
    border-radius: 50%;
    border: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #6C4DF6, #4A33C9);
    color: #fff;
    cursor: pointer;
}
.p-track .play svg { width: .85rem; height: .85rem; }
.p-track .play .icon-pause { display: none; }
.p-track .play[aria-pressed="true"] .icon-pause { display: block; }
.p-track .play[aria-pressed="true"] .icon-play { display: none; }

.p-wave { display: flex; align-items: center; gap: .14rem; height: 1.3rem; }
.p-wave i {
    width: .18rem;
    border-radius: 2px;
    background: var(--app-accent);
    height: 30%;
    animation: wave 1.15s ease-in-out infinite;
}
.p-wave i:nth-child(2n) { animation-delay: -.35s; height: 65%; }
.p-wave i:nth-child(3n) { animation-delay: -.6s; height: 90%; }
.p-wave i:nth-child(5n) { animation-delay: -.85s; height: 50%; }
@keyframes wave { 0%, 100% { transform: scaleY(.45); } 50% { transform: scaleY(1); } }
.p-wave.still i { animation: none; }

/* ریلز */
.p-style-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .4rem;
}
.p-style-grid figure { margin: 0; position: relative; }
.p-style-grid img {
    aspect-ratio: 1;
    object-fit: cover;
    width: 100%;
    height: auto;
    border-radius: .7rem;
}
.p-style-grid figcaption {
    position: absolute;
    inset: auto 0 0;
    padding: .55rem .35rem .22rem;
    border-radius: 0 0 .7rem .7rem;
    background: linear-gradient(transparent, rgba(5, 6, 15, .88));
    color: #fff;
    font-size: .56rem;
    font-weight: 700;
    text-align: center;
}
.p-style-grid .sel img { outline: 2.5px solid #A79BFF; outline-offset: 1.5px; }
.p-style-grid .sel::after {
    content: "✓";
    position: absolute;
    top: .3rem; inset-inline-end: .3rem;
    width: 1.05rem; height: 1.05rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: .62rem;
    background: #6C4DF6;
    color: #fff;
}

.p-steps { display: flex; flex-direction: column; gap: .42rem; }
.p-step {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .72rem;
    color: var(--app-text-2);
}
.p-step .dot {
    width: 1.15rem; height: 1.15rem;
    flex: none;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: .62rem;
    background: var(--app-chip);
    border: 1px solid var(--app-border);
}
.p-step.done { color: var(--app-text); }
.p-step.done .dot { background: #1DBBA8; border-color: transparent; color: #04251F; font-weight: 900; }
.p-step.now .dot { background: linear-gradient(135deg, #6C4DF6, #4A33C9); border-color: transparent; color: #fff; }
.p-step.now { color: var(--app-text); font-weight: 700; }

/* ترجمهٔ سفر */
.p-langbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    font-size: .78rem;
    font-weight: 700;
    color: var(--app-text);
}
.p-langbar .lang {
    padding: .3rem .95rem;
    border-radius: 999px;
    background: var(--app-card);
    border: 1px solid var(--app-border);
}
.p-langbar .swap { color: var(--app-accent); display: grid; }
.p-langbar svg { width: 1rem; height: 1rem; }

.p-mic {
    position: relative;
    width: 4.3rem; height: 4.3rem;
    margin: .4rem auto .2rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #6C4DF6, #4A33C9);
    color: #fff;
    box-shadow: 0 10px 30px rgba(108, 77, 246, .45);
}
.p-mic svg { width: 1.6rem; height: 1.6rem; }
.p-mic::before, .p-mic::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(139, 116, 255, .55);
    animation: pulse 2.4s ease-out infinite;
}
.p-mic::after { animation-delay: 1.2s; }
@keyframes pulse {
    from { transform: scale(1); opacity: .9; }
    to { transform: scale(1.75); opacity: 0; }
}

.p-say { font-size: .74rem; }
.p-say .fa { color: var(--app-text); }
.p-say .lat {
    direction: ltr;
    text-align: left;
    font-size: .78rem;
    color: var(--app-text);
    font-weight: 700;
}
.p-say .lbl {
    display: flex;
    align-items: center;
    gap: .35rem;
    font-size: .6rem;
    color: var(--app-text-2);
    margin-bottom: .2rem;
}
.p-say .lbl svg { width: .8rem; height: .8rem; }

.p-handsfree {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    font-size: .7rem;
    font-weight: 700;
    color: var(--app-text);
}
.p-switch {
    width: 2.1rem; height: 1.2rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #6C4DF6, #4A33C9);
    position: relative;
    flex: none;
}
.p-switch::after {
    content: "";
    position: absolute;
    top: .16rem; inset-inline-end: .18rem;
    width: .88rem; height: .88rem;
    border-radius: 50%;
    background: #fff;
}

/* شناوری قاب هیرو */
.hero-phone { animation: float 9s ease-in-out infinite; }
@media (min-width: 981px) {
    .hero-phone { rotate: -5deg; }
}

/* ── نوار مدل‌ها (مارکی) ─────────────────────────────────────────────────── */

.models-band { padding-block: 1.7rem; border-block: 1px solid var(--border); overflow: hidden; }
.models-band .lbl {
    text-align: center;
    font-size: .85rem;
    color: var(--text-3);
    font-weight: 700;
    margin-bottom: 1rem;
}
.marquee-clip {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee {
    display: flex;
    gap: .7rem;
    width: max-content;
    padding-inline-end: .7rem;
    animation: marquee 32s linear infinite;
}
.marquee:hover { animation-play-state: paused; }
/* دو نسخهٔ پشت‌سرهم از فهرست؛ نیم‌عرض جابه‌جا می‌شود و به‌هم می‌رسد */
@keyframes marquee { to { transform: translateX(50%); } }
.model-chip {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem 1.25rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text-2);
    font-weight: 700;
    font-size: .95rem;
    white-space: nowrap;
}
.model-chip .icon { color: var(--brand-ink); }

/* ── گرید معرفی قابلیت‌ها ────────────────────────────────────────────────── */

.tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.1rem;
    margin-top: 2.6rem;
}
@media (max-width: 1240px) { .tools-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .tools-grid { grid-template-columns: 1fr; } }

.tool-card {
    position: relative;
    display: block;
    padding: 1.5rem 1.4rem 1.35rem;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    color: inherit !important;
    text-decoration: none !important;
    transition: transform .22s, border-color .22s, box-shadow .22s;
    overflow: hidden;
}
.tool-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, var(--tool-c1, #6C4DF6), var(--tool-c2, #3FD1C0));
    opacity: 0;
    transition: opacity .22s;
}
.tool-card:hover {
    transform: translateY(-5px);
    border-color: color-mix(in srgb, var(--tool-c1, var(--brand)) 55%, var(--border));
    box-shadow: var(--shadow-pop);
}
.tool-card:hover::before { opacity: 1; }
.tool-card .tool-ico {
    width: 3rem; height: 3rem;
    border-radius: 1rem;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--tool-c1, #6C4DF6), var(--tool-c2, #4A33C9));
    box-shadow: 0 10px 24px color-mix(in srgb, var(--tool-c1, #6C4DF6) 40%, transparent);
    margin-bottom: 1rem;
}
.tool-card h3 { font-size: 1.12rem; margin-bottom: .35rem; }
.tool-card { display: flex; flex-direction: column; }
.tool-card .more,
.model-card .more { margin-top: auto; }
.tool-card p { font-size: .92rem; color: var(--text-2); margin: 0; }
/* ── «شما می‌دهید ← تحویل می‌گیرید» ────────────────────────────────────────────
   The cards used to be an icon and one sentence each, which told a visitor the NAME of
   six things and nothing about any of them. Each now shows one real exchange: the words
   you actually type, and the thing you actually get back. */

.tool-demo {
    margin: .9rem 0 0;
    padding: .75rem .8rem;
    border-radius: 14px;
    background: color-mix(in srgb, var(--tool-c1, var(--brand)) 7%, var(--card-2));
    border: 1px solid color-mix(in srgb, var(--tool-c1, var(--brand)) 18%, transparent);
}
.tool-demo .td-step { margin: 0; display: grid; gap: .2rem; }
.tool-demo .td-tag {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .01em;
    color: color-mix(in srgb, var(--tool-c1, var(--brand)) 72%, var(--text));
}
.tool-demo .td-text {
    font-size: .86rem;
    line-height: 1.85;
    color: var(--text-2);
}
/* The output is the half a visitor is buying, so it reads as the stronger of the two. */
.tool-demo .td-out .td-text { color: var(--text); font-weight: 600; }

.tool-demo .td-arrow {
    /* Centred: it is a connector between the two halves, and left at the text alignment
       it drifted to the edge of the box and read as a stray glyph. */
    display: flex;
    justify-content: center;
    margin: .5rem 0;
    color: color-mix(in srgb, var(--tool-c1, var(--brand)) 60%, var(--text-2));
    /* Down, not sideways: the two halves stack, and in an RTL page a horizontal arrow
       would have to be mirrored to mean «next» — a down arrow means it in any direction. */
}

.tool-card .more {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    margin-top: .8rem;
    font-size: .85rem;
    font-weight: 700;
    color: var(--brand-ink);
}
.tool-card .more .icon,
.model-card .more .icon { transition: translate .18s; }
.tool-card:hover .more .icon,
.model-card:hover .more .icon { translate: -4px 0; }

/* ── بخش‌های نمایش عمیق (شوکیس) ──────────────────────────────────────────── */

.showcase { padding-block: clamp(3.4rem, 7vw, 5.5rem); }
.showcase .shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2rem, 5.5vw, 5rem);
    align-items: center;
}
.showcase.flip .sc-copy { order: 1; }
.showcase.flip .sc-stage { order: 0; }

.sc-stage { display: grid; justify-items: center; position: relative; }

.sc-num {
    position: absolute;
    z-index: 0;
    top: -2.2rem;
    inset-inline-end: -0.6rem;
    font-family: 'Lalezar', sans-serif;
    font-size: clamp(5rem, 10vw, 7.5rem);
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px color-mix(in srgb, var(--brand) 40%, transparent);
    pointer-events: none;
    user-select: none;
}

.sc-copy { position: relative; z-index: 1; }
.sc-copy h2 { font-size: clamp(1.7rem, 3.2vw, 2.45rem); line-height: 1.4; }
.sc-copy .lede { font-size: 1.05rem; }

.sc-points {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .85rem;
}
.sc-points li {
    display: flex;
    gap: .8rem;
    align-items: flex-start;
    color: var(--text-2);
    font-size: .99rem;
}
.sc-points .pt-ico {
    flex: none;
    width: 1.55rem; height: 1.55rem;
    margin-top: .25rem;
    border-radius: .55rem;
    display: grid;
    place-items: center;
    color: var(--brand-ink);
    background: var(--brand-soft);
    border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
}
.sc-points .pt-ico svg { width: .9rem; height: .9rem; }
.sc-points b { color: var(--text); }

/* ── «چطور کار می‌کند» + «خوب است برای» ───────────────────────────────────────
   The cards at the top of the page answer «what do I get». By the time someone has
   scrolled to a showcase they have stopped asking that and started asking how it works
   and whether it is for them — so these sections answer THOSE, and stop repeating
   benefit claims one altitude above the reader. */

.sc-steps-head {
    margin: 1.6rem 0 .7rem;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .02em;
    color: var(--brand-ink);
}

.sc-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .7rem;
    /* A counted line down the left of the numbers, so three steps read as a sequence
       rather than as three more bullets. */
    position: relative;
}
.sc-steps li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .7rem;
    align-items: start;
    font-size: .95rem;
    line-height: 1.95;
    color: var(--text-2);
}
.sc-steps li b { color: var(--text); font-weight: 700; }
.sc-steps .st-n {
    display: grid;
    place-items: center;
    width: 1.65rem; height: 1.65rem;
    margin-top: .25rem;
    border-radius: 50%;
    font-size: .8rem;
    font-weight: 800;
    color: var(--brand-ink);
    background: var(--brand-soft);
    border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent);
}

.sc-for {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem;
    margin: 1.1rem 0 0;
}
.sc-for .for-tag {
    font-size: .78rem;
    font-weight: 800;
    color: var(--text-2);
    margin-inline-end: .2rem;
}
.sc-for .for-chip {
    font-size: .82rem;
    padding: .3rem .7rem;
    border-radius: 999px;
    color: var(--text);
    background: var(--card-2);
    border: 1px solid var(--border);
}

.sc-cta {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-top: 1.6rem;
    font-weight: 700;
}

.sc-note {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-top: 1.1rem;
    padding: .5rem 1rem;
    border-radius: .9rem;
    font-size: .84rem;
    font-weight: 700;
    color: var(--teal-ink);
    background: color-mix(in srgb, var(--teal-surface) 13%, transparent);
    border: 1px solid color-mix(in srgb, var(--teal-surface) 38%, transparent);
}
.sc-note svg { flex: none; }

@media (max-width: 920px) {
    .showcase .shell { grid-template-columns: 1fr; }
    .showcase.flip .sc-copy { order: 0; }
    .showcase.flip .sc-stage { order: 1; }
    .sc-num { display: none; }
}

/* ── مسیر شروع ───────────────────────────────────────────────────────────── */

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem;
    margin-top: 2.6rem;
    counter-reset: step;
}
@media (max-width: 860px) { .steps-grid { grid-template-columns: 1fr; } }

.step-card {
    position: relative;
    padding: 1.7rem 1.5rem 1.4rem;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
}
.step-card::before {
    counter-increment: step;
    content: "۰" counter(step, persian);
    font-family: 'Lalezar', sans-serif;
    font-size: 2.5rem;
    line-height: 1;
    display: block;
    margin-bottom: .6rem;
    background: linear-gradient(135deg, #8E72FF, var(--brand-deep));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.step-card h3 { font-size: 1.1rem; }
.step-card p { color: var(--text-2); font-size: .95rem; margin: 0; }

.trust-strip {
    margin-top: 2.4rem;
    display: flex;
    flex-wrap: wrap;
    gap: .9rem;
}
.trust-item {
    flex: 1 1 15rem;
    display: flex;
    gap: .8rem;
    align-items: center;
    padding: 1rem 1.2rem;
    border-radius: var(--radius);
    background: var(--card-2);
    border: 1px solid var(--border);
    font-size: .92rem;
    color: var(--text-2);
}
.trust-item .icon { color: var(--teal-ink); flex: none; }
.trust-item b { color: var(--text); display: block; font-size: .97rem; }

/* ── نظرات ───────────────────────────────────────────────────────────────── */

.quotes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem;
    margin-top: 2.6rem;
}
@media (max-width: 980px) { .quotes-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .quotes-grid { grid-template-columns: 1fr; } }

.quote-card {
    display: flex;
    flex-direction: column;
    gap: .9rem;
    padding: 1.5rem 1.4rem;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
}
.quote-card .stars { display: flex; gap: .15rem; color: var(--gold-ink); }
.quote-card .stars svg { width: 1rem; height: 1rem; }
.quote-card blockquote {
    margin: 0;
    font-size: .96rem;
    color: var(--text-2);
    flex: 1;
}
.quote-card .who { display: flex; align-items: center; gap: .75rem; }
.quote-card .avatar {
    width: 2.7rem; height: 2.7rem;
    flex: none;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    padding-top: .18rem;
}
.avatar.av-1 { background: linear-gradient(135deg, #8E72FF, #4A33C9); }
.avatar.av-2 { background: linear-gradient(135deg, #F0928B, #C2426E); }
.avatar.av-3 { background: linear-gradient(135deg, #43C6AC, #16626B); }
.avatar.av-4 { background: linear-gradient(135deg, #F0C866, #D07B2E); }
.avatar.av-5 { background: linear-gradient(135deg, #64A9F0, #2D55C9); }
.avatar.av-6 { background: linear-gradient(135deg, #B465DA, #EE609C); }
.quote-card .who .n { font-weight: 700; font-size: .95rem; }
.quote-card .who .r { font-size: .8rem; color: var(--text-3); }

/* ── قیمت‌گذاری ──────────────────────────────────────────────────────────── */

.bonus-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2.4rem 0 1.6rem;
    padding: 1.1rem 1.4rem;
    border-radius: var(--radius);
    background:
        linear-gradient(var(--card), var(--card)) padding-box,
        linear-gradient(120deg, #E9B949, #6C4DF6) border-box;
    border: 1.5px solid transparent;
}
.bonus-banner .g-ico {
    width: 3rem; height: 3rem;
    flex: none;
    border-radius: 1rem;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #F0C866, #DFA92E);
    color: #10143B;
}
.bonus-banner b { font-size: 1.05rem; }
.bonus-banner p { margin: 0; color: var(--text-2); font-size: .92rem; }

.price-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
@media (max-width: 1020px) { .price-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .price-grid { grid-template-columns: 1fr; } }

.price-card {
    position: relative;
    padding: 1.6rem 1.4rem 1.5rem;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    text-align: center;
    transition: transform .2s, border-color .2s;
}
.price-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--brand) 50%, var(--border)); }
.price-card.featured {
    background:
        linear-gradient(var(--card), var(--card)) padding-box,
        linear-gradient(150deg, #7B5CFF, #E9B949) border-box;
    border: 1.5px solid transparent;
    box-shadow: var(--glow);
}
.price-badge {
    position: absolute;
    top: -0.85rem;
    inset-inline-start: 50%;
    translate: 50% 0;
    padding: .22rem .95rem;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 700;
    color: #10143B;
    background: linear-gradient(135deg, #F0C866, #DFA92E);
    box-shadow: 0 6px 16px rgba(233, 185, 73, .4);
    white-space: nowrap;
}
.price-card h3 { font-size: 1rem; color: var(--text-2); font-weight: 700; }
.price-card .credits {
    font-family: 'Lalezar', 'Vazirmatn', sans-serif;
    font-size: 2.3rem;
    line-height: 1.25;
    background: linear-gradient(135deg, #7B5CFF, var(--brand-deep));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
[data-theme="dark"] .price-card .credits {
    background: linear-gradient(135deg, #C3B8FF, #8E72FF);
    -webkit-background-clip: text;
    background-clip: text;
}
.price-card .credits small { font-family: 'Vazirmatn', sans-serif; font-size: .95rem; }
.price-card .toman { color: var(--text-2); font-weight: 700; }
.price-card .per { font-size: .78rem; color: var(--text-3); margin-top: .2rem; }

.pricing-note {
    margin-top: 1.6rem;
    text-align: center;
    color: var(--text-3);
    font-size: .9rem;
}

/* ── پرسش‌ها ─────────────────────────────────────────────────────────────── */

.faq-list { margin-top: 2.4rem; display: flex; flex-direction: column; gap: .8rem; }
.faq-list details {
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}
.faq-list summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: 1.15rem 1.4rem;
    font-weight: 700;
    cursor: pointer;
    transition: color .15s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--brand-ink); }
.faq-list summary .pm {
    margin-inline-start: auto;
    flex: none;
    width: 1.7rem; height: 1.7rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--brand-soft);
    color: var(--brand-ink);
    transition: transform .25s;
}
.faq-list details[open] summary .pm { transform: rotate(45deg); }
.faq-list details > p {
    margin: 0;
    padding: 0 1.4rem 1.3rem;
    color: var(--text-2);
    font-size: .97rem;
}

/* ── CTA پایانی ──────────────────────────────────────────────────────────── */

.final-cta { padding-block: clamp(3rem, 7vw, 5.5rem); }
.cta-panel {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    padding: clamp(2.6rem, 6vw, 4.5rem) clamp(1.4rem, 5vw, 4rem);
    text-align: center;
    color: #fff;
    background:
        radial-gradient(120% 160% at 12% -20%, rgba(63, 209, 192, .35), transparent 50%),
        radial-gradient(120% 150% at 88% 120%, rgba(233, 185, 73, .28), transparent 50%),
        linear-gradient(135deg, #7B5CFF, #6C4DF6 40%, #3A28A0);
    box-shadow: var(--glow);
}
.cta-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .35) 1px, transparent 1.4px);
    background-size: 22px 22px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000, transparent 72%);
    mask-image: radial-gradient(ellipse at 50% 0%, #000, transparent 72%);
    opacity: .35;
    pointer-events: none;
}
.cta-panel h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
.cta-panel .lede { color: rgba(255, 255, 255, .92); max-width: 34rem; margin-inline: auto; }
.cta-panel .cta-row { justify-content: center; }
.cta-panel .btn-primary {
    background: #fff;
    color: #3A28A0;
    box-shadow: 0 16px 44px rgba(0, 0, 0, .3);
}
.cta-panel .btn-outline { border-color: rgba(255, 255, 255, .65); color: #fff; background: transparent; }
.cta-panel .btn-outline:hover { border-color: #fff; color: #fff; }
.cta-panel .micro {
    margin: 1.4rem 0 0;
    font-size: .88rem;
    color: rgba(255, 255, 255, .88);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .4rem 1.4rem;
}
.cta-panel .micro span { display: inline-flex; align-items: center; gap: .4rem; }

/* ── فوتر ─────────────────────────────────────────────────────────────────── */

.site-footer {
    border-top: 1px solid var(--border);
    background: var(--bg-soft);
    padding-top: clamp(2.6rem, 6vw, 4rem);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 2.2rem;
    padding-bottom: 2.6rem;
}
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand p { color: var(--text-2); font-size: .93rem; max-width: 24rem; }
.footer-col h3 { font-size: .95rem; color: var(--text-3); font-weight: 700; margin-bottom: 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.footer-col a { color: var(--text-2); font-size: .95rem; }
.footer-col a:hover { color: var(--brand-ink); }
.footer-contact li { display: flex; gap: .55rem; align-items: center; color: var(--text-2); font-size: .93rem; }
.footer-contact .icon { color: var(--brand-ink); flex: none; }

.enamad-box {
    margin-top: 1.2rem;
    display: inline-flex;
    padding: .5rem;
    border-radius: .9rem;
    background: #fff;
    border: 1px solid var(--border);
}
.enamad-box img { width: 4.6rem; height: auto; }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 1.2rem 0 1.4rem;
    display: flex;
    flex-wrap: wrap;
    gap: .6rem 1.5rem;
    align-items: center;
    justify-content: space-between;
    font-size: .86rem;
    color: var(--text-3);
}
.footer-bottom a { color: inherit; }

/* ── صفحات دربارهٔ ما / تماس با ما ───────────────────────────────────────── */

.page-hero {
    position: relative;
    padding-block: clamp(3.2rem, 8vw, 6rem) clamp(2.6rem, 6vw, 4.2rem);
    text-align: center;
}
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.3; }
.page-hero .lede { font-size: 1.1rem; max-width: 36rem; margin-inline: auto; }

.prose { font-size: 1.03rem; color: var(--text-2); }
.prose p { margin-bottom: 1.25em; }

.story-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.1rem;
}
@media (max-width: 860px) { .story-grid { grid-template-columns: 1fr; } }

.value-card {
    padding: 1.6rem 1.5rem;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
}
.value-card .v-ico {
    width: 2.9rem; height: 2.9rem;
    border-radius: .95rem;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--tool-c1, #6C4DF6), var(--tool-c2, #4A33C9));
    margin-bottom: 1rem;
}
.value-card h3 { font-size: 1.08rem; }
.value-card p { margin: 0; color: var(--text-2); font-size: .95rem; }

.about-story {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}
@media (max-width: 920px) { .about-story { grid-template-columns: 1fr; } }

.about-capabilities {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2.4rem;
}
@media (max-width: 860px) { .about-capabilities { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .about-capabilities { grid-template-columns: 1fr; } }
.cap-chip {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: 1rem 1.15rem;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text) !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: .97rem;
    transition: transform .18s, border-color .18s;
}
.cap-chip:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--brand) 55%, var(--border)); }
.cap-chip .icon { color: var(--brand-ink); flex: none; }

/* تماس */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem;
}
@media (max-width: 980px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    padding: 1.6rem 1.5rem;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    transition: transform .2s, border-color .2s;
}
.contact-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--brand) 50%, var(--border)); }
.contact-card .c-ico {
    width: 2.9rem; height: 2.9rem;
    border-radius: .95rem;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--tool-c1, #6C4DF6), var(--tool-c2, #4A33C9));
    margin-bottom: .8rem;
}
.contact-card h3 { font-size: .95rem; color: var(--text-3); margin-bottom: .1rem; }
.contact-card .val { font-size: 1.06rem; font-weight: 700; color: var(--text); word-break: break-word; }
.contact-card .val[dir="ltr"] { text-align: end; }
.contact-card .hint { font-size: .84rem; color: var(--text-3); margin: 0; }

.feedback-callout {
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
    margin-top: 2rem;
    padding: 1.5rem 1.6rem;
    border-radius: var(--radius);
    background:
        linear-gradient(var(--card), var(--card)) padding-box,
        linear-gradient(120deg, #6C4DF6, #3FD1C0) border-box;
    border: 1.5px solid transparent;
}
.feedback-callout .f-ico {
    flex: none;
    width: 3rem; height: 3rem;
    border-radius: 1rem;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #6C4DF6, #4A33C9);
}
.feedback-callout b { font-size: 1.05rem; }
.feedback-callout p { margin: .2rem 0 0; color: var(--text-2); font-size: .95rem; }

/* ── ظهور هنگام اسکرول ───────────────────────────────────────────────────── */

html.js .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s cubic-bezier(.2, .65, .25, 1), transform .7s cubic-bezier(.2, .65, .25, 1);
}
html.js .reveal.in { opacity: 1; transform: none; }
html.js .reveal-d1.in { transition-delay: .08s; }
html.js .reveal-d2.in { transition-delay: .16s; }
html.js .reveal-d3.in { transition-delay: .24s; }

/* پیام‌های دموی هیرو یکی‌یکی ظاهر می‌شوند */
html.js .p-seq { opacity: 0; transform: translateY(10px) scale(.98); }
html.js .demo-on .p-seq { animation: msg-in .5s cubic-bezier(.2, .65, .25, 1) forwards; }
html.js .demo-on .p-seq.s1 { animation-delay: .3s; }
html.js .demo-on .p-seq.s2 { animation-delay: 1.05s; }
html.js .demo-on .p-seq.s3 { animation-delay: 1.9s; }
html.js .demo-on .p-seq.s4 { animation-delay: 2.75s; }
html.js .demo-on .p-seq.s5 { animation-delay: 3.5s; }
@keyframes msg-in { to { opacity: 1; transform: none; } }

/* گوشی روی صفحه‌های خیلی باریک: کمی جمع‌وجورتر تا محتوا نبُرد */
@media (max-width: 420px) {
    .phone { width: min(340px, 88vw); }
    .p-bubble { font-size: .72rem; }
    .p-chip { font-size: .62rem; padding-inline: .55rem; }
    .p-nav span { font-size: .5rem; }
    .p-say .lat { font-size: .72rem; }
    .p-track .meta .n { font-size: .7rem; }
    .p-appbar .t { font-size: .88rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    html.js .reveal, html.js .p-seq { opacity: 1 !important; transform: none !important; }
    .marquee { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
}

/* ───────────────────────── وبلاگ ─────────────────────────
   Everything here reuses the tokens above, so an article inherits the site's
   theme (including dark mode) without a second palette to keep in step. */

.post-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
}

.post-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    padding-block-end: 1rem;
}

/* The whole card is one link: a separate «ادامه» would give a screen reader two
   stops for one destination. */
.post-card-link { display: block; color: inherit; text-decoration: none; }
.post-card-link img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-card-link h3 { margin: 1rem 1.1rem 0; font-size: 1.15rem; line-height: 1.6; }
.post-card-link:hover h3 { color: var(--brand-ink); }
.post-card > p { margin: .6rem 1.1rem 0; color: var(--text-2); }

.post-meta { color: var(--text-3); font-size: .9rem; }
.post-card .post-meta { margin: .75rem 1.1rem 0; }

.pager {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    margin-block-start: 2.5rem;
}

.breadcrumbs {
    width: min(780px, 92vw);
    margin: 1.5rem auto 0;
    color: var(--text-3);
    font-size: .9rem;
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

.post-cover { width: 100%; border-radius: 18px; margin-block-end: 2rem; }

/* Article typography: a reading measure and real vertical rhythm — the two things
   that decide whether a long Persian page is finished or abandoned. */
.post-body { padding-block: 1rem 3rem; font-size: 1.05rem; line-height: 1.95; }
.post-body h2 {
    margin-block: 2.4rem .7rem;
    padding-inline-start: .8rem;
    border-inline-start: 4px solid var(--brand);
    font-size: 1.45rem;
    line-height: 1.6;
}
.post-body h3 { margin-block: 1.7rem .5rem; font-size: 1.2rem; line-height: 1.6; }
.post-body p { margin-block: 0 .8rem; color: var(--text-2); }
.post-body ul, .post-body ol { margin-block: 0 .9rem; padding-inline-start: 1.4rem; color: var(--text-2); }
.post-body li { margin-block-end: .3rem; }
.post-body a { color: var(--brand-ink); }
.post-body img { border-radius: 16px; margin-block: 1.4rem; box-shadow: var(--shadow-card); }
.post-body blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    border-inline-start: 3px solid var(--brand);
    background: var(--card-2);
    border-radius: 0 14px 14px 0;
    color: var(--text-2);
}
.post-body table { width: 100%; border-collapse: collapse; margin-block: 1.5rem; }
.post-body th, .post-body td { border: 1px solid var(--border); padding: .6rem .8rem; text-align: start; }
.post-body th { background: var(--card-2); }

/* A «what / why / where» table is right on a desktop and unreadable on a phone: three
   columns inside 360px give every cell about four words a line, which turned the privacy
   policy's ten rows into 2,200px of ladder. Under 640px each row becomes its own card —
   the row header is the title, and each value carries the column name it answered.
   The roles in the markup are what keeps this a table to a screen reader once the cells
   stop being display:table-cell; the labels are aria-hidden so nothing is said twice. */
.cell-label { display: none; }

@media (max-width: 640px) {
    .post-body .data-table,
    .post-body .data-table tbody,
    .post-body .data-table tr,
    .post-body .data-table th,
    .post-body .data-table td { display: block; width: auto; }

    .post-body .data-table thead {
        position: absolute;
        width: 1px; height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
    }

    .post-body .data-table tr {
        border: 1px solid var(--border);
        border-radius: 14px;
        background: var(--card);
        padding: .95rem 1.05rem;
        margin-block-end: .8rem;
    }

    .post-body .data-table th,
    .post-body .data-table td { border: 0; padding: 0; }

    .post-body .data-table th[scope="row"] {
        background: none;
        font-size: 1.02rem;
        line-height: 1.8;
    }

    .post-body .data-table td { margin-block-start: .7rem; line-height: 1.9; }

    .post-body .data-table .cell-label {
        display: block;
        font-size: .78rem;
        color: var(--text-3);
        margin-block-end: .1rem;
    }
}
.post-body code {
    background: var(--card-2);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: .1rem .4rem;
    font-size: .95em;
}

.related-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.related-list li { margin-block-end: .75rem; }
.related-list a { color: var(--brand-ink); font-weight: 600; }

/* ───────────────────── صفحات ابزار ───────────────────── */

.tool-cta { display: flex; gap: .75rem; flex-wrap: wrap; margin-block-start: 1.5rem; }
.tool-bonus { color: var(--text-3); margin-block-start: .75rem; }

.tool-faq details {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--card);
    padding: 1rem 1.15rem;
    margin-block-end: .75rem;
}
.tool-faq summary {
    cursor: pointer;
    font-weight: 700;
    /* The marker is the only affordance saying this opens, so it stays — just moved to the
       start of the line, where an RTL reader's eye already is. */
    list-style-position: inside;
}
.tool-faq summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 8px; }
.tool-faq details[open] summary { margin-block-end: .6rem; }
.tool-faq details p { margin: 0; color: var(--text-2); line-height: 2; }

/* ── صفحه‌های مدل ─────────────────────────────────────────────────────────
   A page per model FAMILY. The pieces here are the ones a tool page has no use
   for: the «good at / not for» pair, the copyable prompt list, and the index's
   card grid. Everything else — hero, bands, FAQ, related list — is shared. */

.model-maker { margin: .35rem 0 0; font-size: .9rem; color: var(--text-3); }

/* Two columns that must NOT read as equal: green is the reason to stay, amber is
   the warning. On a phone they stack and the border colour is the only cue left,
   so each card also says which it is in its own heading. */
.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; margin-top: 1.8rem; }
@media (max-width: 760px) { .fit-grid { grid-template-columns: 1fr; } }

.fit-card {
    padding: 1.3rem 1.35rem;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid var(--border);
    border-inline-start-width: 4px;
}
.fit-card h3 { font-size: 1.02rem; margin: 0 0 .7rem; }
.fit-card ul { margin: 0; padding-inline-start: 1.15rem; }
.fit-card li { margin-block-end: .5rem; color: var(--text-2); line-height: 1.95; }
.fit-yes { border-inline-start-color: #16A394; }
.fit-no { border-inline-start-color: #D07B2E; }

/* Prompts are meant to be selected and copied, so they are set as text — not as
   code, which invites a monospace font Persian has no business being set in. */
.prompt-list { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: .7rem; }
.prompt-list li {
    padding: .95rem 1.1rem;
    border-radius: 14px;
    background: var(--card);
    border: 1px solid var(--border);
    border-inline-start: 3px solid var(--brand-soft);
    color: var(--text-2);
    line-height: 1.95;
}

/* «از عکس شما» beside a model that accepts a reference image. */
.v-tag {
    display: inline-block;
    margin-inline-start: .45rem;
    padding: .1rem .45rem;
    border-radius: 6px;
    background: var(--brand-soft);
    color: var(--brand-ink);
    font-size: .72rem;
    font-weight: 700;
    vertical-align: middle;
}

.model-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 2.2rem;
}
@media (max-width: 1100px) { .model-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px) { .model-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .model-grid { grid-template-columns: 1fr; } }

.model-card {
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1.2rem 1.1rem;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    color: inherit !important;
    text-decoration: none !important;
    transition: transform .22s, border-color .22s, box-shadow .22s;
}
.model-card:hover { transform: translateY(-3px); border-color: var(--brand); }
.model-card p { margin: 0; }
.mc-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: .45rem; }
.mc-fa { font-size: 1.08rem; font-weight: 700; }
.mc-en { font-size: .82rem; color: var(--text-3); }
.mc-maker { margin-top: .2rem !important; font-size: .8rem; color: var(--text-3); }
.mc-best { margin-top: .7rem !important; font-size: .9rem; color: var(--text-2); line-height: 1.85; }
.model-card .more { margin-top: auto; padding-top: .8rem; }

/* ── صفحه‌های دستیار ──────────────────────────────────────────────────────
   Reuses the model grid and card; adds the face, the «good for» list and the
   published system prompt. */

.as-face { margin: 0 0 .4rem; font-size: 2rem; line-height: 1; }
.as-card .as-face { font-size: 1.7rem; }

.as-for { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: .6rem; }
.as-for li {
    padding: .8rem 1rem .8rem 1rem;
    border-inline-start: 3px solid var(--brand-soft);
    background: var(--card);
    border-radius: 12px;
    color: var(--text-2);
    line-height: 1.9;
}

/* The instruction, printed. Set as prose rather than code — it is Persian, and a
   monospace block would make an honest disclosure look like a config dump. */
.as-prompt {
    margin: 1.4rem 0 0;
    padding: 1.2rem 1.3rem;
    border: 1px solid var(--border);
    border-inline-start: 4px solid var(--brand);
    border-radius: 14px;
    background: var(--card);
    color: var(--text-2);
    line-height: 2.05;
    font-size: .98rem;
}

/* ── صفحه‌های کاربرد ریلز ─────────────────────────────────────────────────
   The storyboard is the page's proof: the shot on one line and the narration
   under it, so the shape of the reel is readable without playing anything. */

.sb-list { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; gap: .8rem; }
.sb-list li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .8rem;
    align-items: start;
    padding: 1rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--card);
}
.sb-n {
    display: grid;
    place-items: center;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 50%;
    background: var(--brand-soft);
    color: var(--brand-ink);
    font-weight: 700;
    font-size: .85rem;
}
.sb-body { display: grid; gap: .3rem; }
.sb-shot { color: var(--text-2); line-height: 1.9; }
.sb-line { color: var(--text); font-weight: 600; line-height: 1.9; }

.setup-list { margin: 1.4rem 0 1.4rem; display: grid; gap: .7rem; }
.setup-list > div {
    display: grid;
    grid-template-columns: 5.5rem 1fr;
    gap: .8rem;
    align-items: baseline;
    padding: .8rem 1rem;
    border-inline-start: 3px solid var(--brand-soft);
    background: var(--card);
    border-radius: 12px;
}
.setup-list dt { font-weight: 700; margin: 0; }
.setup-list dd { margin: 0; color: var(--text-2); line-height: 1.9; }
@media (max-width: 560px) {
    .setup-list > div { grid-template-columns: 1fr; gap: .2rem; }
}

/* ── نمایش روی صفحه‌های ابزار ──────────────────────────────────────────────
   The six tool pages were the thinnest thing on the site: prose, a FAQ and no
   picture at all. These are the bands that fixed it — a grid for the square
   outputs, a scrolling strip for the 9:16 ones, real audio players, and drawn
   mock-ups for the two tools that have nothing to photograph. */

.show-prompt {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: .55rem;
    margin: 0 0 1.8rem;
    text-align: center;
}
.sp-tag {
    padding: .18rem .6rem;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-ink);
    font-size: .78rem;
    font-weight: 700;
}
.sp-text { font-size: 1.05rem; color: var(--text); }

/* Square outputs: four across, then two, then two — never one, because the point
   of the band is that the SAME sentence produced different pictures. */
.show-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 900px) { .show-grid { grid-template-columns: repeat(2, 1fr); } }
.show-grid figure { margin: 0; }
.show-grid img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--card-2);
    display: block;
}
.show-grid figcaption {
    margin-top: .5rem;
    font-size: .82rem;
    color: var(--text-3);
    text-align: center;
}

/* 9:16 previews. A horizontal scroller rather than a wrapped grid: eleven tall
   images in a grid is a wall, and swiping is what a phone user does anyway. */
.show-strip {
    list-style: none;
    margin: 0;
    padding: .25rem .25rem 1rem;
    display: flex;
    gap: .9rem;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}
.show-strip li { flex: 0 0 auto; width: 168px; scroll-snap-align: start; text-align: center; }
.show-strip img {
    width: 168px;
    height: auto;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--card-2);
    display: block;
}
.show-strip span { display: block; margin-top: .5rem; font-size: .82rem; color: var(--text-3); }

.show-audio {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .9rem;
}
@media (max-width: 760px) { .show-audio { grid-template-columns: 1fr; } }
.show-audio li {
    padding: 1rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--card);
}
.sa-label { display: block; margin-bottom: .6rem; font-weight: 700; font-size: .95rem; }
.show-audio audio { width: 100%; }

/* The drawn mock-ups. A phone-shaped frame with real strings in it — closer to
   the truth than a stock photo, and it costs nothing to load. */
.show-mock { display: grid; place-items: center; }
.mock-phone {
    width: min(340px, 92vw);
    padding: 1.1rem;
    border: 1px solid var(--border);
    border-radius: 26px;
    background: var(--card);
    box-shadow: var(--shadow-card);
    display: grid;
    gap: .55rem;
}
.mk-bubble {
    margin: 0;
    padding: .7rem .9rem;
    border-radius: 16px;
    font-size: .93rem;
    line-height: 1.95;
    max-width: 88%;
}
.mk-user {
    justify-self: start;
    background: var(--brand-soft);
    color: var(--brand-ink);
    border-end-start-radius: 5px;
}
.mk-ai {
    justify-self: end;
    background: var(--card-2);
    color: var(--text);
    border-end-end-radius: 5px;
}
.mk-cost { margin: .1rem 0 0; font-size: .74rem; color: var(--text-3); justify-self: end; }

/* The blinking caret is decoration, so it stops for anyone who asked motion to stop. */
.mk-caret {
    display: inline-block;
    width: 2px;
    height: 1em;
    margin-inline-start: 2px;
    background: var(--brand);
    vertical-align: -2px;
    animation: mk-blink 1s steps(2, start) infinite;
}
@keyframes mk-blink { to { visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .mk-caret { animation: none; } }

.recipe-list { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; gap: .8rem; }
.recipe-list li {
    display: grid;
    gap: .45rem;
    padding: 1.05rem 1.15rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--card);
}
.rc-give, .rc-get { color: var(--text-2); line-height: 1.95; }
.rc-arrow { color: var(--brand-ink); display: inline-flex; }

.tool-models { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: .7rem; }
.tool-models a {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: .5rem;
    padding: .95rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--card);
    color: inherit !important;
    text-decoration: none !important;
    transition: border-color .18s, transform .18s;
}
.tool-models a:hover { border-color: var(--brand); transform: translateY(-2px); }
.tm-name { font-weight: 700; }
.tm-en { margin-inline-start: .4rem; font-size: .8rem; font-weight: 400; color: var(--text-3); }
.tm-price { font-size: .88rem; color: var(--brand-ink); }

/* Assistant tiles: the emoji in a coloured chip rather than floating on the card.
   Eighteen bare emoji on one page read as a sticker sheet; in a tinted square they
   read as a set, and the colour is the thing you actually navigate by. */
.as-tile {
    display: inline-grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 13px;
    font-size: 1.25rem;
    line-height: 1;
    background: linear-gradient(135deg, var(--as-c1, var(--brand)), var(--as-c2, var(--brand-deep)));
    box-shadow: 0 6px 16px -8px var(--as-c2, var(--brand-deep));
}
.as-card .as-tile { margin-bottom: .55rem; }
.as-hero { margin: 0 0 .6rem; }
.as-hero .as-tile { width: 3.2rem; height: 3.2rem; border-radius: 17px; font-size: 1.7rem; }

/* ── مقاله: ظاهر ─────────────────────────────────────────────────────────────
   The first paragraph is the article's own lede and earns the size to act like one;
   links get a visible affordance; the pull-quote reads as a voice, not a box. */
.post-body > p:first-of-type {
    font-size: 1.14rem;
    line-height: 2;
    color: var(--text);
}

.post-body a {
    text-decoration: underline;
    text-decoration-color: var(--brand-soft);
    text-underline-offset: 4px;
    transition: text-decoration-color .15s;
}
.post-body a:hover { text-decoration-color: var(--brand); }

.post-body blockquote {
    margin: 1.4rem 0;
    padding: 1rem 1.2rem;
    border: 1px solid var(--border);
    border-inline-start: 4px solid var(--brand);
    border-radius: 14px;
    background: var(--card);
    color: var(--text-2);
    font-size: 1.02rem;
}
.post-body blockquote p:last-child { margin-block-end: 0; }

.post-body hr {
    margin-block: 2rem;
    border: 0;
    border-top: 1px solid var(--border);
}

.post-cover {
    border-radius: 18px;
    box-shadow: var(--shadow-card);
}

/* The drawn scene that opens each feature card. Inline SVG on the site's own variables:
   no request, follows dark mode by construction, and inherits the card's accent through
   --tool-c1 so eight scenes read as one hand. */
.tool-scene { display: block; margin: -.2rem 0 .95rem; }
.tool-scene svg { display: block; width: 100%; height: auto; }
