/* Joumle showcase site. Brand: black + coral (from the app logo), Tajawal (same font as the app).
   Logical properties are used throughout so the Arabic (RTL) version mirrors without overrides. */

@font-face { font-family: "Tajawal"; src: url("../fonts/Tajawal-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Tajawal"; src: url("../fonts/Tajawal-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Tajawal"; src: url("../fonts/Tajawal-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Tajawal"; src: url("../fonts/Tajawal-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }

:root {
    --coral: #ff6f4f;
    --coral-deep: #e84118;   /* app "Secondary"; accent text on light backgrounds */
    --coral-text: #c93512;   /* small accent text (AA on cream) */
    --ink: #141414;
    --ink-soft: #2a2a2a;
    --muted: #5b5551;
    --bg: #fffaf7;
    --tint: #fff0e9;
    --card: #ffffff;
    --line: #f0e2da;
    --radius: 20px;
    --shadow: 0 1px 2px rgb(20 20 20 / .04), 0 12px 32px -12px rgb(150 60 30 / .18);
    --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: "Tajawal", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg);
}

html[lang="ar"] body { line-height: 1.85; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { line-height: 1.35; letter-spacing: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--coral-deep); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1160px, 100% - 40px); margin-inline: auto; }

.skip {
    position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100;
    background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 52px; padding: 0 26px; border-radius: 999px; border: 2px solid transparent;
    font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
    transition: transform .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: .95rem; }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--coral-deep); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--tint); }
