/* Spider Pricing. Built on inner.css + flow.css (EliteZone system, Spider red); the title, step
   card and summary layout live in flow.css (shared with the Trial and account pages).
   Apple buy-page layout: the title on the left, then the current step in a white card with the
   order summary pinned beside it, then the free trial and the questions people ask before
   buying. Once an account step is reached (.sp-account-mode, js/pricing.js), only the title and
   the two cards stay. */

/* ---------- free trial ---------- */
.p-trial {
    margin-top: var(--section-space);
}

.p-trial-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px 48px;
    padding: 56px;
    border-radius: var(--radius-big);
    background: var(--card);
}

.p-trial-card .lead {
    margin-top: 12px;
}

/* ---------- Spider Network (2026-10-25): companies and institutes, a quote on WhatsApp ----------
   Text and its button on the left, three white tiles on the right (server, desks, seats). */
.p-network {
    margin-top: var(--section-space);
}

.p-network-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 40px 64px;
    padding: 56px;
    border-radius: var(--radius-big);
    background: var(--card);
}

.p-network-lead {
    max-width: 30em;
    margin: 16px 0 0;
    color: var(--g700);
    font-size: 19px;
    line-height: 1.6;
}

.p-network-text .btn {
    margin-top: 28px;
}

.p-network-points {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.p-network-points li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border-radius: 18px;
    background: #fff;
}

.p-network-ic {
    display: grid;
    flex: none;
    place-items: center;
    width: 48px;
    height: 48px;                    /* black and grey with a red Spider part, on the tile's white (as the home cards) */
}

.p-network-ic svg {
    width: 40px;
    height: 40px;
}

.p-network-points strong {
    display: block;
    color: var(--g900);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
}

.p-network-points small {
    display: block;
    margin-top: 2px;
    color: var(--g600);
    font-size: 14px;
    line-height: 1.5;
}

.sp-account-mode .p-network {
    display: none;
}

@media (max-width: 1068px) {
    .p-network-card {
        grid-template-columns: minmax(0, 1fr);
        padding: 40px;
    }
}

@media (max-width: 734px) {
    .p-network-card {
        padding: 32px 24px;
    }

    .p-network-points li {
        padding: 16px;
    }
}

/* ---------- questions ---------- */
.p-faq {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 48px;
    margin-top: var(--section-space);
}

.p-faq-head .h2 {
    margin-top: 14px;
}

.p-faq-head .link {
    margin-top: 20px;
}

.p-faq-list {
    border-bottom: 1px solid var(--g300);
    interpolate-size: allow-keywords;
}

.p-faq-list details {
    border-top: 1px solid var(--g300);
}

.p-faq-list summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 0;
    color: var(--g900);
    font-size: 21px;
    font-weight: 600;
    line-height: 1.35;
    list-style: none;
    cursor: pointer;
}

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

.p-faq-list summary .ctl svg {
    transition: transform .4s var(--ease);
}

.p-faq-list summary:hover .ctl {
    background: var(--g300);
    color: var(--g900);
}

.p-faq-list details[open] .ctl svg {
    transform: rotate(45deg);
}

.p-faq-list details p {
    margin: 0;
    padding: 0 64px 28px 0;
    color: var(--g700);
    font-size: 17px;
    line-height: 1.65;
}

/* answers open to their real height */
.p-faq-list details::details-content {
    block-size: 0;
    overflow: clip;
    transition: block-size .5s var(--ease), content-visibility .5s var(--ease) allow-discrete;
}

.p-faq-list details[open]::details-content {
    block-size: auto;
}

/* ---------- account steps: only the title and the two cards ---------- */
.sp-account-mode .p-trial,
.sp-account-mode .p-faq {
    display: none;
}

.sp-account-mode .p-hero .h1 {
    font-size: clamp(2.25rem, 4vw, 3.5rem);
}

/* ---------- tablet ---------- */
@media (max-width: 1068px) {
    .p-trial-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 48px;
    }

    .p-faq {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }
}

