/* Landing page (index.html in Arabic, fr.html, en.html, written by scripts/landing-pages.mjs), after the owner's reference mock of
   2026-10-29: warm cream, brick red actions, lifestyle photos, the app's and the sellers' website's screens drawn in HTML,
   and a near-black sellers' block. No script and no inline styles (the CSP allows neither): the motion at the end is pure
   CSS. Logical properties throughout, and --dir flips horizontal motion, so the Arabic index.html mirrors. */

@font-face { font-family: "Rubik"; font-weight: 400; font-display: swap; src: url("/fonts/rubik-400.woff2") format("woff2"); unicode-range: U+0000-024F, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Rubik"; font-weight: 700; font-display: swap; src: url("/fonts/rubik-700.woff2") format("woff2"); unicode-range: U+0000-024F, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Rubik"; font-weight: 800; font-display: swap; src: url("/fonts/rubik-800.woff2") format("woff2"); unicode-range: U+0000-024F, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Rubik"; font-weight: 300 900; font-display: swap; src: url("/fonts/rubik-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC; }

:root {
  --bg: #FBF6F1;
  --panel: #F5EBE3;
  --surface: #FFFFFF;
  --ink: #1F1B19;
  --muted: #6F6862;
  --primary: #AC332A;
  --primary-deep: #8E2820;
  --soft: #F8E1DA;
  --dark: #231D1B;
  --line: #ECE2D9;
  --fill: #F3EBE5;     /* the app's field and chip fill */
  --star: #E9A33B;
  --success: #25603F;
  --success-soft: #E3F2E8;
  --info: #1F6F78;
  --info-soft: #DDF0F1;
  --shadow: 0 30px 60px -32px rgba(58, 31, 28, 0.45), 0 10px 22px -14px rgba(58, 31, 28, 0.2);
  --shadow-soft: 0 14px 30px -18px rgba(58, 31, 28, 0.3);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --dir: 1;            /* -1 in Arabic: horizontal motion and tilts mirror */
}
[dir="rtl"] { --dir: -1; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 "Rubik", system-ui, sans-serif; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
h1, h2 { font-weight: 800; letter-spacing: -0.025em; text-wrap: balance; }
h1 { font-size: clamp(40px, 5.6vw, 66px); line-height: 1.04; }
h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; }
h3 { font-size: 16px; font-weight: 700; line-height: 1.3; }
.h3 { font-size: clamp(22px, 2.2vw, 26px); letter-spacing: -0.015em; }
:lang(ar) :is(h1, h2) { letter-spacing: 0; line-height: 1.35; }
svg { width: 20px; height: 20px; flex: none; }
.wrap { max-width: 1200px; margin-inline: auto; padding-inline: max(20px, env(safe-area-inset-left)); }
@media (min-width: 768px) { .wrap { padding-inline: 32px; } }
.lead { margin-top: 16px; max-width: 30em; color: var(--muted); font-size: clamp(16px, 1.4vw, 18px); }
.eyebrow { margin-bottom: 12px; color: var(--primary); font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
:lang(ar) .eyebrow { font-size: 15px; letter-spacing: 0; }
.section { padding-block: 64px; }
.ic { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 50%; background: var(--soft); color: var(--primary); }
.ic svg { width: 24px; height: 24px; }
.ic.sq { width: 44px; height: 44px; border-radius: 12px; }
[dir="rtl"] .arrow { scale: -1 1; }

/* buttons: one filled brick pill per group, then an outlined one */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border: 1.5px solid var(--primary);
  border-radius: 999px; background: var(--primary); color: #fff; font: inherit; font-weight: 700; text-decoration: none; white-space: nowrap;
  box-shadow: 0 10px 20px -12px rgba(172, 51, 42, 0.7); transition: background-color 0.15s ease, transform 0.15s var(--ease-out); }
