/* =========================================================
   PRODUCT + PORTFOLIO + CATALOG PAGE COMPONENTS
   Arabic-first / RTL — layered on top of style.css
========================================================= */


/* ===== Hero carousel (CSS scroll-snap, no JS) ===== */
.screens-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    padding: 12px 4px 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.screens-carousel > figure {
    flex: 0 0 240px;
    scroll-snap-align: start;
    margin: 0;
}

.screens-carousel figcaption {
    font: 500 13px/1.5 var(--font-arabic-body);
    color: var(--muted);
    margin-top: 8px;
    text-align: center;
}


/* ===== Pure-CSS phone frame =====
   Geometry derives from variables so bezel, screen and image always agree.
   Canonical screen ratio = 6/13 (matches every approved 480×1040 screenshot
   per docs/frame-ratios.md). Camera sits in the top bezel as a sibling —
   never over the screen's clipping box. */
.phone-frame {
    --bezel-side: 8px;
    --bezel-top: 20px;
    --bezel-bottom: 14px;
    --frame-radius: 32px;
    --screen-radius: calc(var(--frame-radius) - var(--bezel-side));
    --camera-size: 6px;

    position: relative;
    width: 240px;
    padding: var(--bezel-top) var(--bezel-side) var(--bezel-bottom);
    box-sizing: border-box;
    border-radius: var(--frame-radius);
    background: #141414;
    box-shadow:
        0 1px 2px rgba(0,0,0,0.08),
        0 8px 24px rgba(0,0,0,0.12);
    margin-inline: auto;
}

.phone-frame__camera {
    position: absolute;
    top: calc((var(--bezel-top) - var(--camera-size)) / 2);
    left: 50%;
    transform: translateX(-50%);
    width: var(--camera-size);
    height: var(--camera-size);
    border-radius: 50%;
    background: #2a2a2a;
    pointer-events: none;
}

.phone-frame__screen {
    aspect-ratio: 6 / 13;
    width: 100%;
    overflow: hidden;
    border-radius: var(--screen-radius);
    background: var(--accent-soft);
    display: block;
}

.phone-frame__screen > picture {
    display: block;
    width: 100%;
    height: 100%;
}

.phone-frame__screen img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

/* placeholder phone-frame removed — real screenshots now in use */


/* ===== Store badges row ===== */
.store-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    margin-top: 22px;
}

.badge-play img {
    height: 56px;
    width: auto;
    display: block;
}

.badge-ios-soon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 56px;
    padding: 0 18px;
    border-radius: 10px;
    background: var(--surface-strong);
    border: 1px solid var(--border);
    color: var(--muted);
    font: 500 14px/1 var(--font-arabic-display);
    cursor: not-allowed;
    user-select: none;
}

.badge-ios-soon[aria-disabled="true"] {
    opacity: 0.75;
}

.notify-ios {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 10px 2px;
    color: var(--accent);
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
    font: 500 15px/1.2 var(--font-arabic-body);
}

.notify-ios:hover,
.notify-ios:focus {
    color: var(--accent-dark);
}

.trademark-note {
    margin-top: 16px;
    font: 400 14px/1.65 var(--font-arabic-body);
    color: var(--muted);
    max-width: 560px;
}


/* ===== Feature blocks (alternating image/text) ===== */
.feature-block {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    align-items: center;
    padding: 48px 0;
    border-top: 1px solid var(--border);
}

@media (min-width: 760px) {
    .feature-block {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .feature-block.reverse .feature-image {
        order: 2;
    }
    .feature-block.feature-block--full {
        grid-template-columns: minmax(0, 1fr);
    }
}

.feature-block h3 {
    font: 700 24px/1.3 var(--font-arabic-display);
    color: var(--text);
    margin: 0 0 12px;
}

.feature-block p {
    font: 400 16px/1.8 var(--font-arabic-body);
    color: var(--text-soft);
    margin: 0 0 10px;
}

.feature-block ul {
    margin: 10px 0 0;
    padding-inline-start: 20px;
}

.feature-block ul li {
    font: 400 16px/1.85 var(--font-arabic-body);
    color: var(--text-soft);
    margin-bottom: 6px;
}


/* ===== Pricing cards ===== */
.pricing-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    margin-top: 24px;
}