/* ---------- phones ---------- */
@media (max-width: 734px) {
    .p-trial-card {
        padding: 36px 28px;
    }

    .p-faq-list summary {
        font-size: 19px;
    }

    .p-faq-list details p {
        padding-right: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .p-faq-list details::details-content {
        transition: none;
    }
}

/* ===== phones and tablets (2026-11-07), everything here sits inside a width query, the desktop stays as it was ===== */
/* The FAQ lists on /faq and /pricing = the home page FAQ (user reports 2026-11-09 «FAQ همه جا مثل هم باشند»,
   the user chose «like the home page»), at every width:
   - a grey #F5F5F7 band behind the questions, edge to edge;
   - questions in ink 600, 18/27 (22/33 from 768, the home page's own step), answers in ink 16/26.4 (18/29.7);
   - a 16 px chevron (no grey disc) that turns over when the answer opens;
   - a thin #E5E7EB line under each row, none above the first;
   - 24 above the question and 8 below on phones, 32 / 24 from 768; on phones the rows run to the screen's
     edges with 24 inside, like the home page. */
@media screen {
    html body .fq-page .fq-group,
    html body #purchase-faq {
        margin-top: 0;
        padding-top: var(--section-space);
        background: #F5F5F7;
        box-shadow: 0 0 0 100vmax #F5F5F7;
        clip-path: inset(0 -100vmax);
    }

    html body .fq-page .p-hero + .fq-group,
    html body #purchase-faq {
        margin-top: var(--section-space);
    }

    html body .fq-page .fq-group:has(+ :not(.fq-group)),
    html body #purchase-faq {
        padding-bottom: var(--section-space);
    }

    html body .p-faq-list {
        border-bottom: 0;
    }

    html body .p-faq-list details {
        border-top: 0;
        border-bottom: 1px solid #E5E7EB;
    }

    html body .p-faq-list summary {
        gap: 16px;
        padding: 24px 0 8px;
        color: #0D0D12;
        font-size: 18px;
        font-weight: 600;
        line-height: 1.5;
        letter-spacing: .005em;
        transition: padding .15s ease-out;
    }

    html body .p-faq-list details[open] summary {
        padding-bottom: 16px;
    }

    html body .p-faq-list summary .ctl,
    html body .p-faq-list summary:hover .ctl,
    html body .p-faq-list summary:active .ctl {
        flex: none;
        width: 16px;
        height: 16px;
        min-width: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: none;
        box-shadow: none;
        color: #52525B;
        transform: none;
    }

    html body .p-faq-list summary .ctl svg {
        display: none;
    }

    html body .p-faq-list summary .ctl::before {
        content: "";
        display: block;
        width: 16px;
        height: 16px;
        background: currentColor;
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
        transition: transform .25s ease;
    }

    html body .p-faq-list details[open] summary .ctl::before {
        transform: rotate(180deg);
    }

    html body .p-faq-list summary:focus-visible {
        outline: 2px solid var(--info, #0066CC);
        outline-offset: 4px;
    }

    html body .p-faq-list details p {
        padding: 0 0 8px;
        color: #0D0D12;
        font-size: 16px;
        line-height: 1.65;
    }
}

@media (max-width: 767px) {
    html body .p-faq-list {
        margin-inline: calc(-1 * var(--gutter, 20px));
    }

    html body .p-faq-list summary,
    html body .p-faq-list details p {
        padding-inline: 24px;
    }
}

@media (min-width: 768px) {
    html body .p-faq-list summary {
        padding: 32px 0 24px;
        font-size: 22px;
        letter-spacing: .005em;
    }

    html body .p-faq-list details[open] summary {
        padding-bottom: 16px;
    }

    html body .p-faq-list details p {
        padding: 0 64px 24px 0;
        font-size: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html body .p-faq-list summary,
    html body .p-faq-list summary .ctl::before {
        transition: none;
    }
}

/* /pricing ends on the questions: no white strip between their grey band and the grey footer */
@media screen {
    html body main:has(> #purchase-faq:last-child),
    html body main:has(> #purchase-faq + noscript:last-child) {
        padding-bottom: 0;
    }
}

/* Pricing (final QA 2026-11-11): the license box is drawn by script, so it grew from 133 to 682 px (892 on phones)
   just after load and pushed the section under it down (layout shift .15–.22 on computers). While it shows its
   «Loading your license options…» line, it keeps the height it will have. */
@media screen {
    html body .p-card.st-card:has(#st-screen > p[role=status]:only-child) {
        min-height: 682px;
    }
}

@media (max-width: 734px) {
    html body .p-card.st-card:has(#st-screen > p[role=status]:only-child) {
        min-height: 892px;
    }
}
/* ===== end of phones and tablets ===== */