.btn:hover { background: var(--primary-deep); border-color: var(--primary-deep); }
.btn:active { transform: scale(0.97); }
.btn-outline { background: transparent; color: var(--primary); box-shadow: none; }
.btn-outline:hover { background: var(--soft); border-color: var(--primary); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.45); background: transparent; color: #fff; box-shadow: none; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn svg { width: 18px; height: 18px; }
@media (max-width: 479px) { .hero .actions .btn, .final .actions .btn { flex: 1 1 100%; } }
a:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
.btn:focus-visible { border-radius: 999px; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 20; padding-top: env(safe-area-inset-top); background: rgba(251, 246, 241, 0.9);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.top-in { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 24px; font-weight: 800; line-height: 1; text-decoration: none; }
.nav { display: flex; gap: 4px; margin-inline-end: auto; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 12px; color: var(--ink); font-size: 15px; text-decoration: none; }
.nav a:hover { color: var(--primary); }
.langs { display: flex; align-items: center; }
.langs a { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; min-height: 44px; padding: 0 4px;
  color: var(--muted); font-size: 14px; font-weight: 700; text-decoration: none; }
.langs a + a::before { content: "·"; margin-inline-end: 8px; color: var(--line); font-weight: 400; }
.langs a:hover { color: var(--ink); }
.langs a[aria-current] { color: var(--ink); text-decoration: underline 2px var(--primary); text-underline-offset: 7px; }
@media (max-width: 859px) { .nav { display: none; } .top .langs { margin-inline-start: auto; } }
@media (max-width: 479px) { .top-app { display: none; } .top-in { gap: 12px; } }

/* ---------- hero: the wall photo is the backdrop, the vase and rug sit in the corner under the copy ---------- */
.hero { position: relative; isolation: isolate; overflow: clip; background: url("/img/wall.webp") center / cover no-repeat; }
.hero-corner { position: absolute; inset-inline-start: 0; bottom: 0; z-index: -1; width: min(36vw, 460px);
  -webkit-mask-image: linear-gradient(to top, #000 55%, transparent), linear-gradient(to left, transparent, #000 30%); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to top, #000 55%, transparent), linear-gradient(to left, transparent, #000 30%); mask-composite: intersect; }
[dir="rtl"] .hero-corner { scale: -1 1; }  /* the photo mirrors with the page; the mask mirrors with it */
.hero-in { display: grid; gap: 32px; align-items: center; min-height: 600px; padding-block: 48px 0; }
@media (min-width: 960px) { .hero-in { grid-template-columns: 1fr 1fr; padding-block: 48px 120px; } }
.hero h1 { max-width: 9.5em; }
.hero-copy { padding-bottom: 24px; }
@media (max-width: 959px) { .hero-corner { width: 200px; opacity: 0.5; } }
.hero-art { position: relative; isolation: isolate; justify-self: center; padding-bottom: 32px; }
.hero-art::before { content: ""; position: absolute; inset-block: 8% 10%; inset-inline: 10% -30%; z-index: -1; border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%;
  background: #F2D3C6; rotate: -12deg; opacity: 0.8; }
.hero-art .phone { --w: clamp(240px, 64vw, 290px); rotate: calc(6deg * var(--dir)); }
/* how a review looks on Hanout: stars, a short comment, and the verified purchase badge (no invented person) */
.review-card { position: absolute; inset-inline-end: -150px; top: 46%; display: grid; gap: 4px; width: 200px; padding: 16px 18px;
  border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); font-size: 14px; }
.review-card blockquote { font-size: 17px; font-weight: 700; line-height: 1.3; }
.review-card small { color: var(--muted); font-size: 13px; }
.stars { color: var(--star); letter-spacing: 2px; }
.verified { display: inline-flex; align-items: center; gap: 4px; color: var(--success); font-size: 13px; font-weight: 700; }
.verified svg { width: 15px; height: 15px; }
@media (max-width: 1199px) { .review-card { inset-inline-end: -60px; } }
@media (max-width: 600px) { .review-card { inset-inline-end: -8px; top: auto; bottom: 8px; width: 165px; padding: 12px 14px; } .review-card blockquote { font-size: 15px; } }

/* ---------- the three promises ---------- */
.perks { position: relative; display: grid; gap: 4px; margin: -8px 0 0; padding: 20px 28px; list-style: none; border-radius: 22px;
  background: rgba(255, 255, 255, 0.72); box-shadow: var(--shadow-soft); }
.perks li { display: flex; align-items: center; gap: 16px; padding-block: 8px; }
.perks h3 { color: var(--primary); }
.perks p { color: var(--muted); font-size: 14px; }
@media (min-width: 820px) {
  .perks { grid-template-columns: repeat(3, 1fr); }
  .perks li { justify-content: center; }
  .perks li + li { border-inline-start: 1px solid var(--line); }
}

/* ---------- phone mockups: the app's screens drawn in HTML inside a real phone photo (phone.webp, 632 × 1288,
   cut out of a white background). The screen's box, its corner radius, and the camera cutout are measured on the
   photo; redo them if it changes. Sizes inside are in em; the phone's width sets the base. ---------- */
.phone { --w: 260px; position: relative; width: var(--w); aspect-ratio: 632 / 1288; font-size: calc(var(--w) / 24);
  background: url("/img/phone.webp") center / 100% 100% no-repeat;
  filter: drop-shadow(0 28px 30px rgba(58, 31, 28, 0.32)) drop-shadow(0 8px 10px rgba(58, 31, 28, 0.16)); }
.phone-sm { --w: clamp(220px, 60vw, 250px); }
.screen { position: absolute; left: 5.696%; top: 2.407%; width: 88.608%; height: 95.264%; overflow: clip;
  border-radius: 12.857% / 5.868%; background: var(--bg); text-align: start; }
.notch { position: absolute; z-index: 3; top: 1.467%; left: 34.46%; width: 31.25%; height: 4.156%; border-radius: 99em; background: #050505; }
.status { display: flex; justify-content: space-between; align-items: center; height: 3.6em; padding: 0.4em 2.2em 0; font-size: 0.95em; font-weight: 700; }
.bars-icon { width: 2.2em; height: 0.9em; border-radius: 0.3em; background: var(--ink); }
/* Discover: search, filter, and bell pinned on top, category chips, the grid, and the dark tab bar */
.search-row { display: flex; gap: 0.5em; padding: 0.3em 1.1em 0.2em; }
.search-field { flex: 1; min-width: 0; display: flex; align-items: center; gap: 0.5em; height: 3.2em; padding-inline: 1em 0.8em; border-radius: 1.1em;
  background: var(--fill); color: #8F8A84; font-size: 0.92em; white-space: nowrap; overflow: hidden; }
.search-field svg { width: 1.35em; height: 1.35em; color: var(--muted); }
.search-field span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.icon-btn { flex: none; display: grid; place-items: center; width: 3em; height: 3em; border-radius: 1em; background: var(--fill); color: var(--ink); }
.icon-btn.primary { background: var(--primary); color: #fff; }
.icon-btn svg { width: 1.4em; height: 1.4em; }
.chips { display: flex; gap: 0.5em; padding: 0.75em 1.1em 0.2em; overflow: hidden; }
.chip { display: flex; align-items: center; gap: 0.35em; padding: 0.6em 0.9em; border-radius: 1em; background: var(--fill); font-size: 0.85em; font-weight: 700; white-space: nowrap; }
.chip svg { width: 1.2em; height: 1.2em; }
.chip.on { background: var(--primary); color: #fff; }
.feed-title { margin: 0.7em 1.1em 0.55em; font-size: 1.2em; font-weight: 700; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.95em 0.55em; padding: 0 1.1em; }
.pcard { display: flex; flex-direction: column; min-width: 0; }
.ph { position: relative; }
.pcard img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 1.5em; background: var(--fill); }
.add { position: absolute; top: 0.5em; inset-inline-end: 0.5em; display: grid; place-items: center; width: 2.4em; height: 2.4em; border-radius: 50%; background: rgba(255, 255, 255, 0.92); }
.add svg { width: 1.3em; height: 1.3em; }
.pcard b { margin: 0.5em 0.15em 0; font-size: 0.92em; font-weight: 400; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard .price { margin: 0.05em 0.15em 0; color: var(--primary); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meta { display: flex; align-items: center; gap: 0.25em; margin: 0.1em 0.15em 0; font-size: 0.78em; font-weight: 700; white-space: nowrap; overflow: hidden; }
.meta i { font-style: normal; color: var(--star); }
.meta em { font-style: normal; font-weight: 400; color: var(--muted); }
.meta span { min-width: 0; margin-inline-start: 0.2em; font-weight: 400; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.tabbar { position: absolute; inset: auto 0 0; display: flex; gap: 0.2em; padding: 0.5em 0.5em 1.5em; background: var(--surface); box-shadow: 0 -0.5em 1.5em -1em rgba(58, 31, 28, 0.35); }
.tab { flex: 1; height: 4em; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.15em; border-radius: 1.1em;
  color: var(--muted); font-size: 0.8em; font-weight: 700; white-space: nowrap; }
.tab svg { width: 1.7em; height: 1.7em; }
.tab.on { background: var(--ink); color: #fff; }
/* product page under its buy sheet */
.pp-photo { width: 100%; aspect-ratio: 1; object-fit: cover; }
.pp-title { padding: 0.8em 1.2em 0; font-size: 1.05em; font-weight: 700; }
.scrim { position: absolute; inset: 0; background: rgba(31, 27, 25, 0.35); }
.bsheet { position: absolute; inset-inline: 0; bottom: 0; padding: 0.7em 1.2em 1.6em; border-radius: 2em 2em 0 0; background: var(--surface); }
.grab { display: block; width: 3em; height: 0.35em; margin: 0 auto 0.9em; border-radius: 1em; background: var(--line); }
.bs-head { display: flex; align-items: center; gap: 0.8em; }
.bs-head img { width: 4.6em; height: 4.6em; flex: none; border-radius: 1.1em; object-fit: cover; }
.bs-head b, .bs-head small { display: block; }
.bs-price { color: var(--primary); font-size: 1.25em; font-weight: 800; }
.bs-head small { color: var(--muted); font-size: 0.8em; }
.opt { margin: 1em 0 0.5em; color: var(--muted); font-size: 0.85em; font-weight: 700; }
.opt b { color: var(--ink); }
.dots { display: flex; gap: 0.7em; }
.sw { width: 2em; height: 2em; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(28, 27, 26, 0.12); }
.sw.on { box-shadow: 0 0 0 0.18em var(--surface), 0 0 0 0.32em var(--ink); }
.sw.off { opacity: 0.35; background: linear-gradient(135deg, transparent 46%, var(--ink) 46% 54%, transparent 54%), var(--c); }
.c-white { --c: #F6F3EE; } .c-black { --c: #1F1B19; } .c-cream { --c: #E6D7C3; } .c-red { --c: #A3322A; }
.sizes { display: flex; flex-wrap: wrap; gap: 0.45em; }
.sizes span { padding: 0.5em 0.75em; border-radius: 0.8em; background: var(--fill); font-size: 0.8em; font-weight: 700; }
.sizes .on { background: var(--ink); color: #fff; }
.sizes .off { color: var(--muted); text-decoration: line-through; }
.bs-btn { display: block; margin-top: 1.2em; padding: 0.95em; border-radius: 99em; background: var(--primary); color: #fff; text-align: center; font-weight: 700; }
/* order screen: a notification, the product, the timeline at "shipped", and the amount to pay */
.notif { display: flex; align-items: center; gap: 0.7em; margin: 0.2em 0.8em 0.6em; padding: 0.8em 1em; border-radius: 1.4em; background: var(--surface); box-shadow: var(--shadow-soft); font-size: 0.85em; }
.notif img { width: 2.6em; height: 2.6em; flex: none; padding: 0.35em; border-radius: 0.8em; background: var(--bg); }
.notif b { display: block; }
.order-top { display: flex; align-items: center; gap: 0.6em; padding: 0.5em 1.2em; font-size: 1.15em; }
.order-top svg { width: 1.3em; height: 1.3em; }
.order-item { display: flex; align-items: center; gap: 0.8em; margin: 0.5em 1.1em 0; padding: 0.8em; border-radius: 1.4em; background: var(--surface); }
.order-item img { width: 4.4em; height: 4.4em; flex: none; border-radius: 1em; object-fit: cover; }
.order-item div { min-width: 0; }
.order-item b, .order-item small, .order-item .price { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-item b { font-size: 0.95em; }
.order-item small { color: var(--muted); font-size: 0.8em; }
.order-item .price { color: var(--primary); font-weight: 700; }
.timeline { margin: 0.8em 1.1em; padding: 0.9em 1.2em; border-radius: 1.4em; background: var(--surface); list-style: none; }
.timeline li { position: relative; padding-block: 0.7em; padding-inline-start: 2.2em; color: var(--muted); }
.timeline li::before { content: ""; position: absolute; top: 1em; inset-inline-start: 0; width: 1em; height: 1em; border: 2px solid var(--line); border-radius: 50%; background: var(--surface); }
.timeline li:not(:last-child)::after { content: ""; position: absolute; top: 2em; bottom: -1em; inset-inline-start: calc(0.5em - 1px); width: 2px; background: var(--line); }
.timeline .done, .timeline .now { color: var(--ink); }
.timeline .done::before { border-color: var(--primary); background: var(--primary); }
.timeline .done:not(:last-child)::after { background: var(--primary); }
.timeline .now::before { border-color: var(--primary); box-shadow: 0 0 0 0.3em var(--soft); }
.timeline small { display: block; margin-top: 0.15em; color: var(--muted); font-size: 0.78em; }
.delivery-row { margin: 0 1.1em 0.6em; padding: 0.9em 1.2em; border-radius: 1.4em; background: var(--surface); font-size: 0.85em; }
.to-pay { display: flex; justify-content: space-between; gap: 0.6em; margin: 0 1.1em; padding: 0.9em 1.2em; border-radius: 1.4em; background: var(--soft); font-size: 0.9em; }
.to-pay b { color: var(--primary); white-space: nowrap; }

/* ---------- order your way: a panel on the textured wall, right after the promises strip ---------- */
#order { margin-top: 64px; }
.way { position: relative; overflow: clip; display: grid; gap: 32px; align-items: center; padding: clamp(24px, 4vw, 48px); border-radius: 28px;
  background: url("/img/wall.webp") center / cover; }
@media (min-width: 900px) { .way { grid-template-columns: auto 1fr; gap: 56px; padding-inline: 56px; } }
.way-art { justify-self: center; }
.way-art .phone { rotate: calc(-4deg * var(--dir)); }
.way-list { display: grid; gap: 20px; margin: 32px 0 0; padding: 0; list-style: none; }
.way-list li { display: grid; gap: 6px; align-content: start; }
.way-list .ic { margin-bottom: 8px; }
.way-list p { color: var(--muted); font-size: 14px; }
@media (min-width: 640px) {
  .way-list { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .way-list li { padding-inline: 20px; }
  .way-list li:first-child { padding-inline-start: 0; }
  .way-list li + li { border-inline-start: 1px solid rgba(110, 90, 80, 0.18); }
}

/* ---------- tracking: the four steps beside the order screen and the parcel ---------- */
.track { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .track { grid-template-columns: 0.85fr 1.15fr; } }
.checks { display: grid; gap: 16px; margin: 28px 0 0; padding: 0; list-style: none; }
.checks li { position: relative; display: grid; padding-inline-start: 46px; }
.checks li::before { content: ""; position: absolute; inset-inline-start: 0; top: 2px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--success) url("/check.svg") center / 55% no-repeat; }
.checks li:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: 14px; top: 34px; bottom: -14px; width: 2px; background: var(--success); }
.checks p { color: var(--muted); font-size: 14px; }
.track-art { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; }
.track-art .phone { z-index: 1; margin-inline-end: -48px; }
.box-photo { width: 100%; height: 100%; max-height: 520px; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow-soft); }
@media (max-width: 640px) { .track-art { grid-template-columns: 1fr; justify-items: center; } .track-art .phone { margin: 0 0 -80px; } .box-photo { max-height: 340px; } }

/* ---------- sellers: the near-black block with the sellers' website on a laptop ---------- */
.sellers { display: grid; gap: 40px; align-items: center; padding: clamp(28px, 4vw, 56px); border-radius: 28px; background: var(--dark); color: #fff; }
@media (min-width: 960px) { .sellers { grid-template-columns: 0.8fr 1.2fr; } }
.sellers .eyebrow { color: #F09A86; }
.sellers .lead { color: rgba(255, 255, 255, 0.75); }
.sellers a:focus-visible { outline-color: #fff; }
.laptop { position: relative; min-width: 0; max-width: 760px; justify-self: center; width: 100%; container: laptop / inline-size; }
.laptop-photo { width: 100%;
  -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent), linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, #000 82%, transparent), linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); mask-composite: intersect; }
/* the photo's screen, measured on laptop.webp (1196 × 780): the overview sits exactly in it and scales with the
   photo (container units), so it never reflows or stretches; the photo is never mirrored, so physical sides here */
.laptop-screen { position: absolute; left: 10.619%; top: 7.821%; width: 78.763%; height: 73.333%; overflow: clip; border-radius: 0.3cqw; background: var(--bg); }
/* Hanout Vendeur's overview (Aperçu) with example numbers: the menu, this month, to handle, the balance, the chart,
   pending orders, and best sellers. Sizes in em; the screen sets the base. */
.dash { display: grid; grid-template-columns: 9.5em 1fr; height: 100%; overflow: clip; background: var(--bg); color: var(--ink);
  font-size: 1.3cqw; line-height: 1.3; text-align: start; }
.dash-side { padding: 1.2em 0.8em; background: var(--surface); border-inline-end: 1px solid var(--line); }
.dash-logo { display: flex; align-items: center; gap: 0.5em; margin-bottom: 1.2em; padding-inline: 0.4em; font-weight: 800; font-size: 1.15em; }
.dash-logo img { width: 1.6em; height: 1.6em; }
.dash-nav { display: grid; gap: 0.2em; margin: 0; padding: 0; list-style: none; }
.dash-nav li { padding: 0.55em 0.7em; border-radius: 0.7em; color: var(--muted); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-nav .on { background: var(--soft); color: var(--primary); }
.dash-main { min-width: 0; padding: 1.4em; }
.dash-title { font-size: 1.6em; font-weight: 800; }
.dash-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8em; margin-top: 1em; }
.dash-card { min-width: 0; padding: 0.9em 1em; border-radius: 1em; background: var(--surface); box-shadow: 0 0.4em 1em -0.6em rgba(58, 31, 28, 0.3); }
.dash-card > small { display: block; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-card > b { display: block; margin-top: 0.15em; font-size: 1.45em; font-weight: 800; white-space: nowrap; }
.dash-card > em { display: block; color: var(--success); font-style: normal; font-weight: 700; font-size: 0.9em; }
.dash-chart { margin-top: 0.8em; }
.dash-chart svg { display: block; width: 100%; height: 6em; margin-top: 0.4em; }
.dash-head { display: flex; justify-content: space-between; gap: 1em; font-weight: 700; }
.dash-head span { color: var(--primary); font-size: 0.9em; }
.dash-lists { display: grid; grid-template-columns: 1.3fr 1fr; gap: 0.8em; margin-top: 0.8em; }
.dash-rows { margin: 0.5em 0 0; padding: 0; list-style: none; }
.dash-rows li { display: flex; align-items: center; gap: 0.6em; padding-block: 0.45em; border-top: 1px solid var(--line); }
.dash-rows li:first-child { border-top: 0; }
.dash-rows img { width: 2.4em; height: 2.4em; flex: none; border-radius: 0.6em; object-fit: cover; }
.dash-rows span { flex: 1; min-width: 0; }
.dash-rows b, .dash-rows small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-rows small { color: var(--muted); }
.badge { flex: none; padding: 0.2em 0.6em; border-radius: 99em; font-size: 0.85em; font-weight: 700; white-space: nowrap; }
.b-pending { background: var(--soft); color: var(--primary); }
.b-confirmed { background: var(--info-soft); color: var(--info); }
@container laptop (max-width: 520px) {
  .dash { grid-template-columns: 1fr; font-size: 2.05cqw; }
  .dash-side, .dash-best { display: none; }
  .dash-lists { grid-template-columns: 1fr; }
}

/* ---------- what sellers get: cards across the dark block, under the copy and the laptop ---------- */
.link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--primary); font-weight: 700; font-size: 15px; text-decoration: none; }
.link:hover { text-decoration: underline 2px; text-underline-offset: 5px; }
.link svg { width: 16px; height: 16px; }
.sell-feats-wrap { grid-column: 1 / -1; margin-top: 8px; padding-top: 36px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.sell-feats-wrap .h3 { color: #fff; }
.sell-feats { display: grid; gap: 14px; margin: 24px 0 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .sell-feats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .sell-feats { grid-template-columns: repeat(3, 1fr); } }
.sell-feat { display: grid; gap: 6px; align-content: start; padding: 22px; border-radius: 18px; background: rgba(255, 255, 255, 0.06); }
.sell-feat .ic { margin-bottom: 8px; background: rgba(240, 154, 134, 0.16); color: #F09A86; }
.sell-feat h4 { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.3; }
.sell-feat p { color: rgba(255, 255, 255, 0.72); font-size: 14px; }
.sell-feat .link { color: #F09A86; font-size: 14px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.pills span { padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); color: #fff; font-size: 12px; font-weight: 700; }

/* ---------- peace of mind: six buyer promises in cards ---------- */
.perks-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 14px 0 0; color: var(--muted); font-size: 14px; text-align: center; }
.perks-note svg { width: 18px; height: 18px; color: var(--primary); }
.feat-head { max-width: 40em; }
.feat-grid { display: grid; gap: 16px; margin: 32px 0 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .feat-grid { grid-template-columns: repeat(3, 1fr); } }
.feat { display: grid; gap: 6px; align-content: start; padding: 24px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-soft); }
.feat .ic { margin-bottom: 10px; }
.feat p { color: var(--muted); font-size: 15px; }

/* ---------- founders banner ---------- */
.founders { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; margin-top: clamp(40px, 6vw, 72px);
  padding: 32px clamp(24px, 5vw, 72px); border-radius: 24px; color: #fff;
  background:
    radial-gradient(circle at 0 50%, rgba(255, 255, 255, 0.08) 0 60px, transparent 61px),
    radial-gradient(circle at 100% 50%, rgba(255, 255, 255, 0.08) 0 60px, transparent 61px),
    linear-gradient(100deg, #9E2E25, #B5392D); }
.f-kicker { font-weight: 700; font-size: 15px; }
.founders h2 { margin-block: 4px; font-size: clamp(24px, 3vw, 32px); }
.f-small { color: rgba(255, 255, 255, 0.85); font-size: 14px; }
.founders a:focus-visible { outline-color: #fff; }

/* ---------- last call and footer ---------- */
.final { position: relative; display: grid; gap: 24px; align-items: center; margin-block: 48px; overflow: clip; border-radius: 28px; background: var(--panel); }
@media (min-width: 900px) { .final { grid-template-columns: 1.15fr 1fr; } .final .final-copy { padding-inline-end: 40px; } }
.final-left { width: 100%; height: 100%; max-height: 380px; object-fit: cover; object-position: 50% 45%; }  /* never mirrored: the box's logo would flip */
@media (min-width: 900px) {
  .final-left { -webkit-mask-image: linear-gradient(to left, transparent, #000 30%); mask-image: linear-gradient(to left, transparent, #000 30%); }
  [dir="rtl"] .final-left { -webkit-mask-image: linear-gradient(to right, transparent, #000 30%); mask-image: linear-gradient(to right, transparent, #000 30%); }
}
.final-copy { display: grid; justify-items: center; padding: 24px; text-align: center; }
.final-copy .brand { font-size: 22px; margin-bottom: 8px; }
.final-copy .lead { margin-inline: auto; }
.final-copy .actions { justify-content: center; }
.footer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 32px; padding-block: 24px max(32px, env(safe-area-inset-bottom)); color: var(--muted); font-size: 14px; }
.footer .brand { font-size: 20px; margin-inline-end: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 24px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }
.copy { font-size: 13px; }
@media (max-width: 719px) { .footer .brand { width: 100%; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* ---------- motion ----------
   Load: the hero settles in once. Scroll: each section's key object turns into place in 3D as it enters (view
   timelines), and the hero phone leans away as you leave it. Only transform and opacity animate; --dir mirrors
   horizontal motion in Arabic. Reduced motion, and browsers without scroll timelines (for the scroll part), get
   the static page. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } }
  @keyframes swing-in { from { opacity: 0; transform: perspective(1200px) translateY(70px) rotateY(calc(-32deg * var(--dir))) rotateX(14deg) scale(0.92); } }
  @keyframes pop { from { opacity: 0; transform: translateY(14px) scale(0.95); } }
  .hero-copy > * { animation: rise 700ms var(--ease-out) both; }
  .hero-copy > :nth-child(2) { animation-delay: 70ms; }
  .hero-copy > :nth-child(3) { animation-delay: 140ms; }
  .hero-copy > :nth-child(4) { animation-delay: 210ms; }
  .hero-art .phone { animation: swing-in 1100ms var(--ease-out) 150ms both; }
  .hero-art .pcard { animation: pop 500ms var(--ease-out) both; }
  .hero-art .pcard:nth-child(1) { animation-delay: 650ms; }
  .hero-art .pcard:nth-child(2) { animation-delay: 710ms; }
  .hero-art .pcard:nth-child(3) { animation-delay: 770ms; }
  .hero-art .pcard:nth-child(4) { animation-delay: 830ms; }
  .review-card { animation: pop 600ms var(--ease-out) 950ms both; }
  .hero-corner { animation: rise 900ms var(--ease-out) 100ms both; }

  @supports (animation-timeline: view()) {
    /* hero, on scroll out: the phone leans back and drifts up, the vase corner lags behind (depth) */
    @keyframes lean-away { to { transform: perspective(1200px) translateY(-70px) rotateX(16deg) scale(0.94); } }
    @keyframes lag { to { transform: translateY(60px); } }
    .hero-art { animation: lean-away linear both; animation-timeline: scroll(root); animation-range: 0 700px; }
    .hero-corner { animation: rise 900ms var(--ease-out) 100ms both, lag linear both; animation-timeline: auto, scroll(root); animation-range: normal, 0 700px; }

    /* shared entrance: fades and settles while the element's first third comes into view, then stays */
    @keyframes enter { from { opacity: 0; transform: translateY(32px); } }
    .perks li, .way-copy > :not(.way-list), .way-list li, .track > div:first-child > *, .sellers-copy > *,
    .perks-note, .feat-head > *, .sell-feats-wrap > :not(.sell-feats), .feat, .sell-feat, .final-copy > * {
      animation: enter var(--ease-out) both; animation-timeline: view(); animation-range: entry 10% cover 30%; }
    /* stagger siblings by starting each one a little later on the same scroll (cards by their column) */
    .perks li:nth-child(2), .way-list li:nth-child(2) { animation-range: entry 18% cover 34%; }
    .perks li:nth-child(3), .way-list li:nth-child(3) { animation-range: entry 26% cover 38%; }
    @media (min-width: 640px) { :is(.feat, .sell-feat):nth-child(2n) { animation-range: entry 18% cover 34%; } }
    @media (min-width: 1000px) {
      :is(.feat, .sell-feat):nth-child(n) { animation-range: entry 10% cover 30%; }
      :is(.feat, .sell-feat):nth-child(3n+2) { animation-range: entry 18% cover 34%; }
      :is(.feat, .sell-feat):nth-child(3n) { animation-range: entry 26% cover 38%; }
    }

    /* order your way: the panel rises and the product page turns toward you */
    @keyframes panel { from { opacity: 0; transform: translateY(40px) scale(0.97); } }
    .way { animation: panel var(--ease-out) both; animation-timeline: view(); animation-range: entry 0% cover 25%; }
    @keyframes turn-in { from { opacity: 0; transform: perspective(1200px) translateX(calc(-60px * var(--dir))) rotateY(calc(38deg * var(--dir))) rotateZ(calc(4deg * var(--dir))); } }
    .way-art .phone { animation: turn-in var(--ease-out) both; animation-timeline: view(); animation-range: entry 0% cover 45%; }

    /* tracking: the order screen swings in over the parcel, and the steps tick in one by one as you scroll */
    @keyframes swing-side { from { opacity: 0; transform: perspective(1200px) translateY(60px) rotateY(calc(-30deg * var(--dir))); } }
    .track-art .phone { animation: swing-side var(--ease-out) both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
    @keyframes parcel { from { opacity: 0; transform: translateY(40px) scale(1.06); } }
    .box-photo { animation: parcel var(--ease-out) both; animation-timeline: view(); animation-range: entry 0% cover 35%; }
    @keyframes tick { from { opacity: 0.25; transform: translateX(calc(-10px * var(--dir))); } }
    .checks li, .timeline li { animation: tick var(--ease-out) both; animation-timeline: view(); }
    .checks li:nth-child(1), .timeline li:nth-child(1) { animation-range: entry 40% cover 40%; }
    .checks li:nth-child(2), .timeline li:nth-child(2) { animation-range: cover 25% cover 45%; }
    .checks li:nth-child(3), .timeline li:nth-child(3) { animation-range: cover 32% cover 50%; }
    .checks li:nth-child(4), .timeline li:nth-child(4) { animation-range: cover 39% cover 55%; }

    /* sellers: the sellers' website opens up like a laptop lid */
    @keyframes lid { from { opacity: 0; transform: perspective(1400px) rotateX(-34deg) translateY(30px) scale(0.94); } }
    .laptop { transform-origin: 50% 100%; animation: lid var(--ease-out) both; animation-timeline: view(); animation-range: entry 10% cover 45%; }

    /* founders banner and last call lift into place */
    .founders, .final { animation: panel var(--ease-out) both; animation-timeline: view(); animation-range: entry 0% cover 25%; }
  }
}

/* ---------- motion, second pass: what happens inside the mockups ----------
   Once the laptop has opened, its screen fills in like a real dashboard loading: the cards rise one by one, the
   revenue line draws itself from the first day and the area under it rises, then the orders slide in. The buy
   sheet slides up over the product page, the tool and promise icons turn to face you, the founders banner tips up
   with one sweep of light, and the closing photo settles from a slow zoom. Same rules as above. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    /* dashboard: cards, then the chart, then the rows (each on its own view timeline, after the lid's range) */
    @keyframes card-in { from { opacity: 0; transform: translateY(14px) scale(0.96); } }
    .dash-card { animation: card-in var(--ease-out) both; animation-timeline: view(); animation-range: entry 60% cover 35%; }
    .dash-stats .dash-card:nth-child(2) { animation-range: entry 75% cover 38%; }
    .dash-stats .dash-card:nth-child(3) { animation-range: entry 90% cover 41%; }
    @keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
    .chart-line { stroke-dasharray: 1; animation: draw linear both; animation-timeline: view(); animation-range: cover 30% cover 52%; }
    @keyframes rise-area { from { opacity: 0; transform: scaleY(0); } }
    .chart-area { transform-box: fill-box; transform-origin: 50% 100%; animation: rise-area var(--ease-out) both; animation-timeline: view(); animation-range: cover 32% cover 55%; }
    @keyframes row-in { from { opacity: 0; transform: translateX(calc(-16px * var(--dir))); } }
    .dash-rows li { animation: row-in var(--ease-out) both; animation-timeline: view(); animation-range: cover 15% cover 32%; }
    .dash-rows li:nth-child(2) { animation-range: cover 19% cover 36%; }
    .dash-rows li:nth-child(3) { animation-range: cover 23% cover 40%; }
    @keyframes nav-in { from { opacity: 0; transform: translateX(calc(-10px * var(--dir))); } }
    .dash-nav li { animation: nav-in var(--ease-out) both; animation-timeline: view(); animation-range: entry 80% cover 40%; }

    /* the buy sheet slides up over the product page as the phone turns in, and the picked colour rings in */
    @keyframes sheet-up { from { transform: translateY(100%); } }
    @keyframes fade-in { from { opacity: 0; } }
    .bsheet { animation: sheet-up var(--ease-out) both; animation-timeline: view(); animation-range: cover 22% cover 45%; }
    .scrim { animation: fade-in linear both; animation-timeline: view(); animation-range: cover 22% cover 40%; }
    @keyframes ring { from { box-shadow: 0 0 0 0 var(--surface), 0 0 0 0 var(--ink); } }
    .sw.on { animation: ring var(--ease-out) both; animation-timeline: view(); animation-range: cover 40% cover 50%; }

    /* icons turn to face you, one after the other */
    @keyframes face { from { opacity: 0; transform: perspective(400px) rotateY(calc(-80deg * var(--dir))) scale(0.85); } }
    .perks .ic, .way-list .ic, .feat .ic, .sell-feat .ic { animation: face var(--ease-out) both; animation-timeline: view(); animation-range: entry 30% cover 40%; }
    :is(.perks, .way-list) li:nth-child(2) .ic, :is(.feat, .sell-feat):nth-child(3n+2) .ic { animation-range: entry 45% cover 45%; }
    :is(.perks, .way-list) li:nth-child(3) .ic, :is(.feat, .sell-feat):nth-child(3n) .ic { animation-range: entry 60% cover 50%; }

    /* founders banner: tips up from the table, then one sweep of light crosses it */
    .founders { position: relative; overflow: clip; transform-origin: 50% 100%; }
    @keyframes tip-up { from { opacity: 0; transform: perspective(1200px) rotateX(28deg) translateY(40px); } }
    .founders { animation: tip-up var(--ease-out) both; animation-timeline: view(); animation-range: entry 0% cover 30%; }
    .founders::after { content: ""; position: absolute; inset: 0; pointer-events: none;
      background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.22) 50%, transparent 65%); transform: translateX(-110%); }
    @keyframes sweep { to { transform: translateX(110%); } }
    .founders::after { animation: sweep linear both; animation-timeline: view(); animation-range: cover 30% cover 55%; }
    [dir="rtl"] .founders::after { scale: -1 1; }

    /* the closing photo settles from a slow zoom */
    @keyframes settle { from { transform: scale(1.18); } }
    .final-left { animation: settle linear both; animation-timeline: view(); animation-range: entry 0% cover 60%; }
  }
}
