/* ===========================================================================
 * CapCcut Pro — main stylesheet
 *
 * Design DNA borrowed from apk1.com (light-mode only):
 *   • White canvas, warm near-black ink (#262626)
 *   • Lime-green (#CAF357) primary + purple (#7861FF) secondary accents
 *   • Very rounded cards (26px), soft multi-layer neumorphic shadows
 *   • Lime outline ring on card hover, brightness filter on images
 *   • Numbered watermarks on feature cards
 *   • Wavy lime separator (sepwave) between sections
 *   • Pill nav with neumorphic active state
 *   • Onest font for Latin, Tajawal for Arabic
 *
 *   #tokens   Design tokens
 *   #reset    Minimal reset
 *   #base     Document, typography
 *   #layout   Container, sections, sepwave divider
 *   #titles   Section titles
 *   #header   Sticky header + pill nav
 *   #hero     Hero: title, app card, phone, stat row, lime CTA
 *   #spec     Spec list (soft-shadow card)
 *   #features Feature cards with number watermarks
 *   #gallery  Swiper-themed strip
 *   #toc      Table of contents
 *   #content  Long-form article body
 *   #faq      FAQ accordion (soft-shadow cards)
 *   #footer   Footer with rounded notch
 *   #to-top   Back-to-top
 *   #utilities
 * ========================================================================= */


/* ===== #tokens ============================================================ */
:root {
    /* --- Surfaces -------------------------------------------------------- */
    --c-body:        #FFFFFF;
    --c-body-tone:   #F6F6F8;          /* sidebar/footer/section bg */
    --c-body-deep:   #EFEFF3;
    --c-surface:     #FFFFFF;          /* cards */
    --c-surface-2:   #FBFBFD;          /* raised */

    /* --- Text ------------------------------------------------------------ */
    --c-text:        #262626;          /* primary near-black */
    --c-text-soft:   #4F4F58;
    --c-text-muted:  #7A7A85;
    --c-text-dim:    #ABABB4;
    --c-ink:         #262626;          /* same as text, used on buttons */

    /* --- Brand ----------------------------------------------------------- */
    --c-primary:        #CAF357;       /* lime / chartreuse */
    --c-primary-hover:  #B9E92E;
    --c-primary-soft:   #F0FACF;       /* very pale lime wash */
    --c-primary-ring:   rgba(202, 243, 87, 0.7);

    --c-second:        #7861FF;        /* purple */
    --c-second-hover:  #6149E5;
    --c-second-light:  #E8E2FC;        /* pale purple wash */
    --c-second-ring:   rgba(120, 97, 255, 0.25);

    /* --- Status / accents ----------------------------------------------- */
    --c-yellow:      #FBE605;
    --c-red:         #E23E16;
    --c-green:       #19B378;
    --c-pink:        #EC3559;
    --c-star:        #FBB905;

    /* --- Borders -------------------------------------------------------- */
    --c-border:      rgba(38, 38, 38, 0.10);
    --c-border-2:    rgba(38, 38, 38, 0.18);
    --c-border-soft: rgba(38, 38, 38, 0.06);

    /* --- Typography ----------------------------------------------------- */
    --font-base:    "Tajawal", "Onest", "Segoe UI", "Tahoma", system-ui, sans-serif;
    --font-latin:   "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --fs-display: clamp(32px, 4.6vw, 56px);
    --fs-xxl:    clamp(26px, 3.4vw, 40px);
    --fs-xl:     clamp(22px, 2.6vw, 28px);
    --fs-lg:     clamp(18px, 2vw,   21px);
    --fs-md:     16px;
    --fs-sm:     14px;
    --fs-xs:     13px;
    --fs-mini:   11px;

    --lh-tight: 1.15;
    --lh-snug:  1.4;
    --lh-body:  1.65;
    --tr-bubble: 0.06em;

    /* --- Spacing -------------------------------------------------------- */
    --sp-1:  4px;
    --sp-2:  8px;
    --sp-3:  12px;
    --sp-4:  16px;
    --sp-5:  24px;
    --sp-6:  32px;
    --sp-7:  48px;
    --sp-8:  64px;
    --sp-9:  96px;

    /* --- Radii (apk1.com signature is BIG round) ------------------------ */
    --rd-mini:  6px;
    --rd-sm:    8px;       /* badges */
    --rd-md:    12px;
    --rd-lg:    20px;
    --rd-box:   26px;      /* big cards */
    --rd-pill:  999px;

    /* --- Shadows -------------------------------------------------------- */
    --sw-card:
        0 1px 4px rgba(0, 0, 0, 0.07),
        0 2px 12px rgba(0, 0, 0, 0.08);
    --sw-card-lift:
        0 6px 16px rgba(0, 0, 0, 0.08),
        0 18px 40px -12px rgba(0, 0, 0, 0.18);
    --sw-poster:
        0 2px 12px rgba(0, 0, 0, 0.12),
        inset 0 0 0 0.5px rgba(255, 255, 255, 0.4);
    --sw-btn-light:
        inset 0 0 0 1px rgba(0, 0, 0, 0.10),
        inset 0 2px 4px rgba(255, 255, 255, 0.55),
        inset 0 -2px 8px rgba(0, 0, 0, 0.10),
        0 2px 4px rgba(0, 0, 0, 0.08);
    --sw-btn-dark:
        inset 0 0 0 1px rgba(0, 0, 0, 0.20),
        inset 0 2px 4px rgba(255, 255, 255, 0.10),
        inset 0 -2px 8px rgba(0, 0, 0, 0.25),
        0 4px 12px rgba(0, 0, 0, 0.20);
    --sw-btn-primary:
        inset 0 0 0 1px rgba(0, 0, 0, 0.10),
        inset 0 -2px 6px rgba(0, 0, 0, 0.12),
        0 4px 14px rgba(0, 0, 0, 0.10),
        0 2px 8px rgba(185, 233, 46, 0.40);
    --sw-ring-primary: 0 0 0 2px var(--c-primary-ring);
    --sw-ring-second:  0 0 0 2px var(--c-second-ring);

    /* --- Motion --------------------------------------------------------- */
    --t-fast:  150ms cubic-bezier(.2,.7,.3,1);
    --t-base:  240ms cubic-bezier(.2,.7,.3,1);

    /* --- Layout --------------------------------------------------------- */
    --container-w: 1280px;
    --container-px: clamp(16px, 4vw, 28px);
    --header-h: 72px;
}


