/* ============================================================
   YouCine APK — white + full yellow theme
   BEM naming, CSS variables, mobile-first
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
    --yellow: #FFB300;
    --yellow-light: #FFD54F;
    --yellow-pale: #FFF8E1;
    --yellow-grad: linear-gradient(120deg, #FFC928 0%, #FFB300 55%, #F59E00 100%);
    --ink: #1d1d1f;
    --ink-soft: #4b4b52;
    --muted: #6f6f78;
    --bg: #ffffff;
    --surface: #fffdf6;
    --line: #f0e6c8;
    --amber-deep: #7a4d00;
    --footer-bg: #231603;
    --radius: 14px;
    --radius-sm: 9px;
    --shadow-sm: 0 2px 10px rgba(245, 158, 0, .10);
    --shadow: 0 10px 30px rgba(245, 158, 0, .16);
    --shadow-lg: 0 18px 50px rgba(122, 77, 0, .18);
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-head: 'Poppins', 'Inter', system-ui, sans-serif;
    --space-xs: .5rem;
    --space-sm: 1rem;
    --space-md: 1.75rem;
    --space-lg: 3rem;
    --space-xl: 4.5rem;
    --container: 1140px;
}

/* ---------- 2. Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.75;
    font-size: 1.02rem;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.28; color: var(--ink); margin: 0 0 .6em; }
p { margin: 0 0 1em; }
a { color: var(--amber-deep); }
a:hover { color: #a86500; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 4px; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 200;
    background: var(--yellow); color: #1d1d1f; padding: .6rem 1rem; border-radius: 0 0 8px 8px;
    font-weight: 700; text-decoration: none;
}
.skip-link:focus { left: 1rem; }

/* Hide Google's own translate bar/frame — we use a custom dropdown */
.translate-hidden { display: none !important; }
.goog-te-banner-frame, #goog-gt-tt, .goog-te-balloon-frame { display: none !important; }
body { top: 0 !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }

/* ---------- 3. Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: .55rem;
    font-family: var(--font-head); font-weight: 700; text-decoration: none;
    border-radius: 999px; border: 2px solid transparent; cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn--primary { background: var(--yellow-grad); color: #241a02; box-shadow: var(--shadow-sm); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: #241a02; }
.btn--ghost { background: #fff; color: var(--amber-deep); border-color: var(--yellow); }
.btn--ghost:hover { background: var(--yellow-pale); color: var(--amber-deep); }
.btn--light { background: #fff; color: #5c3a00; }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--lg { padding: .95rem 1.9rem; font-size: 1.05rem; }
.btn--sm { padding: .55rem 1.2rem; font-size: .92rem; }

/* ---------- 4. Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; gap: 1rem; padding-block: .7rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand__logo { width: 40px; height: 40px; border-radius: 10px; box-shadow: var(--shadow-sm); }
.brand__name { font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; color: var(--ink); }
.brand__name::after { content: " APK"; color: var(--amber-deep); font-size: .85em; font-weight: 700; }

.nav { margin-inline-start: auto; }
.nav__list { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav__link {
    display: block; padding: .55rem .85rem; border-radius: var(--radius-sm);
    color: var(--ink-soft); font-weight: 600; font-size: .95rem; text-decoration: none;
    transition: background .15s, color .15s;
}
.nav__link:hover { background: var(--yellow-pale); color: var(--amber-deep); }

.header__actions { display: flex; align-items: center; gap: .6rem; margin-inline-start: auto; }
.nav + .header__actions { margin-inline-start: 0; }

/* Language dropdown */
.lang { position: relative; }
.lang__btn {
    display: inline-flex; align-items: center; gap: .45rem;
    background: #fff; border: 1.5px solid var(--line); border-radius: 999px;
    padding: .5rem .9rem; font: 600 .88rem var(--font-body); color: var(--ink-soft); cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
}
.lang__btn:hover { border-color: var(--yellow); box-shadow: var(--shadow-sm); }
.lang__icon { color: var(--amber-deep); }
.lang__chev { transition: transform .2s; }
.lang[open] .lang__chev { transform: rotate(180deg); }
.lang__list {
    position: absolute; inset-inline-end: 0; top: calc(100% + .5rem);
    min-width: 190px; max-height: 320px; overflow: auto;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
    box-shadow: var(--shadow); list-style: none; margin: 0; padding: .4rem; z-index: 120;
}
.lang__option {
    display: block; width: 100%; text-align: start; background: none; border: 0;
    padding: .55rem .8rem; border-radius: 7px; font: 500 .92rem var(--font-body);
    color: var(--ink-soft); cursor: pointer;
}
.lang__option:hover, .lang__option[aria-selected="true"] { background: var(--yellow-pale); color: var(--amber-deep); }

