/* =====================================================================
   Mémoire — storefront theme (ivory · burgundy · champagne gold)
   Loaded AFTER app.css on store pages only (home, product, info, auth,
   order, account). The dashboard and the memory page do not load it.
   ===================================================================== */
:root {
  --ivory: #F8F5F0; --cream-w: #FFFDF9; --burgundy: #4A1828; --burgundy-2: #5E2236;
  --blush: #E8B5BF; --gold: #C6A36A; --gold-deep: #A8864F; --gold-ink: #86672F;
  --ink: #30252A; --muted: #7B6E72;

  /* remap the shared variables used by app.css */
  --bg: var(--ivory); --bg2: var(--cream-w); --card: var(--cream-w); --card2: #fff;
  --line: rgba(74, 24, 40, .12); --line2: rgba(198, 163, 106, .55);
  --pink: var(--burgundy); --pink-d: var(--burgundy-2); --cream: var(--ink); --silver: #8A7C80;
  --ok: #2F7D52; --warn: #9A6A1A; --bad: #B3382F;
  --gold-d: var(--gold-deep); --wine: var(--burgundy);
  --display: 'Playfair Display', 'Times New Roman', serif;
  --serif: 'Playfair Display', 'Times New Roman', serif;
  --sans: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r: 14px;
  --shadow: 0 14px 40px rgba(74, 24, 40, .08);
  --shadow-s: 0 6px 18px rgba(74, 24, 40, .07);
}
[dir=rtl] {
  --display: 'Alexandria', 'Tajawal', system-ui, sans-serif;
  --serif: 'Alexandria', 'Tajawal', system-ui, sans-serif;
  --sans: 'Tajawal', 'Montserrat', system-ui, sans-serif;
}