/* ===== #reset ============================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; text-decoration: none; }
:focus-visible {
    outline: 2px solid var(--c-second);
    outline-offset: 3px;
    border-radius: 4px;
}
::selection { background: var(--c-primary); color: var(--c-text); }


/* ===== #base ============================================================== */
html, body {
    font-family: var(--font-base);
    font-size: var(--fs-md);
    line-height: var(--lh-body);
    color: var(--c-text);
    background: var(--c-body);
    direction: rtl;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-padding-top: calc(var(--header-h) + 12px);
    scroll-behavior: smooth;
}
@media (max-width: 720px) {
    html { scroll-padding-top: 80px; }
}

h1, h2, h3, h4 {
    color: var(--c-text);
    line-height: var(--lh-tight);
    font-weight: 700;
    letter-spacing: -0.01em;
}
h1 { font-size: var(--fs-xxl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); font-weight: 700; }

p { margin-block: var(--sp-3); }
strong, b { font-weight: 700; color: var(--c-text); }
hr { border: 0; height: 1px; background: var(--c-border); margin-block: var(--sp-7); }


/* ===== #layout ============================================================ */
.container {
    width: 100%;
    max-width: var(--container-w);
    margin-inline: auto;
    padding-inline: var(--container-px);
}

.section {
    padding-block: clamp(var(--sp-7), 7vw, var(--sp-8));
    position: relative;
}
.section--surface {
    background: var(--c-body-tone);
}
.section--brand {
    background: var(--c-second-light);
    color: var(--c-text);
}

/* Wavy lime separator that sits ABOVE each surface section (apk1's sepwave).
 * Drawn with a CSS mask of the sep-wave.svg in the icons folder, tinted lime. */