.btn--ghost { border-color: rgb(255 255 255 / .45); color: #fff; }
.btn--ghost:hover { background: rgb(255 255 255 / .12); border-color: #fff; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
    display: inline-flex; align-items: center; gap: 12px; min-height: 58px; padding: 8px 22px;
    background: var(--ink); color: #fff; border-radius: 16px; text-decoration: none;
    transition: transform .18s ease, background-color .18s ease;
}
a.store:hover { transform: translateY(-2px); background: var(--coral-deep); }
.store__icon { width: 26px; height: 26px; flex: none; }
.store__text { display: flex; flex-direction: column; font-weight: 700; font-size: 1.15rem; line-height: 1.15; }
.store__text small { font-weight: 500; font-size: .74rem; opacity: .8; }
.store--soon { background: transparent; color: var(--muted); border: 2px dashed var(--line); cursor: default; }

/* ---------- Header ---------- */
.header {
    position: sticky; top: 0; z-index: 50; height: var(--header-h);
    background: rgb(255 250 247 / .86); backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid var(--line);
}
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.header__actions { display: flex; align-items: center; gap: 14px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark {
    display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px;
    background: var(--ink); color: #fff;
}
.brand__mark svg { width: 22px; height: 22px; }
.brand__name { font-weight: 800; font-size: 1.55rem; letter-spacing: -.03em; line-height: 1; }
.brand__name em { font-style: normal; color: var(--coral); }
.brand__name--light { color: #fff; }
.brand__ar { font-weight: 500; font-size: 1.05rem; color: var(--muted); }

.nav { display: flex; gap: 28px; }
.nav a { text-decoration: none; font-weight: 500; color: var(--ink-soft); padding: 6px 0; position: relative; }
.nav a::after {
    content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px; background: var(--coral);
    transform: scaleX(0); transition: transform .2s ease; transform-origin: center;
}
.nav a:hover::after { transform: scaleX(1); }

.langs { display: flex; gap: 2px; padding: 3px; background: var(--tint); border-radius: 999px; }
.langs a {
    text-decoration: none; font-size: .88rem; font-weight: 500; padding: 4px 11px; border-radius: 999px; color: var(--muted);
    transition: background-color .15s ease, color .15s ease;
}
.langs a:hover { color: var(--ink); }
.langs a[aria-current="true"] { background: var(--ink); color: #fff; }
.langs__short { display: none; }

.burger {
    display: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 12px; background: var(--tint);
    cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.burger span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(40px, 7vw, 96px) clamp(48px, 7vw, 88px); overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(32px, 6vw, 80px); }

.badge {
    display: inline-block; padding: 6px 16px; margin-bottom: 22px; border-radius: 999px;
    background: var(--tint); color: var(--coral-text); font-weight: 700; font-size: .92rem; border: 1px solid var(--line);
}
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.5rem); font-weight: 800; }
.accent { color: var(--coral-deep); }
.lead { margin-block: 22px 32px; max-width: 34em; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); }
.hero__note { margin-top: 18px; font-size: .95rem; color: var(--muted); }

.hero__visual { position: relative; display: grid; place-items: center; min-height: 560px; }
.blob {
    position: absolute; width: min(460px, 92%); aspect-ratio: 1; border-radius: 46% 54% 52% 48% / 52% 46% 54% 48%;
    background: radial-gradient(circle at 30% 25%, #ffc2ae, var(--coral) 70%);
    animation: morph 14s ease-in-out infinite alternate;
}
@keyframes morph { to { border-radius: 54% 46% 44% 56% / 44% 56% 46% 54%; transform: rotate(8deg); } }

.hero__figure { position: absolute; inset-inline-start: -8%; bottom: -14px; width: clamp(130px, 17vw, 200px); filter: drop-shadow(0 12px 18px rgb(0 0 0 / .12)); }

/* Phone mock-up, drawn with HTML/CSS in the visual style of the app (light grey canvas, white cards, black active tab) */
.phone {
    position: relative; width: 286px; aspect-ratio: 286 / 580; padding: 11px; border-radius: 44px; background: var(--ink);
    box-shadow: 0 40px 70px -24px rgb(90 30 10 / .55), 0 0 0 2px #3a3a3a inset; transform: rotate(3deg);
}
html[dir="rtl"] .phone { transform: rotate(-3deg); }
.phone__notch { position: absolute; z-index: 2; top: 18px; inset-inline: 0; margin-inline: auto; width: 84px; height: 22px; background: var(--ink); border-radius: 999px; }
.phone__screen {
    height: 100%; border-radius: 34px; background: #f5f5f5; padding: 46px 14px 0; display: flex; flex-direction: column; gap: 12px; overflow: hidden; position: relative;
    text-align: start; font-size: 12px; line-height: 1.4;
}
.app-head { display: flex; align-items: center; gap: 9px; }
.app-avatar { width: 34px; height: 34px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 8px #fff, inset 0 0 0 20px #d9d9d9; flex: none; }
.app-greet { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.app-greet b { font-size: 13px; }
.app-greet span { font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-dot { width: 26px; height: 26px; border-radius: 50%; background: #fff; flex: none; }
.app-search { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 14px; padding: 10px 12px; color: #8a8a8a; font-size: 11px; }
.app-search svg { width: 15px; height: 15px; flex: none; }
.app-search span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-promo {
    display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; border-radius: 16px; color: #fff;
    background: linear-gradient(120deg, var(--coral-deep), var(--coral));
}
.app-promo div { display: flex; flex-direction: column; }
.app-promo b { font-size: 13px; }
.app-promo span { font-size: 10.5px; opacity: .92; }
.app-promo svg { width: 24px; height: 24px; flex: none; opacity: .95; }
.app-chips { display: flex; gap: 6px; overflow: hidden; }
.app-chips span { flex: none; background: #fff; border-radius: 999px; padding: 5px 11px; font-size: 10.5px; }
.app-chips .is-on { background: var(--ink); color: #fff; }
.app-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.app-card { background: #fff; border-radius: 14px; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.app-card i { display: block; height: 58px; border-radius: 10px; background: linear-gradient(135deg, #ffd9cc, #ffb39d); }
.app-card:nth-child(2) i { background: linear-gradient(135deg, #e6e9f5, #c9cfe8); }
.app-card:nth-child(3) i { background: linear-gradient(135deg, #e3f1e6, #c2dfc9); }
.app-card:nth-child(4) i { background: linear-gradient(135deg, #fff0c9, #ffe08f); }
.app-card b { display: block; height: 7px; width: 80%; border-radius: 4px; background: #d8d8d8; }
.app-card s { display: block; height: 7px; width: 42%; border-radius: 4px; background: var(--coral); text-decoration: none; }
.app-nav {
    position: absolute; inset-inline: 10px; bottom: 10px; display: flex; justify-content: space-around; padding: 8px 6px;
    background: #fff; border-radius: 18px; font-size: 10px; color: #8a8a8a;
}
.app-nav span { padding: 4px 9px; border-radius: 999px; }
.app-nav .is-on { background: var(--ink); color: #fff; }

/* ---------- Promo carousel ---------- */
.promo-carousel { padding-block: 0 clamp(28px, 5vw, 48px); }
.promo-carousel__viewport {
    position: relative; direction: ltr; aspect-ratio: 1280 / 480; border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow); background: var(--card);
}
.promo-carousel__track { display: flex; height: 100%; will-change: transform; transition: transform .5s cubic-bezier(.65, 0, .35, 1); }
.promo-carousel__slide { flex: 0 0 100%; height: 100%; }
.promo-carousel__slide img { width: 100%; height: 100%; object-fit: cover; }
.promo-carousel__nav {
    position: absolute; inset-block: 0; inset-inline-start: 0; width: 15%; border: 0; background: transparent;
    color: #fff; cursor: pointer; display: flex; align-items: center; opacity: 0; transition: opacity .2s ease;
}
.promo-carousel__nav--prev { justify-content: flex-start; padding-inline-start: 10px; background: linear-gradient(to right, rgb(0 0 0 / .28), transparent); }
.promo-carousel__nav--next { inset-inline-start: auto; inset-inline-end: 0; justify-content: flex-end; padding-inline-end: 10px; background: linear-gradient(to left, rgb(0 0 0 / .28), transparent); }
.promo-carousel__viewport:hover .promo-carousel__nav, .promo-carousel__nav:focus-visible { opacity: 1; }
.promo-carousel__nav svg { width: 26px; height: 26px; filter: drop-shadow(0 1px 3px rgb(0 0 0 / .5)); }
.promo-carousel__dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.promo-carousel__dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: var(--line); cursor: pointer; transition: all .25s ease; }
.promo-carousel__dot[aria-selected="true"] { width: 22px; background: var(--coral-deep); }
@media (max-width: 640px) {
    .promo-carousel__viewport { border-radius: 14px; }
    .promo-carousel__nav { width: 20%; }
}

/* ---------- Trust strip ---------- */
.trust { background: var(--ink); color: #fff; }
.trust__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 40px; padding-block: 18px; font-weight: 500; font-size: .98rem; }
.trust__list li { display: flex; align-items: center; gap: 10px; }
.trust__list li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--tint { background: var(--tint); }
.section__head { max-width: 640px; margin: 0 auto clamp(36px, 5vw, 60px); text-align: center; }
.section__head p { margin-top: 14px; color: var(--muted); }
.eyebrow { display: block; margin-bottom: 12px; font-weight: 700; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; color: var(--coral-text); }
html[lang="ar"] .eyebrow { letter-spacing: 0; text-transform: none; font-size: 1rem; }
.section h2, .cta h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 800; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
    padding: 30px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
    transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 20px; border-radius: 16px; background: var(--tint); color: var(--coral-deep); }
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.28rem; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--muted); }

.showcase { display: grid; gap: clamp(56px, 8vw, 104px); }
.showcase__row { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(28px, 6vw, 88px); }
.showcase__row--flip .showcase__text { order: 2; }
.showcase__text p { margin-top: 16px; color: var(--muted); max-width: 32em; }
.showcase__art { display: grid; place-items: center; padding: 20px; }
.showcase__art img { width: min(380px, 100%); filter: drop-shadow(0 18px 24px rgb(120 50 20 / .12)); }

.checks { margin-top: 24px; display: grid; gap: 12px; }
.checks li { position: relative; padding-inline-start: 34px; font-weight: 500; }
.checks li::before {
    content: ""; position: absolute; inset-inline-start: 0; top: .28em; width: 22px; height: 22px; border-radius: 50%;
    background: var(--coral-deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { padding: 32px 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.step__n {
    display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 20px; border-radius: 50%;
    background: var(--ink); color: #fff; font-weight: 800; font-size: 1.25rem;
}
.step h3 { font-size: 1.28rem; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--muted); }

.catalog { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: clamp(28px, 6vw, 80px); }
.catalog__text p { margin-top: 14px; color: var(--muted); }
.catalog__art { display: grid; place-items: center; }
.catalog__art img { width: min(280px, 100%); filter: drop-shadow(0 18px 24px rgb(120 50 20 / .12)); }
.cat-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: clamp(32px, 5vw, 56px); }
.cat-grid > li { flex: 0 1 148px; }
.cat-tile {
    display: grid; justify-items: center; align-content: start; gap: 10px; height: 100%; padding: 18px 12px 16px;
    border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); font-weight: 700; text-align: center; text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.cat-tile img { width: min(96px, 100%); height: auto; }
.cat-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--coral); }

/* ---------- Call to action ---------- */
.cta {
    position: relative; overflow: hidden; color: #fff; text-align: center; padding-block: clamp(64px, 9vw, 112px);
    background: radial-gradient(60% 90% at 50% 120%, rgb(255 111 79 / .55), transparent 70%), var(--ink);
}
.cta__inner { display: grid; justify-items: center; gap: 18px; }
.cta p { max-width: 34em; color: rgb(255 255 255 / .78); }
.cta .stores { justify-content: center; margin-top: 10px; }
.cta .store { background: #fff; color: var(--ink); }
.cta a.store:hover { background: var(--tint); }
.cta .store--soon { background: transparent; color: rgb(255 255 255 / .6); border-color: rgb(255 255 255 / .3); }
.qr { display: grid; justify-items: center; gap: 16px; margin-top: 28px; }
.qr__title { font-size: .95rem; color: rgb(255 255 255 / .7); }
.qr__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.qr__item {
    display: grid; justify-items: center; gap: 6px; padding: 14px 14px 12px; border-radius: 22px;
    background: #fff; color: var(--ink); text-decoration: none; font-weight: 700;
    transition: transform .18s ease;
}
.qr__item:hover { transform: translateY(-3px); }
.qr__item img { width: 148px; height: 148px; }
.cta__contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 18px; }

/* ---------- Footer ---------- */
.footer { background: #0d0d0d; color: rgb(255 255 255 / .72); padding-top: 48px; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 24px; }
.footer__brand p { margin-top: 10px; max-width: 26em; }
.footer__links { display: grid; gap: 8px; justify-items: end; }
html[dir="rtl"] .footer__links { justify-items: start; }
.footer__links a { text-decoration: none; }
.footer__links a:hover { color: #fff; text-decoration: underline; }
.footer__legal {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px;
    margin-top: 36px; padding-block: 22px; border-top: 1px solid rgb(255 255 255 / .12); font-size: .9rem;
}
.footer__legal > span { opacity: .8; }
.footer__legal a { color: #fff; font-weight: 700; text-decoration: none; }
.footer__legal a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Legal / error pages ---------- */
.legal__inner { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
.legal__meta { margin-top: 8px; color: var(--muted); font-size: .95rem; }
.legal__intro { margin-top: 24px; font-size: 1.15rem; }
.legal h2 { margin-top: 40px; margin-bottom: 8px; font-size: 1.35rem; font-weight: 700; letter-spacing: 0; }
.legal p a { font-weight: 700; color: var(--coral-text); white-space: nowrap; }

.notfound__inner { display: grid; justify-items: center; gap: 18px; text-align: center; padding-block: 20px; }
.notfound h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
.notfound p { color: var(--muted); }

/* ---------- Content pages (guide, FAQ, categories) ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 20px; font-size: .92rem; color: var(--muted); }
.crumbs a { color: var(--coral-text); text-decoration: none; font-weight: 500; }
.crumbs a:hover { text-decoration: underline; }
.crumbs > * + *::before { content: "/"; margin-inline-end: 10px; color: var(--line); }

.guide { display: grid; gap: 18px; margin-top: 36px; }
.guide__step { display: flex; align-items: flex-start; gap: 18px; padding: 24px 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.guide__step .step__n { flex: none; margin-bottom: 0; }
.legal .guide__step h2 { margin: 0 0 6px; font-size: 1.2rem; }
.guide__step p { color: var(--muted); }

.faq { display: grid; gap: 12px; margin-top: 32px; }
.faq__item { border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.faq__item summary { cursor: pointer; padding: 18px 22px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; flex: none; font-size: 1.5rem; line-height: 1; color: var(--coral-deep); transition: transform .2s ease; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { padding: 0 22px 20px; color: var(--muted); }
.faq__item p a { color: var(--coral-text); font-weight: 700; }

.page-cta { display: grid; justify-items: start; gap: 14px; margin-top: 48px; padding: clamp(24px, 4vw, 40px); border-radius: var(--radius); background: var(--tint); border: 1px solid var(--line); }
.legal .page-cta h2 { margin: 0; }
.page-cta p { color: var(--muted); }
.page-cta__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.page-cta__links a { color: var(--coral-text); font-weight: 700; }

.cat-hero { display: flex; align-items: center; gap: clamp(18px, 4vw, 36px); }
.cat-hero img { flex: none; width: clamp(96px, 20vw, 140px); height: auto; }
.cat-hero .legal__intro { margin-top: 12px; }
.cat-items { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.cat-grid--compact { margin-top: 20px; justify-content: flex-start; }

.more { display: flex; justify-content: center; margin-top: 40px; }

/* ---------- Scroll reveal (only when JS is available) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .cards .reveal:nth-child(3n+2), .js .steps .reveal:nth-child(2) { transition-delay: .08s; }
.js .cards .reveal:nth-child(3n), .js .steps .reveal:nth-child(3) { transition-delay: .16s; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .hero__inner, .showcase__row, .catalog { grid-template-columns: 1fr; }
    .hero__copy { text-align: center; }
    .hero__copy .lead { margin-inline: auto; }
    .hero__copy .stores { justify-content: center; }
    .showcase__row--flip .showcase__text { order: 0; }
    .showcase__text, .catalog__text { text-align: center; }
    .showcase__text p { margin-inline: auto; }
    .checks { justify-content: center; justify-items: start; width: fit-content; margin-inline: auto; }
    .cat-grid > li { flex-basis: calc(25% - 12px); }
    .cards { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: 1fr; }
    .hero__visual { min-height: 520px; }

    .burger { display: flex; }
    .nav {
        position: absolute; inset-inline: 0; top: var(--header-h); flex-direction: column; gap: 0; padding: 8px 20px 20px;
        background: var(--bg); border-bottom: 1px solid var(--line); display: none;
    }
    .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
    .nav a::after { display: none; }
    .header.is-open .nav { display: flex; }
}

@media (max-width: 640px) {
    body { font-size: 1rem; }
    .cards { grid-template-columns: 1fr; }
    .cat-grid > li { flex-basis: calc(50% - 8px); }
    .header__cta, .brand__ar { display: none; }
    .qr { display: none; } /* a phone can't scan its own screen: the store buttons are enough */
    .header__inner { gap: 10px; }
    .header__actions { gap: 8px; }
    .brand { gap: 8px; }
    .brand__mark { width: 34px; height: 34px; border-radius: 11px; }
    .brand__name { font-size: 1.4rem; }
    .langs__full { display: none; }
    .langs__short { display: inline; }
    .langs a { padding: 5px 9px; font-size: .8rem; font-weight: 700; }
    .stores { justify-content: center; }
    .store { flex: 1 1 100%; justify-content: center; }
    .hero__figure { display: none; }
    .footer__links { justify-items: start; }
}

@media (max-width: 360px) {
    .header__inner { gap: 6px; }
    .header__actions { gap: 6px; }
    .brand { gap: 6px; }
    .brand__mark { width: 30px; height: 30px; border-radius: 10px; }
    .brand__mark svg { width: 19px; height: 19px; }
    .brand__name { font-size: 1.25rem; }
    .langs a { padding: 5px 6px; font-size: .76rem; }
    .burger { width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .blob { animation: none; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
    * { transition-duration: .01ms !important; }
}