body { background: var(--ivory); color: var(--ink); font-weight: 400; }
html { scroll-padding-top: 84px; }
h1, h2, h3, h4 { color: var(--burgundy); font-style: normal; font-weight: 500; letter-spacing: 0; }
h1, h2 { font-style: normal !important; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); line-height: 1.08; font-weight: 500; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); line-height: 1.15; font-weight: 500; }
h1 em, h2 em { font-style: italic; color: var(--gold-deep); font-weight: 400; }
[dir=rtl] h1 em, [dir=rtl] h2 em { font-style: normal; }
[dir=rtl] h1, [dir=rtl] h2, [dir=rtl] h3 { line-height: 1.45; font-weight: 500; }
a { color: var(--burgundy); }
.lead { color: var(--muted); font-size: 1.05rem; line-height: 1.75; }
.muted { color: var(--muted); }
.eyebrow { color: var(--gold-ink); font-size: .72rem; letter-spacing: .3em; font-weight: 500; }
[dir=rtl] .eyebrow { letter-spacing: .04em; font-size: .88rem; }
h2.center::after { background: linear-gradient(90deg, transparent, var(--gold), transparent); }
::selection { background: var(--blush); color: var(--burgundy); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- header ---------- */
#site-header { background: rgba(248, 245, 240, .92); border-bottom: 1px solid rgba(198, 163, 106, .35); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.hdr { height: 74px; gap: 30px; position: relative; }
.brand { font-family: var(--display); font-size: 1.6rem; font-weight: 600; letter-spacing: .04em; color: var(--burgundy); text-transform: none; }
[dir=rtl] .brand { letter-spacing: 0; }
.brand::first-letter { color: inherit; }
.nav { gap: 30px; margin-inline-start: 22px; }
.nav a { position: relative; color: var(--ink); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; padding-block: 8px; }
[dir=rtl] .nav a { letter-spacing: 0; text-transform: none; font-size: .95rem; }
.nav a::after { content: ''; position: absolute; inset-inline: 0; bottom: 2px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
[dir=rtl] .nav a::after { transform-origin: right; }
.nav a:hover { color: var(--burgundy); } .nav a:hover::after { transform: scaleX(1); }
.nav .nav-m { display: none; }
.hdr-r { gap: 6px; }
.lang-btn, .link-btn { color: var(--ink); font-size: .85rem; letter-spacing: .04em; }
.lang-btn:hover, .link-btn:hover { color: var(--gold-ink); }
.icon-link, .burger { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: var(--burgundy); background: none; border: 0; cursor: pointer; transition: background .2s; }
.icon-link:hover, .burger:hover { background: rgba(198, 163, 106, .18); }
.icon-link svg, .burger svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.burger { display: none; }

/* ---------- buttons ---------- */
.btn { border-radius: 6px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; padding: 14px 28px; }
[dir=rtl] .btn { letter-spacing: .02em; text-transform: none; font-size: .95rem; }
.btn-sm { padding: 10px 18px; font-size: .72rem; }
[dir=rtl] .btn-sm { font-size: .88rem; }
.btn-primary { background: var(--burgundy); color: var(--ivory); box-shadow: 0 8px 20px rgba(74, 24, 40, .2); }
.btn-primary:hover { background: var(--burgundy-2); box-shadow: 0 10px 24px rgba(74, 24, 40, .26); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--burgundy); border: 1px solid rgba(74, 24, 40, .35); }
.btn-ghost:hover { background: var(--burgundy); color: var(--ivory); border-color: var(--burgundy); }
.btn-gold { background: linear-gradient(135deg, #D8BC8A, var(--gold) 60%, #B8935A); color: var(--burgundy); box-shadow: 0 8px 22px rgba(0, 0, 0, .18); }
.btn-gold:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-ghost.danger, .btn.danger { color: var(--bad); }
.btn.busy::after { border-color: rgba(248, 245, 240, .35); border-top-color: var(--ivory); }
.btn-ghost.busy::after { border-color: rgba(74, 24, 40, .25); border-top-color: var(--burgundy); }

/* ---------- forms & shared components ---------- */
.field > span { color: var(--muted); font-size: .78rem; letter-spacing: .06em; font-weight: 500; }
input, textarea, select { background: #fff; color: var(--ink); border: 1px solid rgba(74, 24, 40, .18); border-radius: 8px; }
input:focus, textarea:focus, select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(198, 163, 106, .22); }
input::placeholder, textarea::placeholder { color: #a99ea1; }
input[type=date] { color-scheme: light; }
select option { background: #fff; color: var(--ink); }
input[type=checkbox], input[type=radio] { accent-color: var(--burgundy); }
.seg { background: #fff; border-color: rgba(74, 24, 40, .15); border-radius: 8px; }
.seg button { color: var(--muted); border-radius: 6px; }
.seg button.on { background: var(--burgundy); color: var(--ivory); }
.card, .tap-card, .product, .auth-card, .info-band { background: var(--cream-w); border: 1px solid rgba(198, 163, 106, .3); box-shadow: var(--shadow-s); }
.card, .auth-card { border-radius: 16px; }
.notice { background: rgba(232, 181, 191, .16); border-color: rgba(198, 163, 106, .5); color: var(--ink); }
.notice p { color: var(--muted); }
.notice.ok { background: rgba(47, 125, 82, .08); border-color: rgba(47, 125, 82, .4); color: var(--ok); }
.notice.bad { background: rgba(179, 56, 47, .07); border-color: rgba(179, 56, 47, .4); color: var(--bad); }
.badge { border-color: rgba(74, 24, 40, .2); color: var(--muted); }
.badge.pay-confirmed { color: var(--ok); border-color: rgba(47, 125, 82, .5); }
.badge.pay-pending_review, .badge.pay-awaiting_proof { color: var(--warn); border-color: rgba(154, 106, 26, .5); }
.badge.pay-rejected { color: var(--bad); border-color: rgba(179, 56, 47, .5); }
.skeleton { background: linear-gradient(100deg, #efe9e0 30%, #f8f3ec 50%, #efe9e0 70%); background-size: 200% 100%; }
.demo-banner { background: var(--burgundy); color: var(--blush); border: 0; }
.demo-banner .link-btn { color: var(--gold); }
.toast { background: var(--burgundy); color: var(--ivory); border: 1px solid var(--gold); box-shadow: 0 12px 30px rgba(74, 24, 40, .3); border-radius: 8px; }
.toast.ok { border-color: #7fc79c; } .toast.err { border-color: #e48a82; color: #ffe3df; }
.modal-wrap { background: rgba(48, 37, 42, .55); }
.modal { background: var(--cream-w); border-color: rgba(198, 163, 106, .5); }
.modal.phone-modal { background: #12060a; }
.modal-x { background: rgba(74, 24, 40, .08); color: var(--ink); }
.modal.phone-modal .modal-x { background: rgba(0, 0, 0, .45); color: #f6e9e4; }
.modal-x.static { background: rgba(74, 24, 40, .08); }
.spin { border-color: rgba(74, 24, 40, .2); border-top-color: var(--burgundy); }
.kv, .sum-row { border-top-color: rgba(74, 24, 40, .1); }
.ref { color: var(--gold-ink); border-color: rgba(198, 163, 106, .7); }
.stepper li { background: var(--cream-w); }
.stepper li.now { border-color: var(--gold); color: var(--burgundy); }
.stepper li.now i { background: var(--burgundy); color: var(--ivory); border-color: var(--burgundy); }
.stepper li.done i { background: rgba(47, 125, 82, .12); }
.sum-row.total { color: var(--gold-deep); }
.pay-opt { background: #fff; border-radius: 10px; } .pay-opt:has(input:checked) { border-color: var(--gold); background: rgba(232, 181, 191, .16); }
.tracker li i { background: var(--ivory); }
.cliq-steps { color: var(--muted); }
.copy-row { background: #fff; border-color: rgba(198, 163, 106, .5); }
.dropzone { background: #fff; border-color: rgba(198, 163, 106, .6); color: var(--muted); }
.dropzone:hover, .dropzone.over, .dropzone:focus-visible { background: rgba(232, 181, 191, .14); border-color: var(--gold); }
.dropzone svg { color: var(--gold-deep); }
.photo-item { background: #fff; }
.thumb { background: var(--ivory); } .thumb .num { background: rgba(74, 24, 40, .82); color: #fff; }
.icon-btn { border-color: rgba(74, 24, 40, .22); color: var(--ink); } .icon-btn:hover:not(:disabled) { border-color: var(--gold); color: var(--burgundy); }
.rec-live { background: #fff; } .rec-live .dot { background: #d9455a; }
.switch i { background: #fff; border-color: rgba(74, 24, 40, .25); } .switch i::after { background: #b7aaae; }
.switch input:checked + i { background: rgba(198, 163, 106, .3); border-color: var(--gold); } .switch input:checked + i::after { background: var(--burgundy); }
.preview-frame { background: #1f0a10; }
.auth-title { color: var(--burgundy); }
.order-head h1 { color: var(--burgundy); }

/* ---------- reveal ---------- */
.js-reveal .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js-reveal .reveal.in { opacity: 1; transform: none; }
.js-reveal .reveal.d1 { transition-delay: .1s; } .js-reveal .reveal.d2 { transition-delay: .2s; } .js-reveal .reveal.d3 { transition-delay: .3s; }

/* ---------- hero ---------- */
.hero-band { position: relative; overflow: hidden; background: radial-gradient(70% 90% at 80% 40%, rgba(232, 181, 191, .28), transparent 65%), var(--ivory); }
.hero { padding-block: 76px 70px; gap: 56px; }
.hero h1 { margin-bottom: .45em; font-size: clamp(2.3rem, 4.5vw, 3.6rem); }
.hero h1 span { display: block; }
.hero .lead { max-width: 480px; margin-bottom: 0; }
.cta-row { margin-top: 34px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 38px; padding-top: 22px; border-top: 1px solid rgba(198, 163, 106, .45); color: var(--muted); font-size: .82rem; }
.hero-meta li { list-style: none; display: flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 16px; height: 16px; stroke: var(--gold-deep); fill: none; stroke-width: 1.6; flex: none; }
.hero-meta { padding-inline-start: 0; margin-bottom: 0; }
.glow { width: 410px; height: 410px; background: none; filter: none; border: 1px solid rgba(198, 163, 106, .6); box-shadow: 0 0 0 40px rgba(232, 181, 191, .16), 0 0 0 41px rgba(198, 163, 106, .22); }
.phone { box-shadow: 0 34px 70px rgba(74, 24, 40, .32), inset 0 0 0 5px #1b0b11; border-color: #6a4551; }
.demo-cap { color: var(--gold-ink); font-weight: 500; }
.hero-visual { padding-bottom: 84px; }
.phone .dscr.on { pointer-events: auto; }
.phone .dbtn, .phone .dcard, .phone .ddots i { cursor: pointer; }
/* how-it-works scene inside the phone */
.dhow { width: 150px; height: 190px; margin: 6px 0 4px; }
.dhow svg { width: 100%; height: 100%; overflow: hidden; }
.hp-body { fill: #1a0a10; stroke: #6a4551; stroke-width: 2; }
.hp-ring { fill: none; stroke: #E8B5BF; stroke-width: 1.5; opacity: 0; transform-origin: 60px 52px; animation: hpRing 5.2s ease-out infinite; }
.hp-ring.r2 { animation-delay: .5s; }
.hp-chain { stroke: #C6A36A; stroke-width: 1.6; fill: none; }
.hp-heart { fill: #E8B5BF; stroke: #C6A36A; stroke-width: 1; }
.hp-pend { animation: hpMove 5.2s ease-in-out infinite; }
@keyframes hpMove { 0%, 12% { transform: translate(30px, 62px) rotate(12deg); } 38%, 70% { transform: translate(0, 0) rotate(0); } 100% { transform: translate(30px, 62px) rotate(12deg); } }
@keyframes hpRing { 0%, 36% { opacity: 0; transform: scale(.6); } 42% { opacity: .9; } 78%, 100% { opacity: 0; transform: scale(3.2); } }
.demo-ctrl { position: absolute; inset-inline: 0; bottom: 34px; display: flex; align-items: center; justify-content: center; gap: 8px; z-index: 3; }
.dc-arrow, .dc-play { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(198, 163, 106, .6); background: var(--cream-w); color: var(--burgundy); display: grid; place-items: center; cursor: pointer; padding: 0; transition: background .2s, color .2s; }
.dc-arrow:hover, .dc-play:hover { background: var(--burgundy); color: var(--ivory); }
.dc-arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[dir=rtl] .dc-arrow svg { transform: scaleX(-1); }
.dc-play::before { content: ''; width: 10px; height: 12px; border-inline: 3px solid currentColor; }
.dc-play.paused::before { border: 0; border-block: 6px solid transparent; border-inline-start: 10px solid currentColor; border-inline-end: 0; width: 0; height: 0; margin-inline-start: 2px; }
.dc-tabs { display: flex; gap: 6px; }
.dc-tabs button { border: 1px solid rgba(198, 163, 106, .5); background: transparent; color: var(--muted); border-radius: 999px; padding: 7px 11px; font: 500 .68rem var(--sans); letter-spacing: .04em; cursor: pointer; white-space: nowrap; transition: .2s; }
[dir=rtl] .dc-tabs button { font-size: .8rem; }
.dc-tabs button.on { background: var(--burgundy); color: var(--ivory); border-color: var(--burgundy); }
.dc-arrow:focus-visible, .dc-play:focus-visible, .dc-tabs button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* the phone shows the real (dark) memory page, so keep its own palette */
.phone, .tap-svg {
  --bg: #1f0a10; --bg2: #280d15; --card: #2f1019; --line: rgba(232, 160, 176, .18); --line2: rgba(232, 160, 176, .32);
  --pink: #e8a0b0; --cream: #f6e9e4; --muted: #b89aa2; --gold: #dcbf94; --silver: #d9d9df;
  --display: 'Cormorant', 'Cormorant Garamond', 'Times New Roman', serif; --serif: 'Cormorant Garamond', 'Cormorant', serif; --sans: 'Jost', system-ui, sans-serif;
  color: #f6e9e4;
}
[dir=rtl] .phone { --display: 'Amiri', 'Cormorant', serif; --serif: 'Amiri', 'Cormorant Garamond', serif; --sans: 'Tajawal', 'Jost', sans-serif; }
.phone h3, .phone h4 { color: #f6e9e4; }
.phone .dscr p { color: #ead6d3; }

/* ---------- section scaffolding ---------- */
.section { padding-block: 92px; }
.band { width: 100%; }
.band-cream { background: var(--cream-w); border-block: 1px solid rgba(198, 163, 106, .22); }
.band-burgundy { background: var(--burgundy); color: var(--ivory); }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 54px; }
.sec-head .lead { margin: 14px auto 0; max-width: 520px; }

/* ---------- collection ---------- */
.product-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 320px)); gap: 26px; margin-top: 0; }
.product { border-radius: 14px; overflow: hidden; transition: transform .35s ease, box-shadow .35s ease, border-color .35s; }
.product:hover { transform: translateY(-6px); box-shadow: 0 22px 48px rgba(74, 24, 40, .13); border-color: rgba(198, 163, 106, .7); }
.product-img { aspect-ratio: 4 / 5; background: #efe9e0; position: relative; display: block; overflow: hidden; }
.product-img img { transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.product:hover .product-img img { transform: scale(1.06); }
.ph-img { background: radial-gradient(circle at 30% 25%, #f3dfe3, #efe6dc 70%); }
.ph-img span { color: var(--gold-deep); opacity: .8; font-family: var(--display); font-style: italic; }
.product-body { padding: 22px 22px 24px; }
.product-body h3 { font-size: 1.18rem; line-height: 1.3; margin-bottom: 8px; }
.product-body h3 a { color: inherit; text-decoration: none; }
.product-body p { color: var(--muted); font-size: .88rem; line-height: 1.7; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.price { color: var(--gold-deep); font-size: 1.5rem; font-weight: 500; display: block; margin-bottom: 14px; }
.product-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.product-actions .btn { padding-inline: 10px; }
.info-band { background: transparent; box-shadow: none; border: 0; border-top: 1px solid rgba(198, 163, 106, .4); border-radius: 0; margin-top: 64px; padding: 34px 0 0; }
.info-band div { align-items: center; text-align: center; }
.info-band b { color: var(--burgundy); font-family: var(--display); font-size: 1.1rem; }
.info-band span { color: var(--muted); }

/* ---------- how it works ---------- */
.how-steps { list-style: none; padding: 0; margin: 0 auto; max-width: 1000px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; --gap: 40px; }
.how-steps li { position: relative; text-align: center; }
.how-steps li:not(:last-child)::after { content: ''; position: absolute; top: 36px; inset-inline-start: calc(50% + 46px); width: calc(100% + var(--gap) - 92px); height: 1px; background: repeating-linear-gradient(90deg, var(--gold) 0 6px, transparent 6px 13px); }
.how-ic { width: 72px; height: 72px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; background: var(--cream-w); border: 1px solid rgba(198, 163, 106, .7); box-shadow: 0 0 0 7px rgba(232, 181, 191, .18); }
.how-ic svg, .why-ic svg { width: 30px; height: 30px; fill: none; stroke: var(--gold-deep); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.how-steps small { display: block; color: var(--gold-ink); letter-spacing: .3em; font-size: .7rem; font-weight: 500; margin-bottom: 6px; }
.how-steps h3 { font-size: 1.2rem; margin-bottom: 8px; letter-spacing: .06em; }
[dir=rtl] .how-steps small { letter-spacing: .05em; font-size: .82rem; }
.how-steps p { color: var(--muted); font-size: .92rem; line-height: 1.75; margin: 0 auto; max-width: 280px; }
.tap-block { margin-top: 86px; padding-top: 70px; border-top: 1px solid rgba(198, 163, 106, .35); }
.tap-block.first { margin-top: 0; padding-top: 0; border-top: 0; }
.tap-block h3 { font-size: clamp(1.5rem, 3vw, 2rem); text-align: center; }
.tap-grid { margin-top: 34px; }
.tap-card { border-radius: 16px; }
.tap-card h3 { font-size: 1.1rem; }
.tap-card p { color: var(--muted); }
.ph-body { fill: #1c0c12; stroke: #8a6a73; } .ph-screen { fill: #2a0f18; }
.ring { stroke: var(--gold); stroke-width: 1.6; }
.chain { stroke: #8A7C80; } .heart { fill: #dfe0e6; stroke: #8A7C80; stroke-width: .8; }
.tap-svg .ring { stroke: #C6A36A; }

/* ---------- why choose ---------- */
.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 34px 28px; }
.why > div { text-align: center; padding: 6px 6px; }
.why-ic { width: 56px; height: 56px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(198, 163, 106, .6); }
.why h3 { font-size: .86rem; letter-spacing: .14em; text-transform: uppercase; font-family: var(--sans); font-weight: 600; margin-bottom: 8px; }
[dir=rtl] .why h3 { letter-spacing: 0; text-transform: none; font-size: 1.02rem; font-family: var(--display); }
.why p { color: var(--muted); font-size: .88rem; line-height: 1.7; margin: 0; }


/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid rgba(198, 163, 106, .45); }
.faq details:first-child { border-top: 1px solid rgba(198, 163, 106, .45); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 4px; font-family: var(--display); font-size: 1.12rem; color: var(--burgundy); transition: color .2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--gold-ink); }
.faq summary::after { content: '+'; flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(198, 163, 106, .7); display: grid; place-items: center; font-family: var(--sans); font-size: 1.1rem; line-height: 1; color: var(--gold-deep); transition: transform .3s, background .3s; }
.faq details[open] summary::after { content: '−'; background: var(--burgundy); color: var(--ivory); border-color: var(--burgundy); }
.faq .ans { padding: 0 4px 24px; color: var(--muted); font-size: .95rem; line-height: 1.8; max-width: 680px; animation: ansIn .4s ease; }
@keyframes ansIn { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- footer ---------- */
#site-footer { background: var(--burgundy); color: rgba(248, 245, 240, .8); margin-top: 0; }
.foot-in { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 44px; padding-block: 72px 46px; }
.foot-in .brand { color: var(--ivory); font-size: 1.4rem; display: inline-block; margin-bottom: 14px; }
.foot-tag { font-family: var(--display); font-style: italic; color: rgba(248, 245, 240, .78); font-size: 1.05rem; line-height: 1.6; max-width: 300px; margin: 0 0 22px; }
[dir=rtl] .foot-tag { font-style: normal; }
.foot-in h4 { font-family: var(--sans); color: var(--gold); font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; font-weight: 600; margin: 0 0 18px; }
[dir=rtl] .foot-in h4 { letter-spacing: .02em; text-transform: none; font-size: .95rem; font-family: var(--display); }
.foot-in ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.foot-in a { color: rgba(248, 245, 240, .8); text-decoration: none; font-size: .9rem; transition: color .2s; }
.foot-in a:hover { color: var(--gold); }
.socials { display: flex; gap: 10px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(198, 163, 106, .55); display: grid; place-items: center; color: var(--gold); transition: background .25s, color .25s; }
.socials a:hover { background: var(--gold); color: var(--burgundy); }
.socials svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.foot-bottom { border-top: 1px solid rgba(198, 163, 106, .28); padding-block: 22px; font-size: .8rem; color: rgba(248, 245, 240, .6); text-align: center; letter-spacing: .04em; }

/* ---------- product page ---------- */
.pd { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding-block: 44px 90px; align-items: start; }
.pd-back { display: inline-flex; gap: 8px; align-items: center; text-decoration: none; color: var(--muted); font-size: .85rem; margin: 30px 0 0; }
.pd-back:hover { color: var(--burgundy); }
.pd-img { position: relative; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; border: 1px solid rgba(198, 163, 106, .5); box-shadow: var(--shadow); background: #efe9e0; }
.pd-img::after { content: ''; position: absolute; inset: 12px; border: 1px solid rgba(198, 163, 106, .5); border-radius: 8px; pointer-events: none; }
.pd-img img { width: 100%; height: 100%; object-fit: cover; }
.pd-info h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 12px; }
.pd-price { color: var(--gold-deep); font-family: var(--display); font-size: 1.9rem; margin: 0 0 22px; font-variant-numeric: lining-nums; }
.pd-desc p { color: var(--muted); line-height: 1.85; font-size: 1rem; margin-bottom: 1em; }
.pd-feats { list-style: none; margin: 26px 0 30px; padding: 22px 0; border-block: 1px solid rgba(198, 163, 106, .4); display: grid; gap: 12px; }
.pd-feats li { display: flex; align-items: center; gap: 12px; font-size: .92rem; }
.pd-feats svg { width: 18px; height: 18px; stroke: var(--gold-deep); fill: none; stroke-width: 1.8; flex: none; }
.pd-note { color: var(--muted); font-size: .85rem; margin: 16px 0 0; }

/* ---------- info page ---------- */
.prose { max-width: 760px; padding-block: 48px 90px; }
.prose h1 { margin-bottom: .3em; }
.prose h2 { font-size: 1.7rem; margin-top: 2.2em; padding-top: 1.4em; border-top: 1px solid rgba(198, 163, 106, .4); }
.prose h2:first-of-type { border-top: 0; }
.prose p, .prose li { color: var(--muted); line-height: 1.85; }
.prose ul { padding-inline-start: 20px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .burger { display: grid; }
  .hdr { height: 66px; gap: 10px; }
  .hdr-r { margin-inline-start: auto; }
  .hdr-signin { display: none; }
  .nav { display: none; position: absolute; inset-inline: 0; top: 100%; margin: 0; flex-direction: column; gap: 0; background: var(--ivory); padding: 8px 20px 18px; border-bottom: 1px solid rgba(198, 163, 106, .4); box-shadow: 0 18px 30px rgba(74, 24, 40, .1); }
  .nav.open { display: flex; }
  .nav a { padding: 15px 4px; border-bottom: 1px solid rgba(74, 24, 40, .07); font-size: .8rem; }
  .nav a::after { display: none; }
  .nav .nav-m { display: block; }
  .hero { grid-template-columns: 1fr; padding-block: 40px 40px; gap: 18px; text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero-meta { justify-content: center; }
  .hero-visual { min-height: 570px; margin-top: 8px; }
  .dc-tabs button { padding: 6px 8px; font-size: .62rem; }
  .dc-arrow, .dc-play { width: 30px; height: 30px; }
  .demo-ctrl { gap: 5px; }
  .glow { width: 330px; height: 330px; box-shadow: 0 0 0 28px rgba(232, 181, 191, .16); }
  .section { padding-block: 64px; }
  .sec-head { margin-bottom: 38px; }
  .how-steps { grid-template-columns: 1fr; gap: 38px; max-width: 420px; }
  .how-steps li:not(:last-child)::after { display: none; }
  .foot-in { grid-template-columns: 1fr 1fr; gap: 36px 24px; padding-block: 52px 30px; }
  .foot-in > div:first-child { grid-column: 1 / -1; }
  .pd { grid-template-columns: 1fr; gap: 28px; padding-block: 24px 60px; }
}
@media (max-width: 560px) {
  .tap-grid { grid-template-columns: 1fr 1fr !important; gap: 12px; }
  .tap-card { padding: 16px 10px 18px; border-radius: 12px; }
  .tap-card .tap-svg { width: 96px; height: 144px; margin-bottom: 8px; }
  .tap-card h3 { font-size: .98rem; }
  .tap-card p { font-size: .76rem; line-height: 1.6; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 12px; max-width: none; }
  .product { border-radius: 10px; }
  .product-body { padding: 12px 12px 14px; }
  .product-body h3 { font-size: .92rem; margin-bottom: 6px; }
  .product-body p { font-size: .76rem; line-height: 1.55; margin-bottom: 10px; -webkit-line-clamp: 2; }
  .price { font-size: 1.1rem; margin-bottom: 10px; }
  .product-actions { grid-template-columns: 1fr; gap: 6px; }
  .product-actions .btn { padding: 10px 6px; font-size: .66rem; letter-spacing: .08em; }
  [dir=rtl] .product-actions .btn { font-size: .8rem; }
  .why { grid-template-columns: 1fr 1fr; gap: 28px 14px; }
  .faq summary { font-size: 1rem; }
  .info-band { grid-template-columns: 1fr; gap: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal { opacity: 1; transform: none; transition: none; }
  .product:hover, .product:hover .product-img img { transform: none; }
}
.foot-in.foot-3 { grid-template-columns: 1.6fr 1fr 1fr; }
@media (max-width: 900px) { .foot-in.foot-3 { grid-template-columns: 1fr 1fr; } }

/* audio picker in the editor */
.audio-pick { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.audio-pick .btn { display: inline-flex; align-items: center; gap: 8px; }
.audio-kind { font-weight: 600; color: var(--burgundy); margin: 0 0 6px; font-size: .9rem; }

/* gallery + discount */
.pd-gallery { position: relative; }
.pd-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pd-thumbs button { width: 68px; height: 68px; padding: 0; border-radius: 10px; overflow: hidden; border: 1px solid rgba(198, 163, 106, .4); background: #efe9e0; cursor: pointer; opacity: .75; transition: .2s; }
.pd-thumbs button.on, .pd-thumbs button:hover { opacity: 1; border-color: var(--gold-deep); box-shadow: 0 0 0 2px rgba(198, 163, 106, .35); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.old-price { color: var(--muted); font-weight: 400; font-size: .72em; margin-inline-start: 8px; text-decoration-thickness: 1px; }
.cancelled-tag { display: inline-block; margin: 10px 0 0; padding: 6px 14px; border: 1px solid rgba(179, 56, 47, .5); color: var(--bad); border-radius: 999px; font-size: .86rem; }
.deliv-date { margin-top: 18px; display: block; } .deliv-date input { max-width: 100%; }

/* Arabic wordmark: ميموار in a refined naskh face */
[dir=rtl] .brand, [dir=rtl] .ad-hdr .brand { font-family: 'Amiri', 'Alexandria', serif; font-weight: 700; letter-spacing: 0; font-size: 1.95rem; line-height: 1; }
[dir=rtl] .foot .brand, [dir=rtl] .foot-in .brand { font-size: 2.1rem; }
.no-caps { text-transform: none !important; letter-spacing: .08em !important; }
[dir=rtl] .no-caps { font-family: 'Amiri', serif; letter-spacing: 0 !important; font-size: 1.15rem; font-weight: 700; }

/* hero demo: the voice bar really plays */
.dvoice[role=button]{cursor:pointer}
.dvoice.playing .dplay::after{inset-inline-start:7px;inset-block-start:7px;width:3px;height:10px;border:0;border-left:3px solid #3a0f1c;border-right:3px solid #3a0f1c;box-sizing:content-box;width:2px}
.dvoice.playing .dbar u{transition:width .25s linear}