.section--surface::before,
.section--toc::before {
    content: "";
    display: block;
    width: 100%;
    height: 6px;
    background: var(--c-primary);
    -webkit-mask-image: url('../icons/sep-wave.svg');
            mask-image: url('../icons/sep-wave.svg');
    -webkit-mask-repeat: repeat-x;
            mask-repeat: repeat-x;
    -webkit-mask-size: 60px 6px;
            mask-size: 60px 6px;
    position: absolute;
    inset-inline: 0;
    inset-block-start: -3px;
}


/* ===== #titles ============================================================ */
.section__title {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    color: var(--c-text);
    background: transparent;
    padding: 0;
    margin-block-end: var(--sp-6);
    font-size: clamp(22px, 2.6vw, 32px);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.2;
    text-align: start;
}
/* Small lime square accent before the title — discrete brand mark, not a chip. */
.section__title::before {
    content: "";
    flex-shrink: 0;
    width: 10px;
    height: 28px;
    background: var(--c-primary);
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(185, 233, 46, 0.45);
}


/* ===== #header =========================================================== */
.site-header {
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    backdrop-filter: saturate(180%) blur(12px);
    color: var(--c-text);
    border-block-end: 1px solid var(--c-border);
    position: sticky;
    inset-block-start: 0;
    z-index: 50;
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-5);
    padding-block: var(--sp-3);
    min-height: var(--header-h);
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    position: relative;
}
.site-logo img {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    object-fit: contain;
    background: var(--c-primary);
    padding: 4px;
    filter: drop-shadow(0 3px 10px rgba(185, 233, 46, 0.35));
    transition: transform var(--t-base);
}
.site-logo:hover img { transform: rotate(-4deg) scale(1.04); }
.site-logo__text {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}

.nav-primary { flex: 1; }
.nav-primary__list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;
    font-size: var(--fs-sm);
    font-weight: 600;
}
.nav-primary__list a {
    display: inline-block;
    padding: 8px 14px;
    color: var(--c-text-soft);
    border-radius: var(--rd-pill);
    transition: color var(--t-fast), background var(--t-fast);
    position: relative;
}
.nav-primary__list a:hover {
    color: var(--c-text);
    background: var(--c-body-tone);
}
/* Active pill uses the neumorphic "lifted card" treatment from apk1.com. */
.nav-primary__list a[aria-current="page"] {
    color: var(--c-text);
    background: var(--c-surface);
    box-shadow: var(--sw-btn-light);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: var(--rd-pill);
    color: var(--c-text);
    background: var(--c-surface);
    box-shadow: var(--sw-btn-light);
    transition: transform var(--t-fast);
}
.nav-toggle:hover { transform: translateY(-1px); }
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 880px) {
    .nav-toggle { display: inline-flex; }
    .nav-primary {
        position: absolute;
        inset-inline: 12px;
        inset-block-start: calc(100% + 8px);
        background: var(--c-surface);
        border: 1px solid var(--c-border);
        border-radius: var(--rd-lg);
        box-shadow: var(--sw-card-lift);
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--t-base), opacity var(--t-base);
        opacity: 0;
        pointer-events: none;
    }
    .nav-primary[data-open="true"] {
        max-height: 80vh;
        opacity: 1;
        pointer-events: auto;
    }
    .nav-primary__list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px;
    }
    .nav-primary__list a {
        display: block;
        padding: 12px 14px;
        border-radius: var(--rd-md);
        color: var(--c-text);
        font-size: var(--fs-md);
        text-align: start;
    }
    .nav-primary__list a:hover {
        background: var(--c-body-tone);
    }
    .nav-primary__list a[aria-current="page"] {
        background: var(--c-body-tone);
        font-weight: 700;
        box-shadow: none;
    }
    .nav-primary__list a[aria-current="page"]::before {
        content: "";
        display: inline-block;
        width: 6px;
        height: 6px;
        border-radius: 999px;
        background: var(--c-primary);
        margin-inline-end: 8px;
        vertical-align: middle;
    }
}