.nav-toggle {
    display: none; flex-direction: column; gap: 5px; background: none; border: 0;
    padding: .6rem; cursor: pointer;
}
.nav-toggle__bar { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: .2s; }

/* ---------- 5. Hero ---------- */
.hero {
    background:
        radial-gradient(900px 380px at 85% -10%, rgba(255, 179, 0, .22), transparent 60%),
        radial-gradient(700px 320px at 5% 110%, rgba(255, 179, 0, .14), transparent 60%),
        var(--bg);
    padding: var(--space-xl) 0 var(--space-lg);
}
.hero__grid { display: grid; gap: var(--space-lg); align-items: center; }
.hero__copy { max-width: 620px; }
.badge {
    display: inline-block; background: var(--yellow-grad); color: #241a02;
    font: 700 .8rem var(--font-head); letter-spacing: .04em; text-transform: uppercase;
    padding: .45rem 1rem; border-radius: 999px; margin-bottom: 1.1rem; box-shadow: var(--shadow-sm);
}
.hero__title { font-size: clamp(1.9rem, 4.2vw, 3rem); font-weight: 800; margin-bottom: 1rem; }
.hero__title::after {
    content: ""; display: block; width: 84px; height: 5px; border-radius: 3px;
    background: var(--yellow-grad); margin-top: .7rem;
}
.hero__lead { color: var(--ink-soft); font-size: 1.06rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.6rem; }
.hero__media { position: relative; }
.hero__img {
    border-radius: 22px; box-shadow: var(--shadow-lg);
    border: 6px solid #fff; outline: 1px solid var(--line);
}

/* ---------- 6. Trust band ---------- */
.trust {
    background: var(--yellow-grad);
    padding: 1.15rem 0;
    box-shadow: inset 0 2px 8px rgba(122, 77, 0, .12);
}
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.trust__item {
    display: flex; align-items: center; justify-content: center; gap: .6rem;
    font: 700 .98rem var(--font-head); color: #2b1f02;
}
.trust__icon { flex: none; }

/* ---------- 7. Article sections ---------- */
.article { padding: var(--space-lg) 0 var(--space-xl); }
.article__narrow { max-width: 860px; }
.section { margin-bottom: var(--space-xl); scroll-margin-top: 90px; }
.section:last-child { margin-bottom: 0; }

.sec-head { margin-bottom: var(--space-md); }
.sec-head__kicker {
    display: inline-block; font: 700 .78rem var(--font-head); letter-spacing: .12em;
    text-transform: uppercase; color: var(--amber-deep);
    background: var(--yellow-pale); border: 1px solid var(--line);
    padding: .3rem .8rem; border-radius: 999px; margin-bottom: .7rem;
}
/* Title-bar heading: every section heading gets the accent bar */
.title-bar {
    position: relative; padding-bottom: .55rem; margin-bottom: 1rem;
    font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 800;
}
.title-bar::after {
    content: ""; position: absolute; inset-inline-start: 0; bottom: 0;
    width: 72px; height: 5px; border-radius: 3px; background: var(--yellow-grad);
}
.sec-head__lead { color: var(--ink-soft); font-size: 1.05rem; }

.article__p { color: var(--ink-soft); }