@media (min-width: 720px) {
    .pricing-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.price-card {
    background: var(--surface-strong);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.price-card.featured {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-soft);
}

.price-card .plan-name {
    font: 700 20px/1.3 var(--font-arabic-display);
    color: var(--text);
    margin: 0;
}

.price-card .plan-amount {
    font: 700 32px/1.1 var(--font-arabic-display);
    color: var(--accent);
    direction: ltr;
    unicode-bidi: isolate;
    margin: 4px 0 0;
}

.price-card .plan-currency {
    font-size: 0.6em;
    color: var(--muted);
    margin-inline-start: 4px;
}

.price-card .plan-period {
    font: 500 15px/1.4 var(--font-arabic-body);
    color: var(--muted);
    margin: 0;
}

.price-card .plan-sdg {
    font: 500 14px/1.5 var(--font-arabic-body);
    color: var(--muted);
    padding: 6px 12px;
    background: var(--accent-soft);
    border-radius: var(--radius-pill);
    display: inline-block;
    direction: ltr;
    unicode-bidi: isolate;
}

.price-card ul {
    margin: 10px 0 0;
    padding-inline-start: 20px;
    font: 400 16px/1.75 var(--font-arabic-body);
    color: var(--text-soft);
}

.price-card ul li { margin-bottom: 6px; }

.price-card .order-cta {
    margin-top: auto;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: var(--white);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font: 700 16px/1.1 var(--font-arabic-display);
    border: 0;
    cursor: pointer;
    min-height: 48px;
    transition: background 0.15s ease;
}

.price-card .order-cta:hover,
.price-card .order-cta:focus {
    background: var(--accent-dark);
}

.sdg-rate-note {
    font: 400 14px/1.6 var(--font-arabic-body);
    color: var(--muted);
    margin-top: 10px;
    text-align: center;
}


/* ===== Free vs Pro table ===== */
.compare-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-family: var(--font-arabic-body);
}

.compare-table th,
.compare-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    text-align: start;
    font-size: 15px;
}

.compare-table thead th {
    background: var(--accent-soft);
    color: var(--accent-dark);
    font: 600 15px/1.4 var(--font-arabic-display);
}

.compare-table .check {
    color: var(--accent);
    font-weight: 700;
}

.compare-table .dash {
    color: var(--muted);
}


/* ===== Scenario cards ===== */
.scenario-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    margin-top: 20px;
}

@media (min-width: 760px) {
    .scenario-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.scenario-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
}

.scenario-card h3 {
    font: 700 18px/1.3 var(--font-arabic-display);
    color: var(--accent-dark);
    margin: 0 0 10px;
}

.scenario-card p {
    font: 400 16px/1.8 var(--font-arabic-body);
    color: var(--text-soft);
    margin: 0;
}