/* ===== #hero ============================================================== */
.hero {
    padding-block: clamp(var(--sp-7), 6vw, var(--sp-8)) clamp(var(--sp-7), 6vw, var(--sp-8));
    background: var(--c-body);
    position: relative;
    overflow: hidden;
}

/* Soft radial purple wash bottom-end, à la apk1.com .gradient-bg::after */
.hero::after {
    content: "";
    position: absolute;
    inset-block-end: -40%;
    inset-inline-start: -10%;
    width: 540px;
    height: 540px;
    background: radial-gradient(circle, rgba(120, 97, 255, 0.10) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}
.hero > .container { position: relative; z-index: 1; }

.hero__title {
    font-size: var(--fs-display);
    font-weight: 800;
    margin-block-end: var(--sp-6);
    text-align: center;
    letter-spacing: -0.025em;
    line-height: 1.05;
    color: var(--c-text);
    max-width: 16ch;
    margin-inline: auto;
}

.hero__grid {
    display: grid;
    gap: var(--sp-7);
    grid-template-columns: 1fr;
    align-items: center;
}
@media (min-width: 880px) {
    .hero__grid {
        grid-template-columns: 1.05fr 0.95fr;
        gap: var(--sp-8);
    }
}

.hero__col {
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
    max-width: 520px;
    margin-inline: auto;
    width: 100%;
}
.hero__col .rating { margin-block: var(--sp-2); }

/* App-icon card — 26px radius poster, brightness filter on the image. */
.hero__media {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 1 / 1;
    max-width: 220px;
    margin-inline: auto;
    background: var(--c-surface);
    border-radius: var(--rd-box);
    padding: var(--sp-5);
    box-shadow: var(--sw-card);
    transition: box-shadow var(--t-base);
}
.hero__media:hover { box-shadow: var(--sw-card-lift), var(--sw-ring-primary); }
.hero__media img {
    width: 100%;
    height: auto;
    border-radius: var(--rd-lg);
    filter: brightness(0.96);
    transition: filter var(--t-fast);
}
.hero__media:hover img { filter: brightness(1); }

/* Phone screenshot — treated as a "poster" rather than a device frame.
 * apk1's posters are 16:9 with 26px radius and a thin inset highlight; we
 * keep the 9:18 phone aspect but apply the same treatment so it sits in the
 * page consistently with the cards below. */
.hero__phone {
    position: relative;
    aspect-ratio: 9 / 18;
    max-width: 300px;
    margin-inline: auto;
    border-radius: var(--rd-box);
    background: var(--c-surface);
    box-shadow: var(--sw-poster), var(--sw-card-lift);
    overflow: hidden;
    transition: box-shadow var(--t-base);
}
.hero__phone:hover { box-shadow: var(--sw-poster), var(--sw-card-lift), var(--sw-ring-primary); }
.hero__phone img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.96);
    transition: filter var(--t-fast);
}
.hero__phone:hover img { filter: brightness(1); }

/* Rating: subtle pill, not a heavy chip. */
.rating {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    width: fit-content;
    margin-inline: auto;
    padding: 6px 14px;
    border-radius: var(--rd-pill);
    background: var(--c-body-tone);
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--c-text);
}
.rating__label {
    font-family: var(--font-latin);
    color: var(--c-text-muted);
    font-weight: 600;
    font-size: var(--fs-mini);
    letter-spacing: var(--tr-bubble);
    text-transform: uppercase;
}
.rating__stars {
    color: var(--c-star);
    display: inline-flex;
    gap: 2px;
}
.rating__stars svg { width: 16px; height: 16px; }

/* CTA — lime button with the neumorphic primary shadow stack. */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    background: var(--c-primary);
    color: var(--c-text);
    border-radius: var(--rd-pill);
    font-weight: 700;
    font-size: var(--fs-md);
    transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-base);
    box-shadow: var(--sw-btn-primary);
    white-space: nowrap;
    letter-spacing: -0.005em;
}
.btn:hover {
    background: var(--c-primary-hover);
    text-decoration: none;
    transform: translateY(-2px);
}
.btn:active { transform: translateY(0); }
.btn--block { display: flex; width: 100%; }
.btn svg { width: 20px; height: 20px; }