/* Feature cards */
.feature-card {
    background: var(--surface); border: 1px solid var(--line);
    border-inline-start: 5px solid var(--yellow);
    border-radius: var(--radius); padding: 1.4rem 1.5rem; margin-bottom: 1.2rem;
    box-shadow: var(--shadow-sm);
    transition: transform .18s ease, box-shadow .18s ease;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature-card__title {
    font-size: 1.18rem; font-weight: 700; margin-bottom: .5rem;
    display: flex; align-items: center; gap: .6rem;
}
.feature-card__title::before {
    content: ""; flex: none; width: 12px; height: 12px; border-radius: 4px;
    background: var(--yellow-grad); box-shadow: var(--shadow-sm);
}
.feature-card .article__p:last-child { margin-bottom: 0; }

/* Lists */
.check-list, .numbered-list { margin: 0 0 1.2rem; padding: 0; list-style: none; }
.check-list li, .numbered-list li {
    position: relative; padding-inline-start: 2.1rem; margin-bottom: .65rem; color: var(--ink-soft);
}
.check-list li::before {
    content: "✓"; position: absolute; inset-inline-start: 0; top: .1rem;
    width: 1.45rem; height: 1.45rem; border-radius: 50%;
    background: var(--yellow-grad); color: #241a02;
    font: 800 .8rem/1.45rem var(--font-body); text-align: center;
}
.numbered-list { counter-reset: step; }
.numbered-list li::before {
    counter-increment: step; content: counter(step);
    position: absolute; inset-inline-start: 0; top: .1rem;
    width: 1.5rem; height: 1.5rem; border-radius: 50%;
    background: var(--ink); color: var(--yellow);
    font: 800 .8rem/1.5rem var(--font-body); text-align: center;
}

/* Info table */
.table-wrap { overflow-x: auto; margin-bottom: 1.4rem; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.info-table { width: 100%; border-collapse: collapse; background: #fff; font-size: .98rem; }
.info-table th {
    background: var(--yellow-grad); color: #241a02; text-align: start;
    font-family: var(--font-head); padding: .9rem 1.2rem;
}
.info-table td { padding: .85rem 1.2rem; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.info-table tr:nth-child(even) td { background: #fffdf4; }
.info-table tr:last-child td { border-bottom: 0; }
.info-table__key { font-weight: 700; color: var(--ink) !important; white-space: nowrap; }

/* Note box */
.note-box {
    background: var(--yellow-pale); border: 1px solid var(--line);
    border-inline-start: 5px solid var(--yellow);
    border-radius: var(--radius-sm); padding: 1.1rem 1.3rem; margin-bottom: 1.4rem;
}
.note-box p { margin: 0; color: var(--ink-soft); font-size: .97rem; }

/* FAQ */
.faq-list { display: grid; gap: .8rem; }
.faq {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
    overflow: hidden; transition: box-shadow .18s;
}
.faq[open] { box-shadow: var(--shadow-sm); border-color: var(--yellow); }
.faq__q {
    padding: 1rem 1.2rem; font: 700 1rem var(--font-head); color: var(--ink);
    cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
    content: "+"; flex: none; width: 1.7rem; height: 1.7rem; border-radius: 50%;
    background: var(--yellow-grad); color: #241a02; font-size: 1.15rem; line-height: 1.7rem; text-align: center;
    transition: transform .2s;
}
.faq[open] .faq__q::after { transform: rotate(45deg); }
.faq__a { padding: 0 1.2rem 1.1rem; color: var(--ink-soft); }
.faq__a p { margin: 0; }

/* ---------- 7b. Per-section designs (home) ---------- */

/* 1 — download-latest: spotlight banner */
.section--download-latest {
    background: linear-gradient(135deg, #FFF6D9 0%, #FFE9A8 100%);
    border: 2px solid var(--yellow);
    border-radius: 22px;
    padding: clamp(1.6rem, 4vw, 2.6rem);
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}
.section--download-latest::before {
    content: ""; position: absolute; width: 280px; height: 280px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.65), transparent 70%);
    top: -120px; inset-inline-end: -80px; pointer-events: none;
}
.section--download-latest .sec-head { position: relative; }
.section--download-latest .sec-head__kicker { background: #fff; border-color: var(--yellow); }
.section--download-latest .title-bar::after { inset-inline-start: 50%; transform: translateX(-50%); }
.section--download-latest .section__body .article__p {
    color: #5c3f00; font-size: 1.06rem; max-width: 620px;
    margin-inline: auto; position: relative;
}
.section__cta { margin-top: 1.4rem; text-align: center; position: relative; }

/* 2 — what-is: editorial with drop cap */
.section--what-is .section__body > .article__p:first-of-type::first-letter {
    font-family: var(--font-head); font-weight: 800; font-size: 3.2em;
    float: inline-start; line-height: .85; padding-inline-end: .14em; padding-top: .06em;
    color: var(--amber-deep);
}

/* 3 — info: spec sheet */
.section--info .table-wrap { border: 2px solid var(--yellow); border-radius: 16px; }
.section--info .info-table__key { background: var(--yellow-pale); }
.section--info .info-table td { font-size: .97rem; }

/* 4 — features: numbered card grid */
.section--features .section__body { display: grid; gap: 1.1rem; counter-reset: feat; }
@media (min-width: 760px) { .section--features .section__body { grid-template-columns: 1fr 1fr; } }
.section--features .feature-card {
    counter-increment: feat; margin: 0; position: relative; overflow: hidden;
    border: 1px solid var(--line); border-top: 5px solid var(--yellow);
    padding-top: 1.2rem;
}
.section--features .feature-card::after {
    content: counter(feat, decimal-leading-zero);
    position: absolute; top: .35rem; inset-inline-end: .9rem;
    font: 800 2.8rem/1 var(--font-head); color: rgba(245, 158, 0, .14);
    pointer-events: none;
}
.section--features .feature-card__title { padding-inline-end: 3rem; }

/* 5 — content-available: alternating tiles */
.section--content-available .section__body { display: grid; gap: 1rem; }
@media (min-width: 760px) { .section--content-available .section__body { grid-template-columns: 1fr 1fr; } }
.section--content-available .feature-card { margin: 0; border: 1px solid var(--line); }
.section--content-available .feature-card:nth-child(odd) { background: var(--yellow-pale); }
.section--content-available .feature-card:nth-child(even) { background: #fff; border-top: 5px solid var(--yellow); }
.section--content-available .feature-card__title::before { border-radius: 50%; width: 14px; height: 14px; }

/* 6 — devices: device cards with number badges */
.section--devices .section__body { display: grid; gap: 1rem; counter-reset: dev; }
@media (min-width: 600px) { .section--devices .section__body { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .section--devices .section__body { grid-template-columns: repeat(3, 1fr); } }
.section--devices .feature-card {
    counter-increment: dev; margin: 0; text-align: center;
    border: 1px solid var(--line); border-top: 5px solid var(--yellow);
}
.section--devices .feature-card__title { flex-direction: column; gap: .7rem; }
.section--devices .feature-card__title::before {
    content: counter(dev, decimal-leading-zero);
    width: 3rem; height: 3rem; border-radius: 50%; flex: none;
    background: var(--yellow-grad); box-shadow: var(--shadow-sm);
    color: #241a02; font: 800 1.05rem/3rem var(--font-head); text-align: center;
}
.section--devices .feature-card .article__p { font-size: .95rem; }

/* 7 — requirements: dark-header spec sheets */
.section--requirements .feature-card {
    margin-bottom: 1.3rem; background: #fff;
    border: 2px solid var(--ink); overflow: hidden;
}
.section--requirements .feature-card__title {
    background: var(--ink); color: #fff;
    margin: -1.4rem -1.5rem 1rem; padding: .85rem 1.5rem;
    font-size: 1.05rem; border-radius: 10px 10px 0 0;
}
.section--requirements .feature-card__title::before { display: none; }

/* 8 — safety: dashed alert panel */
.section--safety {
    background: #fffdf4; border: 2px dashed var(--yellow);
    border-radius: 20px; padding: clamp(1.4rem, 3.5vw, 2.2rem);
}
.section--safety .sec-head__kicker { background: var(--yellow); color: #241a02; border: 0; }
.section--safety .section__body > .article__p { position: relative; padding-inline-start: 2.2rem; }
.section--safety .section__body > .article__p::before {
    content: "✓"; position: absolute; inset-inline-start: 0; top: .15rem;
    width: 1.5rem; height: 1.5rem; border-radius: 50%;
    background: var(--yellow-grad); color: #241a02;
    font: 800 .85rem/1.5rem var(--font-body); text-align: center;
}

/* 9 — install: vertical timeline */
.section--install .numbered-list { position: relative; padding-inline-start: .4rem; }
.section--install .numbered-list::before {
    content: ""; position: absolute; top: 1rem; bottom: 1rem;
    inset-inline-start: calc(1.8rem - 2px); width: 4px; border-radius: 2px;
    background: var(--yellow-pale);
}
.section--install .numbered-list li {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow-sm); margin-bottom: .9rem; position: relative;
    padding-block: .95rem; padding-inline: 3.6rem 1.2rem;
}
.section--install .numbered-list li::before {
    inset-inline-start: .75rem; top: .95rem; z-index: 1;
    width: 2.1rem; height: 2.1rem; font-size: .95rem; line-height: 2.1rem;
    background: var(--yellow-grad); color: #241a02;
}

/* 10 — how-to-use: dark numbered cards */
.section--how-to-use .section__body { display: grid; gap: 1rem; counter-reset: how; }
.section--how-to-use .section__body > .article__p {
    counter-increment: how; position: relative; margin: 0;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding-block: 1.2rem; padding-inline: 4.6rem 1.3rem;
}
.section--how-to-use .section__body > .article__p::before {
    content: counter(how); position: absolute; inset-inline-start: 1.2rem; top: 1.05rem;
    width: 2.5rem; height: 2.5rem; border-radius: 12px;
    background: var(--ink); color: var(--yellow);
    font: 800 1.15rem/2.5rem var(--font-head); text-align: center;
}

/* 11 — pros-cons: green vs red */
.section--pros-cons .section__body { display: grid; gap: 1.2rem; }
@media (min-width: 760px) { .section--pros-cons .section__body { grid-template-columns: 1fr 1fr; } }
.section--pros-cons .feature-card { margin: 0; }
.section--pros-cons .feature-card:first-child { border: 2px solid #43a047; background: #f3f9f1; }
.section--pros-cons .feature-card:first-child .feature-card__title { color: #1b5e20; }
.section--pros-cons .feature-card:first-child .feature-card__title::before { background: #43a047; }
.section--pros-cons .feature-card:first-child .check-list li::before { background: #43a047; color: #fff; }
.section--pros-cons .feature-card:last-child { border: 2px solid #e05252; background: #fdf3f3; }
.section--pros-cons .feature-card:last-child .feature-card__title { color: #a52727; }
.section--pros-cons .feature-card:last-child .feature-card__title::before { background: #e05252; }
.section--pros-cons .feature-card:last-child .check-list li::before {
    content: "×"; background: #e05252; color: #fff; font-size: 1rem;
}

/* 12 — vs-official: side-by-side comparison */
.section--vs-official .section__body { display: grid; gap: 1rem; }
@media (min-width: 760px) {
    .section--vs-official .section__body { grid-template-columns: 1fr 1fr; }
    .section--vs-official .section__body > .article__p:nth-child(1),
    .section--vs-official .section__body > .article__p:nth-child(4) { grid-column: 1 / -1; }
}
.section--vs-official .section__body > .article__p:nth-child(2),
.section--vs-official .section__body > .article__p:nth-child(3) {
    margin: 0; border-radius: var(--radius); padding: 1.3rem 1.4rem;
}
.section--vs-official .section__body > .article__p:nth-child(2) {
    background: #fff; border: 2px solid var(--line); box-shadow: var(--shadow-sm);
}
.section--vs-official .section__body > .article__p:nth-child(3) {
    background: var(--yellow-pale); border: 2px solid var(--yellow);
}
.section--vs-official .section__body > .article__p:nth-child(4) {
    background: #fff8f0; border: 1px solid #f0d9b8; border-inline-start: 5px solid #e65100;
    border-radius: var(--radius-sm); padding: 1rem 1.2rem; font-size: .96rem;
}

/* 13 — problems: troubleshooting cards */
.section--problems .section__body > .article__p {
    position: relative; margin-bottom: .9rem;
    background: #fff; border: 1px solid var(--line); border-inline-start: 5px solid #e65100;
    border-radius: var(--radius-sm); box-shadow: var(--shadow-sm);
    padding-block: 1.05rem; padding-inline: 3.4rem 1.2rem;
}
.section--problems .section__body > .article__p::before {
    content: "!"; position: absolute; inset-inline-start: 1.1rem; top: 1rem;
    width: 1.7rem; height: 1.7rem; border-radius: 50%;
    background: #e65100; color: #fff;
    font: 800 .95rem/1.7rem var(--font-head); text-align: center;
}

/* 14 — faq: tinted accordion */
.section--faq .faq { border-radius: 12px; }
.section--faq .faq__q { background: var(--surface); }
.section--faq .faq[open] { border-color: var(--yellow); }
.section--faq .faq[open] .faq__q { background: var(--yellow-pale); }

/* 15 — conclusion: centered closing */
.section--conclusion {
    text-align: center; background: var(--surface);
    border: 1px solid var(--line); border-radius: 22px;
    padding: clamp(1.8rem, 4vw, 2.8rem) clamp(1.4rem, 4vw, 2.4rem);
    position: relative;
}
.section--conclusion::before {
    content: ""; position: absolute; top: -1px; inset-inline-start: 50%; transform: translateX(-50%);
    width: 130px; height: 6px; border-radius: 0 0 6px 6px; background: var(--yellow-grad);
}
.section--conclusion .title-bar::after { inset-inline-start: 50%; transform: translateX(-50%); }
.section--conclusion .section__body > .article__p { max-width: 660px; margin-inline: auto; }

/* Centered title bars stay centered in RTL */
html[dir="rtl"] .section--download-latest .title-bar::after,
html[dir="rtl"] .section--conclusion .title-bar::after {
    inset-inline-start: 50%; inset-inline-end: auto; transform: translateX(-50%);
}

/* ---------- 8. Slideshow ---------- */
.slideshow { margin-top: var(--space-md); }
.slideshow__title {
    font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem;
    padding-inline-start: .9rem; border-inline-start: 5px solid var(--yellow);
}
.slideshow__track-wrap { position: relative; overflow: hidden; border-radius: 18px; box-shadow: var(--shadow); }
.slideshow__track { display: flex; transition: transform .55s cubic-bezier(.4, 0, .2, 1); }
.slideshow__slide { flex: 0 0 100%; display: flex; justify-content: center; background: #141414; }
.slideshow__slide img { max-height: 560px; width: auto; object-fit: contain; }
.slideshow__arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
    background: rgba(255, 255, 255, .92); color: var(--amber-deep);
    font-size: 1.7rem; line-height: 1; box-shadow: var(--shadow-sm);
    transition: background .15s, transform .15s;
}
.slideshow__arrow:hover { background: var(--yellow); transform: translateY(-50%) scale(1.06); }
.slideshow__arrow--prev { inset-inline-start: .9rem; }
.slideshow__arrow--next { inset-inline-end: .9rem; }
.slideshow__dots { display: flex; justify-content: center; gap: .55rem; margin-top: 1rem; }
.slideshow__dot {
    width: 11px; height: 11px; border-radius: 50%; border: 0; cursor: pointer;
    background: #e7d9ae; transition: background .2s, transform .2s; padding: 0;
}
.slideshow__dot[aria-selected="true"] { background: var(--yellow); transform: scale(1.25); }

/* ---------- 9. Install screenshots ---------- */
.install-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; margin-top: var(--space-md); }
.install-shot {
    margin: 0; background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
}
.install-shot img { width: 100%; }
.install-shot figcaption {
    padding: .9rem 1.1rem; font: 600 .93rem var(--font-head); color: var(--amber-deep);
    background: var(--yellow-pale); border-top: 1px solid var(--line); text-align: center;
}

/* ---------- 10. CTA banner ---------- */
.cta-banner { padding: 0 0 var(--space-xl); }
.cta-banner__inner {
    background: var(--yellow-grad); border-radius: 22px; padding: var(--space-lg) var(--space-md);
    text-align: center; box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.cta-banner__inner::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(600px 200px at 50% -40%, rgba(255,255,255,.45), transparent 70%);
    pointer-events: none;
}
.cta-banner__title { color: #241a02; font-size: clamp(1.5rem, 3.4vw, 2.2rem); font-weight: 800; position: relative; }
.cta-banner__text { color: #4a3200; font-size: 1.05rem; position: relative; }
.cta-banner__inner .btn { position: relative; }

/* ---------- 11. Page hero / breadcrumb ---------- */
.page-hero { background: var(--yellow-pale); border-bottom: 1px solid var(--line); padding: 1.2rem 0; }
.breadcrumb { font-size: .92rem; color: var(--muted); }
.breadcrumb a { color: var(--amber-deep); text-decoration: none; font-weight: 600; }
.breadcrumb span[aria-hidden="true"] { margin: 0 .4rem; }

/* ---------- 12. Footer ---------- */
.site-footer { background: var(--footer-bg); color: #f3e8cf; }
.footer__grid {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem;
    padding: var(--space-lg) 0 var(--space-md);
}
.brand--footer .brand__name { color: #fff; }
.footer__about { color: #cdbd9c; font-size: .95rem; margin: 1rem 0 1.2rem; }
.footer__social { display: flex; gap: .7rem; }
.social {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255, 179, 0, .14); color: var(--yellow-light);
    transition: background .18s, transform .18s, color .18s;
}
.social:hover { background: var(--yellow); color: #241a02; transform: translateY(-3px); }
.footer__title {
    color: #fff; font-size: 1.02rem; font-weight: 700; margin-bottom: 1rem;
    padding-bottom: .5rem; position: relative;
}
.footer__title::after {
    content: ""; position: absolute; inset-inline-start: 0; bottom: 0;
    width: 44px; height: 3px; border-radius: 2px; background: var(--yellow-grad);
}
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer__link { color: #cdbd9c; text-decoration: none; font-size: .95rem; transition: color .15s, padding .15s; }
.footer__link:hover { color: var(--yellow-light); padding-inline-start: 4px; }
.footer__text { color: #cdbd9c; font-size: .95rem; margin: 0 0 1rem; }
.footer__bottom { border-top: 1px solid rgba(255, 179, 0, .18); padding: 1.2rem 0; text-align: center; }
.footer__bottom p { margin: 0; color: #a8977a; font-size: .9rem; }

/* ---------- 13. Scroll reveal ---------- */
/* Progressive enhancement: .reveal content is hidden ONLY while JS has added
   .reveal-on to <html> (added atomically together with the observer in main.js).
   If main.js fails, is blocked, or JS is off, every section stays visible. */
.reveal { transition: opacity .6s ease, transform .6s ease; }
.reveal-on .reveal { opacity: 0; transform: translateY(26px); }
.reveal-on .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { transition: none; }
    .reveal-on .reveal { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}

/* ---------- 14. RTL support (Arabic via Google Translate) ---------- */
[dir="rtl"] .feature-card,
[dir="rtl"] .note-box { border-inline-start: 5px solid var(--yellow); border-inline-end: 0; }
[dir="rtl"] .title-bar::after,
[dir="rtl"] .footer__title::after { inset-inline-start: auto; inset-inline-end: 0; }

/* ---------- 15. Responsive ---------- */
@media (min-width: 768px) {
    .hero__grid { grid-template-columns: 1.05fr .95fr; }
}
@media (max-width: 1023px) {
    .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
    .nav {
        position: fixed; inset: 0 0 0 auto; width: min(320px, 85vw); height: 100dvh;
        background: #fff; box-shadow: var(--shadow-lg); z-index: 150;
        transform: translateX(105%); transition: transform .28s ease;
        padding: 4.5rem 1.5rem 1.5rem; margin: 0;
    }
    [dir="rtl"] .nav { inset: 0 auto 0 0; transform: translateX(-105%); }
    .nav.open { transform: none; }
    .nav__list { flex-direction: column; gap: .3rem; }
    .nav__link { font-size: 1.05rem; padding: .8rem 1rem; }
    .nav-toggle { display: flex; }
    .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
    .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
    .header__cta { display: none; }
    .hero { padding: var(--space-lg) 0; }
    .trust__grid { grid-template-columns: 1fr 1fr; }
    .install-shots { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr; gap: 1.6rem; }
    .slideshow__slide img { max-height: 440px; }
}
@media (max-width: 480px) {
    body { font-size: .98rem; }
    .hero__inner, .hero__grid { gap: var(--space-md); }
    .hero__cta .btn { width: 100%; justify-content: center; }
    .trust__grid { grid-template-columns: 1fr; gap: .7rem; }
    .lang__current { display: none; }
    .lang__btn { padding: .5rem .65rem; }
}
@media (min-width: 1440px) {
    :root { --container: 1280px; }
}
