/* Herfeh Jordan - app landing page. Vanilla CSS, self-hosted fonts.
   Built to the delivered design: brick hero, olive + ink bands, Cormorant + Jost / Dubai,
   tatreez motifs, once-only reveals, subtle proximity spotlight. Bilingual EN + AR (RTL). */

/* ---------- Fonts (self-hosted woff2, unicode-range subsets) ----------
   Latin files carry only latin glyphs; Dubai files only arabic. So the EN page
   never downloads the arabic subsets and the AR page never downloads the latin. */
@font-face {
  font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 400 600;
  font-display: swap; src: url('../fonts/cormorant-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 400 600;
  font-display: swap; src: url('../fonts/cormorant-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 400 500;
  font-display: swap; src: url('../fonts/cormorant-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 400 500;
  font-display: swap; src: url('../fonts/cormorant-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Jost'; font-style: normal; font-weight: 300 600;
  font-display: swap; src: url('../fonts/jost-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Jost'; font-style: normal; font-weight: 300 600;
  font-display: swap; src: url('../fonts/jost-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Dubai (arabic brand face; serves both display and body). Weights 300/400/500/700. */
@font-face {
  font-family: 'Dubai'; font-style: normal; font-weight: 300; font-display: swap;
  src: url('../fonts/dubai-arabic-300.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+200C-200E, U+2010-2011, U+FB50-FDFF, U+FE70-FEFC;
}
@font-face {
  font-family: 'Dubai'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/dubai-arabic-400.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+200C-200E, U+2010-2011, U+FB50-FDFF, U+FE70-FEFC;
}
@font-face {
  font-family: 'Dubai'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/dubai-arabic-500.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+200C-200E, U+2010-2011, U+FB50-FDFF, U+FE70-FEFC;
}
@font-face {
  font-family: 'Dubai'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/dubai-arabic-700.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+200C-200E, U+2010-2011, U+FB50-FDFF, U+FE70-FEFC;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #F3EBDC; --panel: #F7F0E3; --ink: #2E2A26; --muted: #5F5648;
  --accent: #EC5D2A; --accent-deep: #C9481B; --accent-hover: #A93A12;
  --accent-text: #B23F16;   /* small orange text on cream - >=4.5:1 */
  --dim-on-dark: #A99B84;   /* secondary text on ink - >=4.5:1 */
  --peach: #F0B48C; --card-muted: #D9CDB9; --hairline: rgba(46,42,38,.14);
  --olive: #38432F; --olive-2: #44513B; --olive-text: #EDE7D8;
  --brick: #7D2A26; --brick-scroll: rgba(125,42,38,.9);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 1440px; --gutter: 64px;
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Jost', system-ui, -apple-system, Segoe UI, sans-serif;
  --weave-dur: 18s; --twinkle-dur: 10s;
}
html[lang="ar"] {
  --font-display: 'Dubai', 'Segoe UI', 'Tahoma', sans-serif;
  --font-body: 'Dubai', 'Jost', system-ui, 'Segoe UI', 'Tahoma', sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; overflow-x: clip; color: var(--ink);
  font-family: var(--font-body); font-weight: 300; font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  background-color: var(--bg);
  background-image: linear-gradient(rgba(243,235,220,.87), rgba(243,235,220,.87)),
    image-set(url('../img/texture-linen.webp') type('image/webp'), url('../img/texture-linen.jpg') type('image/jpeg'));
  background-image: linear-gradient(rgba(243,235,220,.87), rgba(243,235,220,.87)),
    -webkit-image-set(url('../img/texture-linen.webp') type('image/webp'), url('../img/texture-linen.jpg') type('image/jpeg'));
  background-size: cover; background-position: center; background-attachment: fixed;
}
html[lang="ar"] body { font-size: 18px; line-height: 1.7; font-weight: 400; }
h1, h2, h3, p { margin: 0; }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-deep); text-decoration: none; }
a:hover { color: var(--accent-hover); }

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--panel); padding: 12px 18px; border-radius: 8px;
  font-size: 14px; font-weight: 500; transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--peach); outline-offset: 2px; border-radius: 3px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Shared type ---------- */
.display { font-family: var(--font-display); }
html[lang="ar"] .display { font-weight: 700; letter-spacing: 0; line-height: 1.3; }
.eyebrow {
  display: inline-block; font-family: var(--font-body); font-weight: 600;
  font-size: 14px; letter-spacing: .28em; text-transform: uppercase; color: var(--accent-text);
}
html[lang="ar"] .eyebrow {
  text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 16px;
}
.eyebrow.on-dark { color: var(--peach); letter-spacing: .26em; }
html[lang="ar"] .eyebrow.on-dark { letter-spacing: 0; }

/* ---------- Nav (fixed, on the brick hero, condenses on scroll) ---------- */
.nav-outer {
  position: sticky; top: 0; z-index: 100;
  background: var(--brick);
  transition: background .3s var(--ease), box-shadow .3s var(--ease), backdrop-filter .3s var(--ease);
}
.nav-outer.scrolled {
  background: var(--brick-scroll); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(237,231,216,.14);
}
.nav {
  max-width: var(--maxw); margin: 0 auto; display: flex; align-items: center;
  justify-content: space-between; gap: 18px; padding: 14px var(--gutter); flex-wrap: wrap;
}
.nav-brand { display: inline-flex; align-items: center; gap: 11px; color: var(--olive-text); }
.nav-brand img { height: 40px; width: auto; filter: brightness(0) invert(1); }
.nav-brand .brand-word {
  font-family: var(--font-display); font-weight: 600; font-size: 21px; color: var(--olive-text);
}
html[lang="ar"] .nav-brand .brand-word { font-weight: 700; }
.nav-links { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.nav-links a {
  position: relative; color: rgba(237,231,216,.85); font-weight: 600; font-size: 13px;
  letter-spacing: .04em; padding: 10px 4px; transition: color .2s var(--ease);
}
html[lang="ar"] .nav-links a { letter-spacing: 0; font-size: 15px; font-weight: 500; }
.nav-links a::after {
  content: ''; display: block; height: 2px; margin-top: 5px; border-radius: 2px;
  background: var(--peach); transform: scaleX(0); transform-origin: left center;
  transition: transform .3s var(--ease);
}
html[lang="ar"] .nav-links a::after { transform-origin: right center; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--peach); }
.nav-links a:hover::after, .nav-links a:focus-visible::after,
.nav-links a.is-active::after { transform: scaleX(1); }
.nav-links a.is-active { color: var(--peach); }
.nav-right { display: flex; align-items: center; gap: 14px; }

/* mobile menu button (hidden until the <=600px breakpoint turns .nav-links into a dropdown) */
.nav-toggle {
  display: none; flex: none; width: 42px; height: 42px; padding: 0;
  border: 1px solid rgba(237,231,216,.35); border-radius: 10px; background: transparent; cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--olive-text);
  transition: transform .25s var(--ease), background-color .2s var(--ease);
}
.nav-toggle span { position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ''; position: absolute; inset-inline-start: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* language pill (kept LTR so the slider maths stay physical) */
.lang-pill {
  direction: ltr; position: relative; display: inline-flex; align-items: center;
  border: 1px solid rgba(237,231,216,.5); border-radius: 100px; padding: 3px;
}
.lang-ind {
  position: absolute; inset-inline-start: 3px; top: 3px; bottom: 3px; width: 46px;
  border-radius: 100px; background: var(--olive-text); transition: transform .25s var(--ease);
}
html[lang="ar"] .lang-ind { transform: translateX(100%); }
.lang-pill a {
  position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center;
  width: 46px; min-height: 34px; border-radius: 100px; font-size: 12px; font-weight: 600;
  letter-spacing: .04em; transition: color .25s var(--ease);
}
.lang-pill a[lang="ar"] { font-family: 'Dubai', var(--font-body); font-size: 14px; letter-spacing: 0; }
/* active label sits on the cream slider (dark olive); inactive is clearly legible
   cream so the pill reads as a real EN / عربي toggle, not decoration */
html[lang="en"] .lang-pill .pl-en, html[lang="ar"] .lang-pill .pl-ar { color: var(--olive); }
html[lang="en"] .lang-pill .pl-ar, html[lang="ar"] .lang-pill .pl-en { color: rgba(237,231,216,.85); }
html[lang="en"] .lang-pill .pl-ar:hover, html[lang="ar"] .lang-pill .pl-en:hover { color: var(--olive-text); }

/* "Get the app" pill */
.nav-cta {
  display: inline-flex; align-items: center; min-height: 40px; padding: 9px 22px;
  border-radius: 100px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; transition: background .2s var(--ease), transform .2s var(--ease);
}
html[lang="ar"] .nav-cta { text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 500; }
.nav-cta:hover { background: var(--accent-deep); color: #fff; transform: translateY(-1px); }

/* ---------- Hero ---------- */
.hero-wrap { background: var(--brick); color: var(--olive-text); }
.hero {
  max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.2fr .8fr;
  gap: 48px; align-items: end; padding: 18px var(--gutter) 0; position: relative; overflow: hidden;
}
/* slow, continuous clockwise spin (like the Herfeh World decor crosses) */
.hero-motif {
  position: absolute; pointer-events: none; width: 110px;
  animation: hero-spin 200s linear infinite; transform-origin: 50% 50%; opacity: .1;
}
.hero-motif.m1 { top: 8%; inset-inline-end: 38%; width: 120px; animation-duration: 200s; }
.hero-motif.m2 { top: 62%; inset-inline-start: 6%; width: 72px; animation-duration: 160s; animation-delay: -40s; }
.hero-motif.m3 { top: 30%; inset-inline-end: 10%; width: 90px; animation-duration: 240s; animation-delay: -95s; }
.hero-motif.m4 { top: 52%; inset-inline-end: 2%; width: 88px; animation-duration: 180s; animation-delay: -60s; }
@keyframes hero-spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
/* grid/flex children must be allowed to shrink below content min-width, or
   wide items (the badge row) push the hero past the viewport on narrow screens */
.hero-text, .hero-media { min-width: 0; }
.badges { max-width: 100%; }
.hero-text { padding-bottom: 30px; }
.hero .eyebrow { color: var(--peach); }
.hero h1 {
  font-family: var(--font-display); font-weight: 500; font-size: clamp(46px, 6.2vw, 92px);
  line-height: 1.02; letter-spacing: -.02em; margin-top: 16px; color: var(--olive-text);
}
html[lang="ar"] .hero h1 { font-weight: 700; letter-spacing: 0; line-height: 1.14; }
.hero-lead {
  max-width: 36rem; margin-top: 16px; font-size: 17px; line-height: 1.7; color: rgba(237,231,216,.88);
}
html[lang="ar"] .hero-lead { font-size: 18px; line-height: 1.85; }
.hero-note { margin-top: 12px; font-size: 13px; color: rgba(237,231,216,.7); letter-spacing: .02em; }
.hero-text .badges { margin-top: 22px; }
.hero-media { align-self: end; display: flex; justify-content: center; }

/* Desktop: the brick hero fills exactly one screen (nav + hero = 100svh), so the
   moving tatreez band sits right at the bottom edge on open. Content anchors to the
   bottom so the phone still meets the band. Nav is sticky/in-flow, so no jump. */
/* only the HOME hero (the wrapper containing the .hero section) fills the screen;
   the Contact/Join page-heroes must stay their natural compact height */
@media (min-width: 861px) {
  .hero-wrap:has(.hero) {
    min-height: calc(100vh - 76px);
    min-height: calc(100svh - 76px);
    display: flex; flex-direction: column; justify-content: flex-end;
  }
  .hero { padding-top: 40px; }
}

/* phone (top-anchored, screen bleeds off the bottom into the band) */
.phone {
  width: 264px; aspect-ratio: 9 / 17; background: #111; border-radius: 40px 40px 0 0;
  padding: 10px 10px 0; box-shadow: 0 -20px 60px -30px rgba(0,0,0,.6);
}
.phone-screen {
  position: relative; width: 100%; height: 100%; border-radius: 32px 32px 0 0;
  overflow: hidden; background: #fff;
}
.phone-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* tatreez band (drift via GPU transform on a ::before - background-position does not animate in Safari) */
.band { position: relative; overflow: hidden; height: 46px; }
.band::before {
  content: ''; position: absolute; top: 0; bottom: 0; inset-inline-start: -46px; inset-inline-end: 0;
  background: url('../img/tatreez-cross.svg') repeat-x center; background-size: 46px 46px; opacity: .8;
  animation: hj-drift var(--weave-dur) linear infinite;
}
.band--hero::before { box-shadow: none; }
.band--hero { box-shadow: inset 0 -2px 0 var(--brick); }
.band--footer { background: var(--brick); }
@keyframes hj-drift { from { transform: translateX(0); } to { transform: translateX(46px); } }

/* Olive theme for the hero band + fixed nav (used on the join page, tying it to
   the olive "Sell on Herfeh" section). Nav and band share the colour so they blend. */
.theme-olive .nav-outer { background: var(--olive); }
.theme-olive .nav-outer.scrolled { background: rgba(56,67,47,.9); }
.theme-olive .hero-wrap { background: var(--olive); }
.theme-olive .band--hero { box-shadow: inset 0 -2px 0 #2a3324; }

/* ---------- Main layout ---------- */
.main { max-width: var(--maxw); margin: 0 auto; position: relative; }
#categories, #how, #about { scroll-margin-top: 108px; }
#sell { scroll-margin-top: 22vh; }
#app { scroll-margin-top: 108px; }
.section-num { color: var(--accent-text); }

/* ---------- Categories ---------- */
.categories { padding: 88px var(--gutter) 0; }
.cat-eyebrow { display: block; text-align: center; }
.cat-title {
  text-align: center; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(34px, 4.6vw, 56px); line-height: 1.05; margin-top: 14px;
  max-width: 20ch; margin-inline: auto;
}
html[lang="ar"] .cat-title { font-weight: 700; line-height: 1.3; }
.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 44px; }
.cat-card {
  position: relative; border-radius: 12px; overflow: hidden; min-height: 400px;
  display: flex; align-items: flex-end;
}
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cat-cap {
  position: relative; width: 100%; padding: 28px 30px;
  background: linear-gradient(transparent, rgba(46,42,38,.66));
}
.cat-cap .eyebrow {
  display: block; font-size: 12px; letter-spacing: .2em; color: var(--peach);
}
html[lang="ar"] .cat-cap .eyebrow { letter-spacing: 0; }
.cat-cap h3 {
  font-family: var(--font-display); font-weight: 600; font-size: 30px; color: var(--panel); margin-top: 6px;
}
html[lang="ar"] .cat-cap h3 { font-weight: 700; }

/* image hover zoom (once, subtle) */
.zoom { overflow: hidden; }
.zoom img { transition: transform .6s var(--ease); }
.zoom:hover img { transform: scale(1.045); }

/* ---------- How it works ---------- */
.how { padding: 110px var(--gutter) 0; max-width: 1180px; margin: 0 auto; }
.how-title {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.05; margin-top: 14px; max-width: 20ch;
}
html[lang="ar"] .how-title { font-weight: 700; line-height: 1.3; }
.step {
  margin-top: 88px; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.step + .step { margin-top: 96px; }
.step--rev .step-media { order: 2; }
.step--rev .step-body { order: 1; }
.step-media, .step-body { min-width: 0; }
.step-media { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; }
.step-media img { width: 100%; height: 100%; object-fit: cover; }
.step-head { display: flex; align-items: center; gap: 16px; }
.step-num {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(46px, 6vw, 74px);
  line-height: 1; color: var(--accent);
}
.step-head img { width: 26px; opacity: .85; }
.step h3 {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.1; margin-top: 14px;
}
html[lang="ar"] .step h3 { font-weight: 700; line-height: 1.3; }
.step p { margin-top: 16px; font-size: 18px; line-height: 1.85; color: var(--muted); max-width: 44ch; }
html[lang="ar"] .step p { font-size: 18px; line-height: 2; }
.step-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; margin-top: 24px;
  padding: 13px 28px; border-radius: 100px; background: var(--accent); color: #fff;
  font-family: var(--font-body); font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  transition: background .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
html[lang="ar"] .step-btn { text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 500; }
.step-btn:hover { background: var(--accent-deep); color: #fff; transform: translateY(-1px); box-shadow: 0 12px 26px -14px rgba(201,72,27,.55); }

/* proximity spotlight: warm highlight follows the cursor across body copy */
.prox { --mx: -999px; --my: -999px; --base: var(--muted); --hl: var(--accent-deep); }
@media (hover: hover) {
  .prox {
    background-image: radial-gradient(circle 70px at var(--mx) var(--my), var(--hl) 0, var(--hl) 40px, var(--base) 70px);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: var(--base);
  }
}

/* ---------- Trust statement ---------- */
.trust { text-align: center; padding: 110px 40px 0; max-width: 840px; margin: 0 auto; }
.trust img { margin: 0 auto 20px; }
.trust p.quote {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(26px, 3.4vw, 40px); line-height: 1.34; color: var(--ink);
}
html[lang="ar"] .trust p.quote { font-style: normal; font-weight: 400; line-height: 1.6; }
.trust p.sub { margin-top: 18px; font-size: 17px; color: var(--muted); }

/* ---------- What's Herfeh ---------- */
.about { padding: 96px var(--gutter) 0; max-width: 1180px; margin: 0 auto; }
.about-card {
  background: var(--panel); border: 1px solid rgba(46,42,38,.16); border-radius: 12px;
  padding: 76px 76px 80px; display: grid; grid-template-columns: auto 1fr; gap: 56px; align-items: start;
}
.about-card > img { height: 96px; width: auto; }
.about-card h2 {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.08; margin-top: 14px;
}
html[lang="ar"] .about-card h2 { font-weight: 700; line-height: 1.3; }
.about-card p { margin-top: 20px; font-size: 19px; line-height: 1.9; color: var(--muted); max-width: 60ch; }
html[lang="ar"] .about-card p { line-height: 2; }
.about-link {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 18px;
  color: var(--accent-deep); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
html[lang="ar"] .about-link { text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 500; }
.about-link svg { width: 15px; height: 15px; }
html[lang="ar"] .about-link svg { transform: scaleX(-1); }

/* ---------- Sell on Herfeh (olive card) ---------- */
.sell {
  margin: 96px var(--gutter) 0; border-radius: 12px; background: var(--olive); color: var(--panel);
  padding: 70px 64px; position: relative; overflow: hidden;
}
.sell-corner { position: absolute; top: -30px; inset-inline-end: -30px; width: 150px; opacity: .16; pointer-events: none; }
.sell h2 {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.08; margin-top: 14px; max-width: 22ch;
}
html[lang="ar"] .sell h2 { font-weight: 700; line-height: 1.3; }
.sell .eyebrow { font-size: 17px; letter-spacing: .26em; color: var(--peach); }
html[lang="ar"] .sell .eyebrow { letter-spacing: 0; }
.sell-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 36px; margin-top: 40px; }
.sell-grid h3 { font-size: 16px; font-weight: 600; color: var(--peach); letter-spacing: .02em; }
.sell-grid p { margin-top: 8px; font-size: 15.5px; line-height: 1.8; color: var(--card-muted); }
html[lang="ar"] .sell-grid p { line-height: 2; }
.sell-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 13px 30px;
  border-radius: 100px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; margin-top: 36px;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
html[lang="ar"] .sell-btn { text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 500; }
.sell-btn:hover { background: var(--accent-deep); color: #fff; transform: translateY(-1px); }

/* Jordan map with Amman dot */
.sell-map { position: absolute; top: 44px; inset-inline-end: 56px; width: 266px; margin: 0; text-align: center; }
.sell-map > img { width: 100%; height: auto; filter: drop-shadow(0 14px 30px rgba(0,0,0,.35)); }
/* physical left (NOT inset-inline-start): the map image is identical in EN and AR,
   so the Amman dot must sit at the same physical spot and must not mirror in RTL */
.map-dot {
  position: absolute; top: 96px; left: 43%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px;
  border-radius: 50%; background: var(--accent-deep); box-shadow: 0 0 0 4px rgba(201,72,27,.28); cursor: pointer;
}
.map-tip {
  position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(4px);
  background: var(--ink); color: var(--panel); font-size: 12px; font-weight: 600; letter-spacing: .06em;
  padding: 5px 10px; border-radius: 6px; white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease); z-index: 5;
}
.map-dot:hover .map-tip, .map-dot:focus .map-tip { opacity: 1; transform: translateX(-50%) translateY(0); }
.map-cap {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 12px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--peach);
}
html[lang="ar"] .map-cap { text-transform: none; letter-spacing: 0; font-size: 14px; }
.map-cap .pip { width: 9px; height: 9px; border-radius: 50%; background: var(--accent-deep); box-shadow: 0 0 0 4px rgba(201,72,27,.22); }

/* ---------- App download ---------- */
.download { text-align: center; padding: 110px 40px 100px; max-width: 760px; margin: 0 auto; }
.download h2 {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.06; margin-top: 16px;
}
html[lang="ar"] .download h2 { font-weight: 700; line-height: 1.25; }
.download-note { margin-top: 18px; font-size: 13px; color: var(--muted); letter-spacing: .02em; }

/* ---------- Store badges ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.badges.center { justify-content: center; }
.store {
  direction: ltr; display: inline-flex; align-items: center; gap: 11px; min-height: 46px;
  padding: 10px 20px; border-radius: 10px; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.store:hover { transform: translateY(-1px); }
.store svg { width: 22px; height: 24px; flex: none; }
.store-txt { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.store-txt .sm { font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.store-txt .lg { font-family: 'Jost', var(--font-body); font-weight: 500; font-size: 16px; }
/* hero (on brick) */
.store--cream { background: var(--olive-text); color: var(--ink); }
.store--cream .sm { color: #7c7161; }
.store--cream:hover { box-shadow: 0 12px 26px -14px rgba(0,0,0,.5); color: var(--ink); }
.store--ghost-cream { border: 1px solid rgba(237,231,216,.42); color: var(--olive-text); }
.store--ghost-cream .sm { color: #b8ab97; }
.store--ghost-cream:hover { background: rgba(237,231,216,.08); color: var(--olive-text); }
/* download section (on cream) */
.store--ink { background: var(--ink); color: var(--panel); }
.store--ink .sm { color: #b8ab97; }
.store--ink:hover { box-shadow: 0 12px 26px -14px rgba(0,0,0,.5); color: var(--panel); }
.store--ghost-ink { border: 1px solid rgba(46,42,38,.32); color: var(--ink); }
.store--ghost-ink .sm { color: #7c7161; }
.store--ghost-ink:hover { border-color: var(--accent-deep); color: var(--ink); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--card-muted); }
.footer-main {
  max-width: var(--maxw); margin: 0 auto; display: flex; justify-content: space-between;
  align-items: flex-start; gap: 44px; flex-wrap: wrap; padding: 46px var(--gutter) 30px;
}
.footer-brand img { height: 56px; width: auto; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 13px; margin-top: 14px; color: var(--dim-on-dark); max-width: 320px; line-height: 1.6; }
html[lang="ar"] .footer-brand p { line-height: 1.8; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 28px 56px; }
.footer-col { display: flex; flex-direction: column; }
.footer-col h3 {
  color: var(--peach); text-transform: uppercase; letter-spacing: .14em; font-size: 11px;
  font-weight: 600; margin-bottom: 10px;
}
html[lang="ar"] .footer-col h3 { text-transform: none; letter-spacing: 0; font-size: 13px; }
.footer-col a { display: flex; align-items: center; min-height: 44px; color: var(--card-muted); font-size: 13px; }
.footer-col a:hover { color: var(--peach); }
.footer-col a[dir="ltr"] { direction: ltr; }
.footer-bottom {
  max-width: var(--maxw); margin: 0 auto; display: flex; justify-content: flex-start;
  align-items: center; gap: 12px 20px; flex-wrap: wrap; padding: 0 var(--gutter) 40px;
}
/* language toggle sits at the far end; copyright / privacy / cookie cluster together */
.footer-bottom .footer-lang { margin-inline-start: auto; }
.footer-bottom .copy { color: var(--dim-on-dark); font-size: 13px; letter-spacing: .04em; }
.footer-lang { direction: ltr; display: flex; gap: 8px; align-items: center; font-size: 12px; }
.footer-lang a { color: var(--dim-on-dark); display: inline-flex; align-items: center; padding: 13px 8px; margin: -13px -8px; }
.footer-lang a.is-active { color: var(--peach); }
.footer-lang a[lang="ar"] { font-family: 'Dubai', var(--font-body); font-size: 14px; }
.footer-lang .dot { color: #6b6151; }
.footer-legal { color: var(--dim-on-dark); font-size: 13px; letter-spacing: .04em; display: inline-flex; align-items: center; min-height: 44px; }
.footer-legal:hover, .footer-legal:focus-visible { color: var(--peach); }
.footer-legal.is-active { color: var(--peach); }

/* ---------- Legal / policy pages ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 52px var(--gutter) 100px; }
.legal-meta { font-size: 14px; line-height: 1.95; color: var(--muted); margin: 0; padding-bottom: 28px; border-bottom: 1px solid var(--hairline); }
.legal-meta strong { color: var(--ink); font-weight: 600; }
.legal section { margin-top: 44px; }
.legal h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(24px, 3vw, 30px); line-height: 1.25; color: var(--ink); margin: 0 0 16px; }
.legal h3 { font-size: 16px; font-weight: 600; letter-spacing: .01em; color: var(--ink); margin: 28px 0 10px; }
.legal p { font-size: 16px; line-height: 1.8; color: var(--muted); margin: 0 0 16px; }
.legal ul { margin: 0 0 16px; padding-left: 22px; }
html[lang="ar"] .legal ul { padding-left: 0; padding-right: 22px; }
.legal li { font-size: 16px; line-height: 1.75; color: var(--muted); margin-bottom: 8px; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--accent-hover); }
.legal .note { background: var(--panel); border: 1px solid var(--hairline); border-radius: 12px; padding: 16px 20px; margin: 4px 0 20px; }
.legal .note p { margin: 0; color: var(--muted); }
.legal .note strong { color: var(--ink); }

/* ---------- Contact page ---------- */
.page-hero { text-align: center; padding: 40px var(--gutter) 8px; max-width: 780px; margin: 0 auto; }
/* Secondary banners (Contact / Join): a compact band, clearly shorter than the
   full-height home hero, with the text vertically centred. The tatreez band is a
   sibling below, so it stays pinned to the bottom of the wrap. */
.hero-wrap .page-hero {
  min-height: 208px;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: 22px; padding-bottom: 26px;
}
.hero-wrap .page-hero h1 { font-size: clamp(32px, 4.4vw, 52px); margin-top: 14px; }
.hero-wrap .page-hero .lead { margin-top: 18px; }
.hero-wrap .page-hero h1 { color: var(--olive-text); }
.hero-wrap .page-hero .lead { color: rgba(237,231,216,.88); }
.hero-wrap .page-hero .eyebrow { color: var(--peach); }
.page-hero h1 {
  font-family: var(--font-display); font-weight: 500; font-size: clamp(40px, 6vw, 72px);
  line-height: 1.04; letter-spacing: -.01em; margin-top: 18px;
}
html[lang="ar"] .page-hero h1 { font-weight: 700; letter-spacing: 0; line-height: 1.2; }
.page-hero .lead { font-size: 19px; line-height: 1.75; color: var(--muted); margin: 24px auto 0; max-width: 42rem; }
html[lang="ar"] .page-hero .lead { font-size: 20px; line-height: 1.95; }
.channels { max-width: 620px; margin: 56px auto 0; padding: 0 var(--gutter); display: flex; flex-direction: column; gap: 16px; }
.channel-group { display: flex; flex-direction: column; gap: 16px; }
.channel-group + .channel-group { margin-top: 8px; }
.channel-group-title {
  font-family: var(--font-body); font-weight: 600; font-size: 13px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent-text); margin-bottom: 2px; text-align: start;
}
html[lang="ar"] .channel-group-title { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 16px; }
.channel {
  display: flex; align-items: center; gap: 20px; padding: 22px 26px; border-radius: 14px;
  background: var(--panel); border: 1px solid rgba(46,42,38,.16);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
a.channel:hover, a.channel:focus-visible { transform: translateY(-2px); box-shadow: 0 16px 30px -22px rgba(46,42,38,.5); border-color: var(--accent-deep); }
.channel-icon {
  flex: none; width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center;
  justify-content: center; background: var(--ink); color: var(--panel);
}
.channel-icon svg { width: 24px; height: 24px; }
.channel-text { display: flex; flex-direction: column; gap: 3px; text-align: start; }
.c-label { font-family: var(--font-body); font-weight: 600; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
html[lang="ar"] .c-label { text-transform: none; letter-spacing: 0; font-size: 14px; }
.c-handle { font-size: 17px; color: var(--accent-text); font-weight: 400; direction: ltr; text-align: start; }
.contact-cta { text-align: center; margin: 64px auto; padding-bottom: 96px; }
.contact-cta .badges { justify-content: center; }

/* ---------- Join / waitlist form ---------- */
.form-wrap { max-width: 780px; margin: 0 auto; padding: 8px var(--gutter) 0; }

/* role tabs (Sell food & crafts / Drive & deliver) */
.role-tabs {
  display: inline-flex; gap: 5px; margin-bottom: 24px; padding: 5px; border-radius: 100px;
  background: rgba(46,42,38,.05); border: 1px solid var(--hairline);
}
.role-tab {
  border: 0; background: transparent; border-radius: 100px; padding: 10px 22px;
  font-family: var(--font-body); font-weight: 600; font-size: 14px; color: var(--muted); cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
}
html[lang="ar"] .role-tab { font-size: 15px; }
.role-tab.is-active { background: var(--accent); color: #fff; }
.role-tab:not(.is-active):hover { color: var(--accent-text); }
@media (max-width: 600px) {
  .role-tabs { display: flex; width: 100%; }
  .role-tab { flex: 1; padding: 11px 10px; }
}
.form-card {
  background: var(--panel); border: 1px solid rgba(46,42,38,.16); border-radius: 16px;
  padding: 44px 48px;
  /* the form is the main content: animate in immediately on load, never gate on scroll.
     default state is fully visible, so it can never get stuck hidden. */
  animation: form-card-in .6s var(--ease) both;
}
@keyframes form-card-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
/* each section is an even vertical stack; one gap value governs the rhythm */
.form-section { display: flex; flex-direction: column; gap: 20px; }
.form-section + .form-section { margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--hairline); }
.form-section-title {
  font-family: var(--font-body); font-weight: 600; font-size: 13px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent-text); margin: 0;
}
html[lang="ar"] .form-section-title { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 16px; }
/* the note hugs its title (pull it up against the section's flex gap) */
.form-section-note { font-size: 13.5px; color: var(--muted); line-height: 1.6; margin: -12px 0 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
/* KEY: fields carry no margin of their own, so the two grid columns align at the top */
.field, .form-grid .field { margin: 0; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field .req { color: var(--accent-text); margin-inline-start: 3px; }
.field .opt { color: var(--muted); font-weight: 400; font-size: 12px; margin-inline-start: 4px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-weight: 400; font-size: 16px; color: var(--ink);
  background: #FBF6EA; border: 1px solid rgba(46,42,38,.22); border-radius: 10px; padding: 12px 14px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease); text-align: start;
}
html[lang="ar"] .field input, html[lang="ar"] .field select, html[lang="ar"] .field textarea { font-weight: 400; }
.field input[type="tel"], .field input[type="email"], .field input[type="url"] { direction: ltr; text-align: start; }
.field input::placeholder, .field textarea::placeholder { color: #9a8f7d; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent-deep); box-shadow: 0 0 0 3px rgba(201,72,27,.14);
}
.field textarea { min-height: 116px; resize: vertical; line-height: 1.6; }
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-inline-end: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235F5648' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
html[lang="ar"] .field select { background-position: left 14px center; }
.field:has(input:invalid:not(:placeholder-shown)) input { border-color: var(--brick); }

/* skill chips (multi-select) */
.chip-group { margin: 0; }
.chip-group-label {
  display: block; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 10px;
}
html[lang="ar"] .chip-group-label { text-transform: none; letter-spacing: 0; font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip-toggle {
  display: inline-flex; align-items: center; padding: 9px 15px; border-radius: 100px;
  border: 1px solid rgba(46,42,38,.24); background: transparent; color: var(--muted);
  font-family: var(--font-body); font-size: 14px; cursor: pointer;
  transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.chip-toggle:hover { border-color: var(--accent-deep); color: var(--accent-text); }
.chip-toggle[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip-toggle[aria-pressed="true"]:hover { color: #fff; }

/* repeatable social links */
.link-row { display: flex; gap: 10px; }
.link-row + .link-row { margin-top: 10px; }
.link-row input {
  flex: 1; min-width: 0; font-family: var(--font-body); font-weight: 400; font-size: 16px; color: var(--ink);
  background: #FBF6EA; border: 1px solid rgba(46,42,38,.22); border-radius: 10px;
  padding: 18px 14px; direction: ltr; text-align: start;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.link-row input::placeholder { color: #9a8f7d; }
.link-row input:focus { outline: none; border-color: var(--accent-deep); box-shadow: 0 0 0 3px rgba(201,72,27,.14); }
.link-remove {
  flex: none; width: 44px; border-radius: 10px; border: 1px solid rgba(46,42,38,.22);
  background: transparent; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.link-remove:hover { color: var(--brick); border-color: var(--brick); }
.add-link {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 10px 16px;
  border: 1px dashed rgba(46,42,38,.32); border-radius: 10px; background: transparent;
  color: var(--accent-text); font-family: var(--font-body); font-weight: 600; font-size: 14px; cursor: pointer;
  transition: border-color .18s var(--ease), background .18s var(--ease);
}
.add-link:hover { border-color: var(--accent-deep); background: rgba(201,72,27,.05); }

/* submit + privacy */
.form-foot { margin-top: 30px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.form-submit {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 14px 40px;
  border: 0; border-radius: 100px; background: var(--accent); color: #fff;
  font-family: var(--font-body); font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  cursor: pointer; transition: background .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
html[lang="ar"] .form-submit { text-transform: none; letter-spacing: 0; font-size: 16px; font-weight: 500; }
.form-submit:hover { background: var(--accent-deep); transform: translateY(-1px); box-shadow: 0 14px 30px -14px rgba(201,72,27,.55); }
.form-privacy { font-size: 12.5px; color: var(--muted); line-height: 1.6; }

/* success state */
.form-success { display: none; text-align: center; padding: 88px 24px 96px; }
.form-success.show { display: block; }
.form-success .tick {
  width: 64px; height: 64px; margin: 0 auto 22px; border-radius: 50%;
  background: var(--olive); color: var(--olive-text); display: flex; align-items: center; justify-content: center;
}
.form-success .tick svg { width: 30px; height: 30px; }
.form-success h2 {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1;
}
html[lang="ar"] .form-success h2 { font-weight: 700; line-height: 1.3; }
.form-success p { margin-top: 14px; font-size: 17px; line-height: 1.7; color: var(--muted); }
.form-error {
  display: none; margin-top: 16px; font-size: 14px; color: var(--brick-text, #8A3A2E);
  background: rgba(125,42,38,.08); border: 1px solid rgba(125,42,38,.2); border-radius: 10px; padding: 12px 14px;
}
.form-error.show { display: block; }

@media (max-width: 600px) {
  .form-card { padding: 30px 22px; }
  .form-grid { grid-template-columns: 1fr; }
}

/* ---------- Reveal animations (once only) ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.rise { transform: translateY(30px); transition-duration: .9s; }
.reveal.rx-l { transform: translateX(-44px); transition-duration: .8s; }
.reveal.rx-r { transform: translateX(44px); transition-duration: .8s; }
html[lang="ar"] .reveal.rx-l { transform: translateX(44px); }
html[lang="ar"] .reveal.rx-r { transform: translateX(-44px); }
.reveal[data-i="1"] { transition-delay: .08s; }
.reveal[data-i="2"] { transition-delay: .16s; }
.reveal[data-i="3"] { transition-delay: .24s; }
.reveal[data-i="4"] { transition-delay: .32s; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  :root { --gutter: 40px; }
}
@media (max-width: 860px) {
  :root { --gutter: 24px; }
  .hero { grid-template-columns: 1fr; padding-left: 24px; padding-right: 24px; }
  /* the phone is the most persuasive asset: keep it, stacked under the hero copy */
  .hero-media { display: flex; margin-top: 8px; }
  .phone { width: 210px; }
  .hero-text { padding-bottom: 56px; }
  /* horizontal reveals would sit outside the viewport and add ~20px of overflow;
     go vertical-only on small screens instead of relying on overflow-x: clip */
  .reveal.rx-l, .reveal.rx-r,
  html[lang="ar"] .reveal.rx-l, html[lang="ar"] .reveal.rx-r { transform: translateY(16px); }
  .cat-grid { grid-template-columns: 1fr; }
  .step, .step + .step { grid-template-columns: 1fr; gap: 28px; }
  /* mobile: text (body) reads first, image second */
  .step--rev .step-media, .step-media { order: 1; }
  .step--rev .step-body, .step-body { order: 0; }
  .about-card { grid-template-columns: 1fr; gap: 28px; padding: 44px 30px; }
  .about-card > img { height: 72px; }
  .sell { margin-left: 20px; margin-right: 20px; padding: 44px 28px; }
  .sell-map { display: none; }
  .categories, .how, .about { padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 600px) {
  .hero h1 { font-size: clamp(38px, 11vw, 60px); }
  .hero .eyebrow { font-size: 12px; letter-spacing: .14em; }
  html[lang="ar"] .hero .eyebrow { font-size: 15px; }
  .cat-eyebrow, .categories .eyebrow, .how .eyebrow { font-size: 12px; letter-spacing: .14em; }
  .cat-title, .how-title { font-size: clamp(28px, 7.4vw, 40px); }
  .about-card h2, .sell h2, .download h2 { font-size: clamp(28px, 7.6vw, 44px); }
  .page-hero h1 { font-size: clamp(34px, 9vw, 52px); }
  .step p, .hero-lead, .about-card p { font-size: 16px; }
  .categories { padding-top: 64px; }
  .how { padding-top: 84px; }
  .trust { padding-top: 84px; }
  .about { padding-top: 72px; }
  .sell { margin-top: 72px; }
  .download { padding-top: 84px; padding-bottom: 80px; }
  /* sticky stays: the "Get the app" CTA must follow the user on the one platform
     that can install the app. The 5 links collapse into a disclosure menu so the
     bar is a single row again. */
  .nav-outer { position: sticky; top: 0; }
  .nav { padding: 10px 16px; gap: 8px; flex-wrap: nowrap; }
  .nav-brand img { height: 32px; }
  .nav-brand { min-width: 0; flex: none; }
  .nav-brand .brand-word { display: none; }
  .nav-cta { white-space: nowrap; padding: 8px 14px; min-height: 36px; font-size: 11px; letter-spacing: .04em; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links {
    display: none; position: absolute; inset-inline: 0; top: 100%;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--brick); padding: 8px 20px 16px;
    box-shadow: 0 14px 30px -20px rgba(0,0,0,.7);
  }
  .nav-outer.menu-open .nav-links { display: flex; }
  .nav-links a { width: 100%; padding: 12px 0; }
  .nav-links a::after { display: none; }
  html[lang="ar"] body { font-size: 17px; }
}
@media (max-width: 420px) {
  .cat-card { min-height: 300px; }
  .about-card { padding: 36px 22px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; transition-delay: 0s !important; animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .band::before { transform: none !important; }
  .hero-motif { transform: none !important; }
  .prox { -webkit-text-fill-color: currentColor !important; background-image: none !important; }
  .zoom:hover img { transform: none !important; }
}

/* ---------- Cookie consent ---------- */
.consent {
  position: fixed; z-index: 120; inset-inline-start: 20px; inset-block-end: 20px; max-width: 330px;
  background: var(--panel); color: var(--ink); border: 1px solid var(--hairline); border-radius: 12px;
  box-shadow: 0 18px 44px -26px rgba(46,42,38,.55); padding: 15px 17px;
  opacity: 0; transform: translateY(12px); transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.consent.in { opacity: 1; transform: none; }
.consent p { margin: 0 0 12px; font-size: 13px; line-height: 1.55; color: var(--muted); }
.consent-actions { display: flex; gap: 8px; justify-content: flex-end; }
.consent button {
  font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: .02em;
  padding: 8px 15px; border-radius: 8px; border: 1px solid transparent; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.consent .accept { background: var(--accent); color: #fff; }
.consent .accept:hover, .consent .accept:focus-visible { background: var(--accent-deep); }
.consent .decline { background: transparent; color: var(--muted); border-color: var(--hairline); }
.consent .decline:hover, .consent .decline:focus-visible { color: var(--ink); border-color: var(--ink); }
/* on desktop the hero CTA badges sit bottom-start, so the banner moves to the
   opposite corner and never covers the primary download buttons */
@media (min-width: 861px) { .consent { inset-inline-start: auto; inset-inline-end: 20px; } }
@media (max-width: 480px) { .consent { inset-inline: 12px; inset-block-end: 12px; max-width: none; } }

/* footer link that reopens the consent banner (plain text button, matches .copy) */
.cookie-settings {
  background: none; border: 0; padding: 0; margin: 0; cursor: pointer;
  font-family: inherit; font-size: 13px; letter-spacing: .04em; color: var(--dim-on-dark);
}
.cookie-settings:hover, .cookie-settings:focus-visible { text-decoration: underline; }