/* ===== #spec — soft-shadow card list =====================================
 * The <table class="spec-table"> is reskinned as one rounded card containing
 * a list of one-line rows. Each row: icon + label start, value end. Hover
 * tints the row very lightly. */
.spec-table {
    margin: 0;
    width: 100%;
    background: var(--c-surface);
    border: 0;
    border-radius: var(--rd-box);
    border-collapse: separate;
    border-spacing: 0;
    font-size: var(--fs-sm);
    display: grid;
    grid-template-columns: 1fr;
    overflow: hidden;
    box-shadow: var(--sw-card);
}
.spec-table tbody { display: contents; }
.spec-table tr {
    display: flex;
    align-items: center;
    gap: var(--sp-4);
    padding: 14px var(--sp-5);
    border-block-start: 1px solid var(--c-border-soft);
    transition: background var(--t-fast);
}
.spec-table tr:first-child { border-block-start: 0; }
.spec-table tr:hover { background: var(--c-body-tone); }

.spec-table th, .spec-table td {
    padding: 0;
    border: 0;
    background: transparent;
    font-size: var(--fs-sm);
    width: auto;
}
.spec-table th {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--c-text-muted);
    font-weight: 500;
    text-align: start;
    flex: 1;
    min-width: 0;
}
.spec-table td {
    text-align: end;
    color: var(--c-text);
    font-weight: 700;
    flex-shrink: 0;
}
.spec-table th .icon {
    width: 18px;
    height: 18px;
    color: var(--c-second);
    flex-shrink: 0;
}


/* ===== #features ========================================================== *
 *  6-up grid of soft-shadow cards. Each card carries a giant numbered
 *  watermark in the corner (apk1's rate-list signature), a lime icon, a
 *  bold title and a soft body. Hover lifts the card and adds a lime ring. */