/* ===== Trust strip ===== */
.trust-strip {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin-top: 24px;
    padding: 24px;
    background: var(--surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

@media (min-width: 760px) {
    .trust-strip {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.trust-strip .trust-item {
    font: 500 15px/1.6 var(--font-arabic-body);
    color: var(--text-soft);
    text-align: center;
}

.trust-strip .trust-item strong {
    display: block;
    font: 700 17px/1.3 var(--font-arabic-display);
    color: var(--accent);
    margin-bottom: 6px;
}


/* ===== Steps (how to Pro) ===== */
.steps-list {
    counter-reset: step;
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
    display: grid;
    gap: 14px;
}

.steps-list li {
    counter-increment: step;
    padding: 16px 20px 16px 56px;
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font: 400 16px/1.8 var(--font-arabic-body);
    color: var(--text-soft);
}

.steps-list li::before {
    content: counter(step, arabic-indic);
    position: absolute;
    inset-inline-end: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font: 700 15px/1 var(--font-arabic-display);
}


/* ===== Order form ===== */
.order-form {
    display: grid;
    gap: 14px;
    margin-top: 20px;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.order-form label {
    font: 500 15px/1.6 var(--font-arabic-body);
    color: var(--text);
}

.order-form input,
.order-form select,
.order-form textarea {
    width: 100%;
    padding: 12px 14px;
    min-height: 44px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    font: 400 16px/1.6 var(--font-arabic-body);
    background: var(--surface-strong);
    color: var(--text);
}

.order-form input:focus,
.order-form select:focus,
.order-form textarea:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
    border-color: var(--accent);
}

.honeypot {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
    inset-block-start: auto;
    inset-inline-start: auto;
}

.order-status {
    margin-top: 16px;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font: 500 15px/1.7 var(--font-arabic-body);
}

.order-status.success {
    background: var(--accent-soft);
    color: var(--accent-dark);
    border: 1px solid var(--accent);
}

.order-status.error {
    background: #fde8e8;
    color: #8a1f1f;
    border: 1px solid #e58f8f;
}

.order-reference {
    font-family: var(--font-latin);
    font-weight: 700;
    direction: ltr;
    unicode-bidi: isolate;
    background: var(--white);
    padding: 2px 8px;
    border-radius: 4px;
    margin-inline: 4px;
}


/* ===== FAQ ===== */
.faq-list {
    margin-top: 20px;
}

.faq-list details {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    margin-bottom: 10px;
    background: var(--surface-strong);
}

.faq-list summary {
    cursor: pointer;
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 4px 0;
    font: 700 16px/1.5 var(--font-arabic-display);
    color: var(--text);
}

.faq-list details[open] summary {
    color: var(--accent);
    margin-bottom: 10px;
}

.faq-list details p {
    font: 400 16px/1.75 var(--font-arabic-body);
    color: var(--text-soft);
    margin: 0;
}


/* ===== Catalog cards (/products/) ===== */
.catalog-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    margin-top: 28px;
}

.catalog-grid > * { min-width: 0; }

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

.product-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, transform 0.15s;
}

.product-card:hover,
.product-card:focus {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.product-card h3 {
    font: 700 clamp(20px, 2.4vw, 24px)/1.3 var(--font-arabic-display);
    color: var(--text);
    margin: 0;
    letter-spacing: 0;
}

.product-card .product-pitch {
    font: 400 16px/1.75 var(--font-arabic-body);
    color: var(--text-soft);
    margin: 0;
    max-width: 62ch;
}

.product-card .product-meta {
    display: flex;
    gap: 8px 10px;
    flex-wrap: wrap;
    font: 500 14px/1.4 var(--font-arabic-body);
    color: var(--muted);
    margin-top: 4px;
}

.product-card .product-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 12px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 600;
}


/* ===== Portfolio case cards ===== */
.case-card {
    padding: 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 28px;
    min-width: 0;
}

.case-card > * { min-width: 0; }
.case-card header { min-width: 0; }

.case-card header h3 {
    font: 700 clamp(22px, 2.6vw, 26px)/1.3 var(--font-arabic-display);
    color: var(--text);
    margin: 0 0 10px;
    letter-spacing: 0;
}

.case-card header h3 a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dashed transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.case-card header h3 a:hover,
.case-card header h3 a:focus-visible {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.case-card .case-meta {
    font: 500 14px/1.5 var(--font-arabic-body);
    color: var(--muted);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

/* Teaser p directly inside .case-card (portfolio index). */
.case-card > p {
    font: 400 16px/1.75 var(--font-arabic-body);
    color: var(--text-soft);
    margin: 0 0 16px;
    max-width: 62ch;
}

/* Case-links row with 44px tap targets. */
.case-card .case-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-top: 10px;
}

.case-card .case-links .external-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 2px;
}

.case-card .case-blocks {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    margin-top: 16px;
}

.case-card .case-blocks > * { min-width: 0; }

@media (min-width: 760px) {
    .case-card .case-blocks {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.case-card .case-blocks > div h4 {
    font: 700 13px/1.3 var(--font-arabic-display);
    color: var(--accent-dark);
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.case-card .case-blocks > div p,
.case-card .case-blocks > div li {
    font: 400 16px/1.75 var(--font-arabic-body);
    color: var(--text-soft);
    margin: 0;
}

.case-card .case-blocks > div ul {
    margin: 0;
    padding-inline-start: 20px;
    display: grid;
    gap: 6px;
}


/* ===== Portfolio: other projects (compact row) ===== */
.other-projects {
    margin-top: 32px;
    padding: 24px 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.other-projects h2 {
    font: 600 18px/1.4 var(--font-arabic-display);
    color: var(--text);
    margin: 0 0 12px;
}

.other-projects-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.other-projects-list li {
    font: 400 14px/1.7 var(--font-arabic-body);
    color: var(--text-soft);
}

.other-projects-list strong {
    color: var(--text);
    margin-inline-end: 6px;
}

.other-projects-list .external-link {
    margin-inline-start: 10px;
    color: var(--accent-dark);
}


.portfolio-note {
    margin-top: 24px;
    font: 400 13px/1.7 var(--font-arabic-body);
    color: var(--muted);
    text-align: center;
}


/* ===== "من الداخل" media strip ===== */
.media-strip {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    padding: 10px 4px 20px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    justify-content: safe center;
}
.media-strip > figure {
    flex: 0 0 180px;
    scroll-snap-align: start;
    margin: 0;
}
.media-strip figcaption {
    font: 500 12px/1.4 var(--font-arabic-body);
    color: var(--muted);
    margin-top: 6px;
    text-align: center;
}

/* ===== Tour: grouped scroll-snap strips ===== */
.tour-group {
    margin-block: 40px;
}
.tour-group h3 {
    font: 700 22px/1.3 var(--font-arabic-display);
    color: var(--text);
    margin: 0 0 4px;
}
.tour-group p.tour-group-lead {
    font: 400 15px/1.7 var(--font-arabic-body);
    color: var(--text-soft);
    margin: 0 0 14px;
    max-width: 60ch;
}
.tour-strip {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    padding: 8px 4px 18px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    /* Center the slide(s) when they fit the strip (e.g. single-slide
       groups like الوضع الداكن) so RTL flex-start doesn't leave the
       inline-end side empty. Falls back to start on overflow so the
       first slide stays visible without scrolling. */
    justify-content: safe center;
}
.tour-strip > figure {
    flex: 0 0 220px;
    scroll-snap-align: start;
    margin: 0;
}
.tour-strip > figure.wide {
    flex: 0 0 420px;
}
.tour-strip > figure.pdf {
    flex: 0 0 300px;
}
.tour-strip figcaption {
    font: 500 13px/1.6 var(--font-arabic-body);
    color: var(--muted);
    margin-top: 8px;
    text-align: center;
    padding-inline: 6px;
}
.tour-strip a.tour-link {
    display: block;
    border-radius: 32px;
    outline-offset: 2px;
}
.tour-strip a.tour-link:focus-visible {
    outline: 2px solid var(--accent-dark);
}

/* a landscape frame (tablet / PDF) uses a soft card instead of phone bezel */
.flat-frame {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 16px;
    overflow: hidden;
    background: var(--accent-soft);
    box-shadow: 0 1px 2px rgba(0,0,0,0.08), 0 8px 24px rgba(0,0,0,0.1);
    margin-inline: auto;
}
.flat-frame.pdf-sheet {
    aspect-ratio: 910 / 1287;
    width: 240px;
    background: #fff;
}
.flat-frame.pdf-receipt {
    aspect-ratio: 347 / 362;
    width: 240px;
    background: #fff;
}
.flat-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Sigma uses 9:16 phone screenshots, not Waraqatak's canonical 6:13.
   Use a lighter frame so the Waraqatak phone-frame invariants stay pure. */
.sigma-frame--phone {
    width: 240px;
    aspect-ratio: 9 / 16;
    border-radius: 16px;
    overflow: hidden;
    background: var(--accent-soft);
    box-shadow: 0 1px 2px rgba(0,0,0,0.08), 0 8px 24px rgba(0,0,0,0.1);
    margin-inline: auto;
}
.sigma-frame--phone img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Desktop screenshot frame — plain window chrome, no phone bezel */
.window-frame {
    width: 100%;
    max-width: 460px;
    aspect-ratio: 16 / 10;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.12);
    box-shadow: 0 1px 2px rgba(0,0,0,0.08), 0 8px 24px rgba(0,0,0,0.1);
    margin-inline: auto;
    display: flex;
    flex-direction: column;
}
.window-frame__bar {
    display: block;
    block-size: 18px;
    background: linear-gradient(180deg, #ececec, #dcdcdc);
    border-block-end: 1px solid rgba(0,0,0,0.08);
}
.window-frame__screen {
    flex: 1;
    overflow: hidden;
}
.window-frame__screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===== Typographic product cards (other projects) ===== */
.type-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 22px;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    min-height: 180px;
}
.type-card h3 {
    font: 700 22px/1.2 var(--font-arabic-display);
    color: var(--text);
    margin: 0;
}
.type-card .type-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.type-card .type-chip {
    display: inline-block;
    font: 500 11px/1 var(--font-arabic-body);
    color: var(--muted);
    background: var(--surface-strong);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 5px 10px;
}
.type-card .type-status {
    display: inline-block;
    font: 600 11px/1 var(--font-arabic-display);
    color: var(--accent-dark);
    background: var(--accent-soft);
    border-radius: 999px;
    padding: 5px 10px;
    width: fit-content;
}
.type-card .type-value {
    font: 400 14px/1.7 var(--font-arabic-body);
    color: var(--text-soft);
    margin: 0;
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .product-card { transition: none; }
    .screens-carousel,
    .media-strip,
    .tour-strip { scroll-behavior: auto; }
}

/* ===== Pro badge (inline, used in h3 and table cells) ===== */
.pro-badge {
    display: inline-block;
    font-size: .7em;
    font-weight: 600;
    line-height: 1;
    padding: .2em .5em;
    border-radius: 4px;
    background: #2563eb;
    color: #fff;
    vertical-align: middle;
    margin-inline-start: .4em;
    white-space: nowrap;
}

/* ===== Anchor row (quick-jump links under hero) ===== */
.anchor-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    justify-content: center;
    padding: 12px 16px 20px;
    border-bottom: 1px solid var(--border);
}
.anchor-row a {
    font: 500 14px/1 var(--font-arabic-body);
    color: var(--accent-dark);
    text-decoration: none;
    padding: 4px 0;
    border-bottom: 1px solid transparent;
}
.anchor-row a:hover,
.anchor-row a:focus-visible {
    border-bottom-color: var(--accent-dark);
    outline: none;
}

/* ===== Feature-image mobile visibility ===== */
/* Hide feature-block images on mobile; tour is the sole image source below 900px */
@media (max-width: 899px) {
    .feature-block .feature-image { display: none; }
}

/* ===== Tour: collapsible groups + responsive strip ===== */
details.tour-group > summary {
    font: 700 20px/1.3 var(--font-arabic-display);
    color: var(--text);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
    padding: 4px 0;
}
details.tour-group > summary::-webkit-details-marker { display: none; }
details.tour-group > summary::before {
    content: "▶";
    font-size: 11px;
    color: var(--muted);
    flex-shrink: 0;
    transition: transform 0.15s ease;
}
details.tour-group[open] > summary::before { transform: rotate(90deg); }
details.tour-group > summary:focus-visible {
    outline: 2px solid var(--accent-dark);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Responsive tour strip: 80% figure width → ~15% peek of next slide on mobile */
@media (max-width: 759px) {
    .tour-strip > figure       { flex: 0 0 80%; }
    .tour-strip > figure.wide  { flex: 0 0 95%; }
    .tour-strip > figure.pdf   { flex: 0 0 80%; }
}

/* =========================================================
   PRICING HINT — one-line clarification above the plan grid
   Explains that plan buttons open WhatsApp with a prefilled
   message, so first-time buyers aren't surprised by the jump.
========================================================= */

.pricing-hint {
    font: 500 14.5px/1.7 var(--font-arabic-body);
    color: var(--muted);
    margin: 4px 0 8px;
    max-width: 62ch;
}

/* =========================================================
   UPCOMING CARD — /portfolio/ "coming soon" mini card
   A CSS-drawn banner replaces the missing screenshot so the
   "مشاريع أخرى" section has a visual anchor without inventing
   imagery for a product that isn't released yet.
========================================================= */

.upcoming-card {
    margin-block-start: 24px;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    align-items: center;
}

@media (min-width: 760px) {
    .upcoming-card {
        grid-template-columns: 200px minmax(0, 1fr);
    }
}

.upcoming-banner {
    block-size: 90px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background:
        linear-gradient(135deg,
            var(--accent-soft) 0%,
            #d4e0dc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font: 700 20px/1.2 var(--font-arabic-display);
    color: var(--accent-dark);
    letter-spacing: 0.02em;
    text-align: center;
    padding-inline: 12px;
}

.upcoming-body {
    min-width: 0;
}

.upcoming-body h3 {
    font: 700 20px/1.3 var(--font-arabic-display);
    color: var(--text);
    margin: 0 0 6px;
}

.upcoming-body p {
    font: 400 15px/1.75 var(--font-arabic-body);
    color: var(--text-soft);
    margin: 0 0 10px;
    max-width: 60ch;
}