.features {
    display: grid;
    gap: var(--sp-4);
    grid-template-columns: 1fr;
}
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .features { grid-template-columns: repeat(3, 1fr); } }
.features--cons { max-width: 980px; margin-inline: auto; }
@media (min-width: 640px) { .features--cons { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .features--cons { grid-template-columns: repeat(2, 1fr); } }

.features:not(.features--cons) { counter-reset: feat; }
.features--cons                 { counter-reset: feat; }

.feature {
    position: relative;
    background: var(--c-surface);
    border: 0;
    border-radius: var(--rd-box);
    padding: var(--sp-6) var(--sp-5);
    text-align: start;
    box-shadow: var(--sw-card);
    transition: transform var(--t-base), box-shadow var(--t-base);
    counter-increment: feat;
    overflow: hidden;
    isolation: isolate;
}
.feature:hover {
    transform: translateY(-3px);
    box-shadow: var(--sw-card-lift), var(--sw-ring-primary);
}
.features--cons .feature:hover {
    box-shadow: var(--sw-card-lift), var(--sw-ring-second);
}

/* Giant numbered watermark in the top-end corner (RTL: visual left). Faded
 * lime, slightly clipped so it reads as a background ornament not a label. */
.feature::before {
    content: counter(feat, decimal-leading-zero);
    position: absolute;
    inset-block-start: -8px;
    inset-inline-end: var(--sp-4);
    font-family: var(--font-latin);
    font-size: 76px;
    font-weight: 800;
    line-height: 1;
    color: var(--c-primary);
    opacity: 0.32;
    pointer-events: none;
    z-index: 0;
    letter-spacing: -0.04em;
    transition: opacity var(--t-base);
}
.features--cons .feature::before { color: var(--c-second); opacity: 0.22; }
.feature:hover::before { opacity: 0.55; }

.feature > * { position: relative; z-index: 1; }

.feature__icon {
    width: 44px;
    height: 44px;
    margin-block-end: var(--sp-4);
    border-radius: var(--rd-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--c-primary-soft);
    color: var(--c-text);
    transition: background var(--t-base), transform var(--t-base);
}
.feature:hover .feature__icon {
    background: var(--c-primary);
    transform: rotate(-4deg);
}
.feature__icon svg { width: 24px; height: 24px; }
.feature__icon--warn {
    background: var(--c-second-light);
    color: var(--c-second);
}
.features--cons .feature:hover .feature__icon--warn {
    background: var(--c-second);
    color: #fff;
}

.feature__title {
    font-size: var(--fs-lg);
    margin-block-end: var(--sp-2);
    font-weight: 700;
    color: var(--c-text);
    line-height: 1.25;
    letter-spacing: -0.015em;
    padding-inline-end: 50px;
}
.feature__desc {
    color: var(--c-text-soft);
    font-size: var(--fs-sm);
    line-height: 1.6;
    margin: 0;
}


/* ===== #content (long-form article) ====================================== */
.content { max-width: 760px; margin-inline: auto; }
.content h2, .content h3 { margin-block: 0; color: var(--c-text); }
.content p {
    font-size: var(--fs-md);
    line-height: var(--lh-body);
    margin-block: var(--sp-4);
    color: var(--c-text-soft);
}

.content figure { margin: var(--sp-6) 0; text-align: center; }
.content figure img {
    margin-inline: auto;
    border-radius: var(--rd-lg);
    box-shadow: var(--sw-card);
}

.split {
    display: grid;
    gap: var(--sp-6);
    align-items: center;
    grid-template-columns: 1fr;
    margin-block: var(--sp-7);
}
@media (min-width: 820px) {
    .split { grid-template-columns: 1fr 1fr; }
    .split--rev > :first-child { order: 2; }
}
.split__media img {
    border-radius: var(--rd-lg);
    box-shadow: var(--sw-card);
    margin-inline: auto;
}


/* ===== #gallery (Swiper) ================================================= */
.shots-swiper {
    position: relative;
    margin-block: var(--sp-5) 0;
    padding-block-end: var(--sp-8);
    touch-action: pan-y;
}
.shots-swiper .swiper-slide { height: auto; }
.shots-swiper .swiper-slide img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: var(--rd-box);
    display: block;
    background: var(--c-surface);
    box-shadow: var(--sw-poster);
    -webkit-user-drag: none;
    user-select: none;
    filter: brightness(0.96);
    transition: filter var(--t-fast), box-shadow var(--t-base), transform var(--t-base);
}
.shots-swiper .swiper-slide:hover img {
    filter: brightness(1);
    box-shadow: var(--sw-poster), var(--sw-ring-primary);
    transform: translateY(-3px);
}

.shots-swiper {
    --swiper-navigation-size: 40px;
    --swiper-navigation-color: var(--c-text);
    --swiper-navigation-sides-offset: 6px;
}
.shots-swiper .swiper-button-prev,
.shots-swiper .swiper-button-next {
    width: 44px;
    height: 44px;
    background: var(--c-surface);
    border-radius: var(--rd-pill);
    box-shadow: var(--sw-btn-light);
    transition: transform var(--t-fast), background var(--t-fast), color var(--t-fast);
}
.shots-swiper .swiper-button-prev:hover,
.shots-swiper .swiper-button-next:hover {
    background: var(--c-primary);
    color: var(--c-text);
    transform: scale(1.05);
}
.shots-swiper .swiper-button-prev::after,
.shots-swiper .swiper-button-next::after {
    font-size: 14px;
    font-weight: 800;
}
@media (max-width: 799px) {
    .shots-swiper .swiper-button-prev,
    .shots-swiper .swiper-button-next { width: 40px; height: 40px; }
}
@media (max-width: 559px) {
    .shots-swiper .swiper-button-prev,
    .shots-swiper .swiper-button-next { width: 36px; height: 36px; }
}

.shots-swiper .swiper-pagination {
    inset-block-end: 0;
    position: absolute;
}
.shots-swiper .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: var(--c-border-2);
    opacity: 1;
    transition: background var(--t-fast), width var(--t-fast);
}
.shots-swiper .swiper-pagination-bullet:hover { background: var(--c-text-muted); }
.shots-swiper .swiper-pagination-bullet-active {
    background: var(--c-primary);
    width: 28px;
    border-radius: var(--rd-pill);
}


/* ===== #toc =============================================================== */
.section--toc { padding-block: var(--sp-5) 0; position: relative; }
.section--toc + .section { padding-block: var(--sp-4); }

.toc {
    max-width: 760px;
    margin-inline: auto;
    background: var(--c-surface);
    border-radius: var(--rd-box);
    overflow: hidden;
    box-shadow: var(--sw-card);
}
.toc__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
    padding: var(--sp-4) var(--sp-5);
    background: transparent;
    color: var(--c-text);
    font-size: var(--fs-md);
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    user-select: none;
}
.toc__head::-webkit-details-marker { display: none; }
.toc__head::marker { display: none; content: ''; }

.toc__title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.toc__title::before {
    content: "";
    width: 8px;
    height: 22px;
    background: var(--c-primary);
    border-radius: 2px;
    box-shadow: 0 2px 6px rgba(185, 233, 46, 0.4);
}

.toc__chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: var(--rd-pill);
    background: var(--c-body-tone);
    color: var(--c-text);
    transition: transform var(--t-base);
}
.toc__chevron svg { width: 16px; height: 16px; }
.toc:not([open]) .toc__chevron { transform: rotate(180deg); }

.toc__nav {
    border-block-start: 1px solid var(--c-border-soft);
    background: var(--c-surface);
}
.toc__list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: toc;
    display: block;
}
.toc__item {
    counter-increment: toc;
    margin: 0;
    padding: 0;
    border-block-start: 1px solid var(--c-border-soft);
}
.toc__item:first-child { border-block-start: 0; }

.toc__item a {
    display: flex;
    align-items: center;
    gap: var(--sp-4);
    padding: 12px var(--sp-5);
    color: var(--c-text-soft);
    text-decoration: none;
    font-size: var(--fs-sm);
    font-weight: 500;
    line-height: 1.4;
    transition: color var(--t-fast), background var(--t-fast);
}
.toc__item a::before {
    content: counter(toc, decimal-leading-zero);
    flex-shrink: 0;
    color: var(--c-text-muted);
    font-family: var(--font-latin);
    font-size: var(--fs-xs);
    font-weight: 600;
    min-width: 28px;
    height: 28px;
    border-radius: var(--rd-pill);
    background: var(--c-body-tone);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background var(--t-fast), color var(--t-fast);
}
.toc__item a:hover,
.toc__item a:focus-visible {
    color: var(--c-text);
    background: var(--c-body-tone);
}
.toc__item a:hover::before,
.toc__item a:focus-visible::before {
    background: var(--c-primary);
    color: var(--c-text);
}
.toc__item--h3 a {
    padding-inline-start: 60px;
    color: var(--c-text-muted);
    font-size: var(--fs-xs);
}
.toc__item--h3 a::before { width: 22px; height: 22px; min-width: 22px; font-size: 11px; }
.toc[hidden] { display: none; }


/* ===== #faq =============================================================== */
.faq-wrap { width: min(100%, 820px); margin-inline: auto; }
.section--faq .section__title { margin-block-end: var(--sp-5); }

.faq { display: grid; gap: var(--sp-3); counter-reset: faqn; }
.faq__item {
    background: var(--c-surface);
    border: 0;
    border-radius: var(--rd-lg);
    box-shadow: var(--sw-card);
    overflow: hidden;
    counter-increment: faqn;
    transition: box-shadow var(--t-base);
}
.faq__item:hover { box-shadow: var(--sw-card-lift); }
.faq__item[open] {
    box-shadow: var(--sw-card-lift), var(--sw-ring-primary);
}

.faq__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
    padding: var(--sp-4) var(--sp-5);
    font-weight: 700;
    color: var(--c-text);
    cursor: pointer;
    list-style: none;
    font-size: var(--fs-md);
    transition: color var(--t-fast);
    position: relative;
}
.faq__summary::before {
    content: counter(faqn, decimal-leading-zero);
    font-family: var(--font-latin);
    font-size: var(--fs-mini);
    font-weight: 700;
    letter-spacing: var(--tr-bubble);
    color: var(--c-text);
    background: var(--c-primary);
    padding: 4px 8px;
    border-radius: var(--rd-sm);
    margin-inline-end: var(--sp-2);
    flex-shrink: 0;
}
.faq__summary:hover { color: var(--c-second); }
.faq__summary::-webkit-details-marker { display: none; }

/* Plus/minus indicator. Rotates 45° to "×" on open. */
.faq__summary::after {
    content: "";
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: var(--rd-pill);
    background:
        linear-gradient(currentColor, currentColor) center / 14px 1.5px no-repeat,
        linear-gradient(currentColor, currentColor) center / 1.5px 14px no-repeat,
        var(--c-body-tone);
    color: var(--c-text);
    transition: transform var(--t-base), background var(--t-base), color var(--t-base);
}
.faq__item[open] .faq__summary::after {
    background:
        linear-gradient(currentColor, currentColor) center / 14px 1.5px no-repeat,
        var(--c-primary);
    transform: rotate(45deg);
    color: var(--c-text);
}

.faq__body {
    padding: 0 var(--sp-5) var(--sp-5);
    color: var(--c-text-soft);
    font-size: var(--fs-sm);
    line-height: var(--lh-body);
}
.faq__body p { margin: 0; }


/* ===== #footer ============================================================ */
.site-footer {
    background: var(--c-body-tone);
    color: var(--c-text-soft);
    padding-block: var(--sp-7);
    text-align: center;
    font-size: var(--fs-sm);
    position: relative;
    border-block-start: 1px solid var(--c-border);
}
/* Decorative rounded-corner notches cut into the top edge (apk1 footer-decor). */
.site-footer::before,
.site-footer::after {
    content: "";
    position: absolute;
    inset-block-start: 0;
    width: 24px;
    height: 24px;
    background:
        radial-gradient(circle at top right, transparent 24px, var(--c-body-tone) 24px);
    pointer-events: none;
}
.site-footer::before {
    inset-inline-start: 0;
    background: radial-gradient(circle at top right, transparent 24px, var(--c-body-tone) 24px);
}
.site-footer::after {
    inset-inline-end: 0;
    background: radial-gradient(circle at top left, transparent 24px, var(--c-body-tone) 24px);
}

.site-footer p {
    margin: 0;
    color: var(--c-text-muted);
}
.site-footer a {
    color: var(--c-second);
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: var(--c-second-ring);
    transition: color var(--t-fast), text-decoration-color var(--t-fast);
}
.site-footer a:hover {
    color: var(--c-second-hover);
    text-decoration-color: var(--c-second);
}


/* ===== #to-top ============================================================ */
.to-top {
    position: fixed;
    inset-block-end: var(--sp-5);
    inset-inline-end: var(--sp-5);
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--c-primary);
    color: var(--c-text);
    border: 0;
    border-radius: var(--rd-pill);
    box-shadow: var(--sw-btn-primary);
    cursor: pointer;
    z-index: 40;

    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition:
        opacity var(--t-base),
        visibility var(--t-base),
        transform var(--t-base),
        background var(--t-fast);
}
.to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.to-top:hover {
    background: var(--c-primary-hover);
    transform: translateY(-2px);
}
.to-top:focus-visible { outline: 2px solid var(--c-second); outline-offset: 3px; }
.to-top svg { width: 20px; height: 20px; }

@media (max-width: 559px) {
    .to-top {
        width: 42px;
        height: 42px;
        inset-block-end: var(--sp-4);
        inset-inline-end: var(--sp-4);
    }
    .to-top svg { width: 18px; height: 18px; }
}


/* ===== #motion preferences =============================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}


/* ===== #utilities ========================================================= */
.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}
.text-center { text-align: center; }
.mb-0 { margin-block-end: 0 !important; }
.mt-0 { margin-block-start: 0 !important; }
