/* Bquick247 — the home page. Composed like the templates of the Saudi National Day identity guideline (p51–61): a
   wordmark panel, a value-colour panel carrying the value's square main icon tile (p24–25), a woven Sadu panel and a
   deep panel, with the patterns used as frames and strips. Colours come only from the design tokens (designs.css), so
   all 20 designs and the four surfaces (glass, neo, material, flat) apply; the surface-specific touches are at the end. */

/* ═══════════ the page frame ═══════════ */
.home-page {
  --home-radius: 22px;
  --home-radius-small: 14px;
  --home-gap: clamp(0.75rem, 1.6vw, 1.1rem);
  --home-section-space: clamp(3rem, 8vw, 5.5rem);
  --home-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --home-value-tile: url("/brand/national/nd96-v-giving.webp");
  --home-sadu: url("/brand/national/nd96-sadu.svg");
  --home-border-strip: url("/brand/national/nd96-border.svg");
  padding-top: 1rem;
}
html[data-surface="neo"] .home-page { --home-radius: 26px; --home-radius-small: 18px; }
html[data-surface="material"] .home-page { --home-radius: 14px; --home-radius-small: 10px; }
html[data-surface="flat"] .home-page { --home-radius: 6px; --home-radius-small: 4px; }

/* each design shows the main icon tile of its own value (p25); the purple «الجود» is the default */
html[data-design^="vision"] .home-page { --home-value-tile: url("/brand/national/nd96-v-vision.webp"); }
html[data-design^="courage"] .home-page { --home-value-tile: url("/brand/national/nd96-v-courage.webp"); }
html[data-design^="determination"] .home-page { --home-value-tile: url("/brand/national/nd96-v-determination.webp"); }
html[data-design^="authenticity"] .home-page,
html[data-design^="sadu"] .home-page { --home-value-tile: url("/brand/national/nd96-v-authenticity.webp"); }
html[data-design^="generosity"] .home-page { --home-value-tile: url("/brand/national/nd96-v-generosity.webp"); }

/* a 2×2 woven pixel, the smallest unit of the identity's square grid (p24) */
.home-pixel-mark {
  flex: none; display: inline-block; width: 12px; height: 12px;
  background: conic-gradient(var(--primary) 25%, transparent 0 50%, var(--gold) 0 75%, transparent 0) 0 0 / 6px 6px;
}

.home-arrow { width: 1.15em; height: 1.15em; flex: none; transition: transform 0.35s var(--home-ease); }
[dir="rtl"] .home-arrow { transform: scaleX(-1); }
a:hover > .home-arrow { transform: translateX(3px); }
[dir="rtl"] a:hover > .home-arrow { transform: scaleX(-1) translateX(3px); }

/* ═══════════ entrance (once, on load) and reveal (on scroll) ═══════════ */
@keyframes homeRise {
  from { opacity: 0; transform: translateY(22px) scale(0.985); }
  to { opacity: 1; transform: none; }
}
.home-rise { animation: homeRise 0.9s var(--home-ease) both; animation-delay: calc(var(--entrance-order, 0) * 110ms + 80ms); }

.home-reveal-ready .home-section { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--home-ease), transform 0.8s var(--home-ease); }
.home-reveal-ready .home-section.is-revealed { opacity: 1; transform: none; }

/* ═══════════ hero: the template composition ═══════════ */
.home-hero { display: grid; gap: var(--home-gap); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-hero-panel { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--home-radius); min-width: 0; }
.home-hero-intro { grid-column: 1 / -1; }
.home-hero-value { grid-column: 1 / -1; }
.home-hero-weave { grid-column: 1 / 2; }
.home-hero-trust { grid-column: 2 / 3; }

/* the wordmark panel */
.home-page .home-hero-intro {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  padding: clamp(1.6rem, 5.5vw, 3.6rem) clamp(1.25rem, 5vw, 3.5rem);
}
/* a corner of Sadu weave in the design's colours, fading into the panel */
.home-hero-intro::before {
  content: ""; position: absolute; z-index: -1; inset-block-end: 0; inset-inline-end: 0; width: min(70%, 30rem); aspect-ratio: 1;
  background: linear-gradient(135deg, var(--primary), var(--gold)); opacity: 0.38; pointer-events: none;
  -webkit-mask: var(--home-sadu) 0 0 / 92px auto repeat, radial-gradient(circle at 100% 100%, #000 0%, transparent 68%);
  -webkit-mask-composite: source-in;
  mask: var(--home-sadu) 0 0 / 92px auto repeat, radial-gradient(circle at 100% 100%, #000 0%, transparent 68%);
  mask-composite: intersect;
}
[dir="rtl"] .home-hero-intro::before {
  -webkit-mask: var(--home-sadu) 0 0 / 92px auto repeat, radial-gradient(circle at 0% 100%, #000 0%, transparent 68%);
  -webkit-mask-composite: source-in;
  mask: var(--home-sadu) 0 0 / 92px auto repeat, radial-gradient(circle at 0% 100%, #000 0%, transparent 68%);
  mask-composite: intersect;
}
.home-hero-intro::after {
  content: ""; position: absolute; z-index: -2; inset: 0; pointer-events: none;
  background: radial-gradient(60% 70% at 0% 0%, var(--primary-glow), transparent 70%);
}
[dir="rtl"] .home-hero-intro::after { background: radial-gradient(60% 70% at 100% 0%, var(--primary-glow), transparent 70%); }

.home-eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.42rem 0.95rem; border-radius: 999px;
  background: var(--primary-glow); border: 1px solid var(--glass-border);
  color: var(--primary-light); font-weight: 600; font-size: 0.92rem; letter-spacing: 0.01em; line-height: 1.4;
}
html[data-theme="light"] .home-eyebrow { color: var(--primary-dark); }

.home-wordmark { margin: clamp(0.9rem, 2.5vw, 1.4rem) 0 0.5rem; font-family: var(--font-heading); font-weight: 700;
  font-size: clamp(3.4rem, 16vw, 6.6rem); line-height: 1.08; letter-spacing: 0; }
.home-wordmark .brand-wordmark {
  display: inline-block; padding-block: 0.06em 0.1em; font-weight: 700;
  background-image: linear-gradient(110deg, var(--primary-light) 0%, var(--primary) 32%, var(--gold) 50%, var(--primary) 68%, var(--primary-light) 100%);
  background-size: 220% 100%; background-position: 100% 0;
  animation: homeWordmarkSweep 2.6s 0.5s var(--home-ease) both;
}
html[data-theme="light"] .home-wordmark .brand-wordmark {
  background-image: linear-gradient(110deg, var(--primary-dark) 0%, var(--primary) 32%, var(--gold) 50%, var(--primary) 68%, var(--primary-dark) 100%);
}
@keyframes homeWordmarkSweep { from { background-position: 100% 0; } to { background-position: 0% 0; } }

.home-tagline { text-wrap: pretty; max-width: 34rem; color: var(--text-secondary); font-size: clamp(1.06rem, 2.4vw, 1.3rem); line-height: 1.8; }
.home-hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: clamp(1.4rem, 3.5vw, 2rem); }
.home-hero-actions .btn, .home-finale-actions .btn { min-height: 3.25rem; padding: 0.8rem 1.6rem; font-size: 1.02rem; }

/* the value panel: the value colour with white text and the value's main icon tile (p51–61) */
.home-hero-value {
  display: flex; flex-direction: column; justify-content: space-between; gap: 1.75rem; min-height: 15.5rem;
  padding: clamp(1.3rem, 3vw, 1.9rem); color: var(--on-primary);
  background: linear-gradient(155deg, var(--primary) 0%, var(--primary) 45%, var(--primary-dark) 140%);
  box-shadow: 0 22px 48px -18px var(--primary-shadow);
}
.home-hero-value::before {
  content: ""; position: absolute; z-index: -1; inset: 0; background: currentColor; opacity: 0.1; pointer-events: none;
  -webkit-mask: var(--home-sadu) 0 0 / 92px auto repeat, linear-gradient(200deg, #000 0%, transparent 62%);
  -webkit-mask-composite: source-in;
  mask: var(--home-sadu) 0 0 / 92px auto repeat, linear-gradient(200deg, #000 0%, transparent 62%);
  mask-composite: intersect;
}
.home-value-tile {
  display: block; width: 96px; height: 96px; flex: none; image-rendering: pixelated;
  background: var(--home-value-tile) center / 100% 100% no-repeat;
  outline: 2px solid currentColor;
  outline: 2px solid color-mix(in srgb, currentColor 45%, transparent); outline-offset: 5px;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.45);
}
.home-value-statement { font-family: var(--font-heading); font-weight: 700; font-size: clamp(1.35rem, 2.3vw, 1.85rem); line-height: 1.4; max-width: 20ch; text-wrap: balance; }

/* the woven panel: the identity's Sadu as a field, the platform's hours on a plate */
.home-hero-weave {
  display: grid; place-items: center; min-height: 12.5rem; padding: 1rem;
  background: radial-gradient(circle at 50% 50%, var(--primary-glow), transparent 70%), var(--bg-bottom);
}
/* the Sadu weave of the identity (p24), threaded in the design's two colours */
.home-hero-weave::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.75;
  background: linear-gradient(150deg, var(--primary-light), var(--primary) 45%, var(--gold));
  -webkit-mask: var(--home-sadu) center / 92px auto repeat; mask: var(--home-sadu) center / 92px auto repeat;
}
.home-hero-weave::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, var(--bg-bottom) 0%, transparent 70%); opacity: 0.85;
}
.home-weave-plate {
  display: flex; flex-direction: column; align-items: center; gap: 0.15rem; padding: 0.85rem 0.95rem; text-align: center; max-width: 100%;
  background: var(--bg-mid); border: 1px solid var(--glass-border); border-radius: var(--home-radius-small);
  box-shadow: 0 16px 32px -12px var(--shadow-dark);
}
.home-weave-number { font-family: var(--font-heading); font-weight: 700; font-size: clamp(2rem, 6vw, 2.7rem); line-height: 1.1; color: var(--gold); direction: ltr; }
.home-weave-label { font-size: 0.84rem; font-weight: 600; color: var(--text-secondary); line-height: 1.45; text-wrap: balance; }

/* the deep panel: where the data lives */
.home-hero-trust {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 0.45rem; min-height: 12.5rem;
  padding: 2.6rem clamp(1rem, 2.5vw, 1.4rem) clamp(1rem, 2.5vw, 1.4rem);
  background: var(--primary-dark);
  background: linear-gradient(160deg, var(--primary-dark), color-mix(in srgb, var(--primary-dark) 70%, #000)); color: #fff;
}
.home-hero-trust::before {
  content: ""; position: absolute; inset-block-start: 1.1rem; inset-inline: clamp(1rem, 2.5vw, 1.4rem); height: 14px;
  background: rgba(255, 255, 255, 0.28); pointer-events: none;
  -webkit-mask: var(--home-border-strip) repeat-x 0 50% / auto 14px; mask: var(--home-border-strip) repeat-x 0 50% / auto 14px;
}
.home-trust-icon { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; margin-bottom: auto; margin-top: 0.9rem;
  border: 1.5px solid rgba(255, 255, 255, 0.35); border-radius: var(--home-radius-small); }
.home-trust-icon svg { width: 1.3rem; height: 1.3rem; }
.home-trust-title { font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; line-height: 1.3; }
.home-trust-text { font-size: 0.86rem; line-height: 1.65; color: rgba(255, 255, 255, 0.78); }

/* ═══════════ the notice while the platform is being prepared ═══════════ */
.home-notice:empty { display: none; }
.home-notice { display: flex; justify-content: center; margin-top: 1.25rem; }
.home-notice .notice {
  display: inline-flex; align-items: center; gap: 0.6rem; margin: 0; padding: 0.55rem 1.1rem; border-radius: 999px; font-size: 0.92rem;
  background: var(--glass); color: var(--text-secondary); text-align: center;
}
.home-notice .notice::before {
  content: ""; flex: none; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 0 0 var(--gold); animation: homePulse 2.2s ease-out infinite;
}
@keyframes homePulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--gold) 55%, transparent); }
  80%, 100% { box-shadow: 0 0 0 9px transparent; }
}

/* ═══════════ sections and their heads ═══════════ */
.home-section { margin-top: var(--home-section-space); }
.home-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 0.5rem 1.25rem; flex-wrap: wrap; margin-bottom: 0.85rem; }
.home-section-heading { display: flex; flex-direction: column; gap: 0.45rem; min-width: 0; }
.home-section-kicker { display: inline-flex; align-items: center; gap: 0.55rem; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em;
  color: var(--primary-light); }
html[data-theme="light"] .home-section-kicker { color: var(--primary); }
.home-page .home-section-title { text-wrap: balance; margin: 0; font-family: var(--font-heading); font-size: clamp(1.65rem, 4.2vw, 2.45rem); line-height: 1.25; color: var(--text-primary); }
.home-section-intro { color: var(--text-secondary); max-width: 38rem; line-height: 1.75; }
.home-section-link {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.5rem 0.95rem; border-radius: 999px; white-space: nowrap;
  color: var(--primary-light); font-weight: 600; text-decoration: none; border: 1px solid var(--glass-border); background: var(--glass);
  transition: border-color 0.3s, background 0.3s;
}
html[data-theme="light"] .home-section-link { color: var(--primary); }
.home-section-link:hover { border-color: var(--primary); background: var(--primary-glow); }
.home-section-strip {
  height: 1px; background: var(--glass-border); margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
}

/* ═══════════ the platform in numbers (only once there is something to count) ═══════════ */
.home-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--home-gap); }
.home-stat { display: flex; flex-direction: column; gap: 0.3rem; padding: clamp(1.1rem, 3vw, 1.6rem); position: relative; overflow: hidden; }
.home-stat-value { font-family: var(--font-heading); font-weight: 700; font-size: clamp(2.1rem, 6vw, 3rem); line-height: 1.05; color: var(--gold); direction: ltr; text-align: start; }
[dir="rtl"] .home-stat-value { text-align: end; }
.home-stat-label { color: var(--text-secondary); font-weight: 600; }
.home-stat .home-pixel-mark { position: absolute; inset-block-start: 1rem; inset-inline-end: 1rem; opacity: 0.8; }

/* ═══════════ how it works ═══════════ */
.home-steps { list-style: none; display: grid; gap: var(--home-gap); grid-template-columns: minmax(0, 1fr); counter-reset: none; }
.home-page .home-step { position: relative; display: flex; flex-direction: column; gap: 0.6rem; padding: clamp(1.3rem, 3vw, 1.8rem); overflow: hidden; }
.home-step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.6rem; }
.home-step-icon {
  display: grid; place-items: center; width: 3.4rem; height: 3.4rem; border-radius: var(--home-radius-small);
  background: linear-gradient(150deg, var(--primary), var(--primary-dark)); color: var(--on-primary);
  box-shadow: 0 12px 26px -10px var(--primary-shadow);
}
.home-step-icon svg { width: 1.6rem; height: 1.6rem; }
.home-step-number { font-family: var(--font-heading); font-weight: 700; font-size: 2.8rem; line-height: 1; direction: ltr;
  color: color-mix(in srgb, var(--primary) 12%, transparent); -webkit-text-stroke: 1.5px color-mix(in srgb, var(--primary) 55%, transparent); }
.home-step-title { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; color: var(--text-primary); line-height: 1.4; }
.home-step-text { color: var(--text-secondary); line-height: 1.75; font-size: 0.96rem; }
.home-step::after {
  content: ""; position: absolute; inset-inline: 0; inset-block-end: 0; height: 3px; transform: scaleX(0); transform-origin: var(--home-start-edge, left);
  background: linear-gradient(90deg, var(--primary), var(--gold)); transition: transform 0.6s var(--home-ease);
}
[dir="rtl"] .home-step::after { --home-start-edge: right; }
.home-step:hover::after { transform: scaleX(1); }

/* ═══════════ categories: square tiles ═══════════ */
.home-categories {
  display: grid; grid-auto-flow: column; grid-auto-columns: 7.4rem; gap: 0.75rem; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; padding: 0.35rem 0.15rem 0.9rem; scrollbar-width: thin;
}
.home-category {
  scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.65rem;
  aspect-ratio: 1; padding: 0.9rem 0.6rem; text-align: center; text-decoration: none; color: var(--text-primary);
  background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--home-radius-small);
  transition: transform 0.35s var(--home-ease), border-color 0.3s, box-shadow 0.35s;
}
.home-category:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: 0 14px 28px -14px var(--primary-shadow); }
.home-category-icon {
  display: grid; place-items: center; width: 3rem; height: 3rem; font-size: 1.55rem; line-height: 1;
  background: var(--primary-glow); border-radius: var(--home-radius-small); color: var(--primary-light);
  outline: 1px dashed var(--glass-border); outline-offset: 3px;
}
html[data-theme="light"] .home-category-icon { color: var(--primary); }
.home-category-icon svg { width: 1.45rem; height: 1.45rem; }
.home-category-name { font-weight: 600; font-size: 0.92rem; line-height: 1.35; overflow-wrap: anywhere; }
.home-category--all { background: linear-gradient(150deg, var(--primary), var(--primary-dark)); color: var(--on-primary); border-color: transparent; }
.home-category--all .home-category-icon { background: rgba(255, 255, 255, 0.16); color: inherit; outline-color: rgba(255, 255, 255, 0.35); }

/* ═══════════ «soon»: the shop windows before the first partners and products arrive ═══════════ */
.home-soon { display: grid; gap: clamp(1.25rem, 4vw, 2rem); align-items: center; padding: clamp(1.4rem, 4vw, 2.4rem); overflow: hidden; position: relative; }
.home-soon-text { display: flex; flex-direction: column; align-items: flex-start; gap: 0.7rem; }
.home-soon-badge {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.3rem 0.8rem; border-radius: 999px; font-size: 0.82rem; font-weight: 700;
  color: var(--on-primary); background: var(--primary);
}
.home-soon-title { text-wrap: balance; font-family: var(--font-heading); font-size: clamp(1.3rem, 3vw, 1.7rem); font-weight: 700; line-height: 1.4; color: var(--text-primary); }
.home-soon-description { color: var(--text-secondary); line-height: 1.8; max-width: 30rem; }
.home-soon-text .btn { margin-top: 0.4rem; }
.home-soon-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.home-soon-gallery > :nth-child(3) { display: none; }

.home-ghost-card {
  display: flex; flex-direction: column; overflow: hidden; border-radius: var(--home-radius-small);
  background: var(--glass); border: 1px solid var(--glass-border); box-shadow: 0 18px 36px -20px var(--shadow-dark);
  transition: transform 0.5s var(--home-ease);
}
.home-ghost-card:nth-child(2) { transform: translateY(14px); }
.home-soon:hover .home-ghost-card { transform: translateY(-4px); }
.home-soon:hover .home-ghost-card:nth-child(2) { transform: translateY(8px); }
.home-ghost-cover { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; isolation: isolate;
  background: linear-gradient(150deg, var(--primary-glow), transparent), var(--bg-mid); }
.home-ghost-cover::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--primary); opacity: 0.16;
  -webkit-mask: var(--home-sadu) 0 0 / 69px auto repeat; mask: var(--home-sadu) 0 0 / 69px auto repeat;
}
.home-ghost-cover--product { aspect-ratio: 1; }
.home-ghost-tile { width: 48%; max-width: 96px; aspect-ratio: 1; border-radius: 2px; box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.5); }
.home-ghost-body { display: flex; flex-direction: column; gap: 0.45rem; padding: 0.85rem 0.85rem 0.95rem; }
.home-ghost-logo { width: 2.6rem; height: 2.6rem; margin-top: -2.1rem; border-radius: var(--home-radius-small); border: 2px solid var(--bg-mid);
  background: var(--glass-strong) center / cover no-repeat; box-shadow: 0 6px 14px -6px var(--shadow-dark); position: relative; z-index: 1; }
.home-ghost-line { display: block; height: 0.6rem; border-radius: 999px; background: var(--glass-border); position: relative; overflow: hidden; }
.home-ghost-line--title { width: 78%; height: 0.75rem; }
.home-ghost-line--short { width: 48%; }
.home-ghost-line::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent); animation: homeShimmer 2.4s ease-in-out infinite;
}
@keyframes homeShimmer { 60%, 100% { transform: translateX(100%); } }
.home-ghost-meta { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-top: 0.2rem; color: var(--primary); }
.home-ghost-meta svg { width: 1.1rem; height: 1.1rem; }
.home-ghost-price { width: 34%; height: 0.75rem; background: color-mix(in srgb, var(--gold) 45%, transparent); }

/* products are there but no one has liked one yet */
.home-first-like { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding: clamp(1.1rem, 3vw, 1.5rem); }
.home-first-like-icon { display: grid; place-items: center; width: 3rem; height: 3rem; flex: none; border-radius: var(--home-radius-small);
  background: var(--primary-glow); color: var(--primary); }
.home-first-like-icon svg { width: 1.45rem; height: 1.45rem; }
.home-first-like-text { flex: 1; min-width: 12rem; display: flex; flex-direction: column; gap: 0.15rem; }
.home-first-like-title { font-weight: 700; color: var(--text-primary); }
.home-first-like-note { color: var(--text-secondary); font-size: 0.92rem; }

/* while the lists load: quiet skeleton cards in the shape of what is coming */
.home-skeleton-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.1rem; }
.home-skeleton-grid .home-ghost-card:nth-child(2) { transform: none; }
.home-skeleton-grid--categories { grid-template-columns: repeat(auto-fill, minmax(7.4rem, 1fr)); }
.home-skeleton-square { aspect-ratio: 1; border-radius: var(--home-radius-small); background: var(--glass); border: 1px solid var(--glass-border); position: relative; overflow: hidden; }
.home-skeleton-square::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent); animation: homeShimmer 2.4s ease-in-out infinite; }

/* ═══════════ the closing panel: a Sadu frame around the value colour (patterns as frames, p51–61) ═══════════ */
.home-finale {
  position: relative; isolation: isolate; margin-top: var(--home-section-space); padding: clamp(12px, 1.8vw, 16px); border-radius: var(--home-radius);
  background: var(--bg-bottom); overflow: hidden;
}
/* the frame: Sadu weave threaded in the design's colours */
.home-finale::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.85;
  background: linear-gradient(120deg, var(--primary-light), var(--primary) 40%, var(--gold));
  -webkit-mask: var(--home-sadu) center / 69px auto repeat; mask: var(--home-sadu) center / 69px auto repeat;
}
.home-finale-inner {
  position: relative; isolation: isolate; overflow: hidden; display: grid; gap: 1.5rem; align-items: center;
  padding: clamp(1.75rem, 5vw, 3.25rem) clamp(1.25rem, 5vw, 3.5rem); border-radius: calc(var(--home-radius) - 6px);
  color: var(--on-primary); background: linear-gradient(140deg, var(--primary) 0%, var(--primary-dark) 120%);
}
html[data-surface="flat"] .home-finale-inner { border-radius: 2px; }
.home-finale-inner::before {
  content: ""; position: absolute; z-index: -1; inset: 0; background: currentColor; opacity: 0.09; pointer-events: none;
  -webkit-mask: var(--home-sadu) 0 0 / 92px auto repeat, linear-gradient(90deg, transparent 30%, #000); -webkit-mask-composite: source-in;
  mask: var(--home-sadu) 0 0 / 92px auto repeat, linear-gradient(90deg, transparent 30%, #000); mask-composite: intersect;
}
[dir="rtl"] .home-finale-inner::before {
  -webkit-mask: var(--home-sadu) 0 0 / 92px auto repeat, linear-gradient(270deg, transparent 30%, #000); -webkit-mask-composite: source-in;
  mask: var(--home-sadu) 0 0 / 92px auto repeat, linear-gradient(270deg, transparent 30%, #000); mask-composite: intersect;
}
.home-finale-text { display: flex; flex-direction: column; gap: 0.6rem; }
.home-finale-title { text-wrap: balance; font-family: var(--font-heading); font-weight: 700; font-size: clamp(1.75rem, 4.6vw, 2.8rem); line-height: 1.25; }
.home-finale-description { font-size: clamp(1rem, 2.2vw, 1.15rem); line-height: 1.75; opacity: 0.88; max-width: 32rem; }
.home-finale-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.6rem; }
.home-page .home-button-inverse { background: var(--on-primary); color: var(--on-inverse); border: 1px solid transparent; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.45); }
.home-page .home-button-inverse:hover { transform: translateY(-2px); }
.home-page .home-button-outline { background: transparent; color: var(--on-primary); border: 1.5px solid currentColor; border-color: color-mix(in srgb, var(--on-primary) 55%, transparent); box-shadow: none; }
.home-page .home-button-outline:hover { border-color: var(--on-primary); background: color-mix(in srgb, var(--on-primary) 10%, transparent); }
.home-finale-tiles { display: none; }

/* ═══════════ the lists the database fills: a little more polish on the shared cards, here only ═══════════ */
.home-page .cards-grid { gap: clamp(0.7rem, 2vw, 1.25rem); }
.home-page .product-card, .home-page .partner-card { transition: transform 0.45s var(--home-ease), box-shadow 0.45s var(--home-ease), border-color 0.3s; }
.home-page .product-card .card-image, .home-page .partner-card .card-image { transition: transform 0.8s var(--home-ease); }
.home-page .product-card:hover .card-image, .home-page .partner-card:hover .card-image { transform: scale(1.045); }
.home-page .card-image-link, .home-page .partner-card-media { overflow: hidden; }
.home-page .partner-card-media { overflow: visible; }
.home-page .card-image--placeholder { position: relative; isolation: isolate; background: linear-gradient(150deg, var(--primary-glow), transparent), var(--glass-strong); }
/* a card without a picture yet: the Sadu weave in the design's colour behind the shared placeholder sign */
.home-page .card-image--placeholder::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--primary); opacity: 0.16; pointer-events: none;
  -webkit-mask: var(--home-sadu) center / 69px auto repeat; mask: var(--home-sadu) center / 69px auto repeat;
}

/* ═══════════ wider screens ═══════════ */
@media (min-width: 640px) {
  .home-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .home-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-soon-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-soon-gallery > :nth-child(3) { display: flex; }
  .home-categories { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr)); overflow: visible; }
}
@media (min-width: 960px) {
  .home-page { padding-top: 1.5rem; }
  .home-hero { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .home-hero-intro { grid-column: 1 / 8; grid-row: 1 / 3; min-height: 33rem; }
  .home-hero-value { grid-column: 8 / 13; grid-row: 1; }
  .home-hero-weave { grid-column: 8 / 10; grid-row: 2; }
  .home-hero-trust { grid-column: 10 / 13; grid-row: 2; }
  .home-soon { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .home-finale-inner { grid-template-columns: minmax(0, 1fr) auto; }
  .home-finale-tiles { display: grid; grid-template-columns: repeat(3, 72px); gap: 10px; }
  .home-finale-tiles img { width: 72px; height: 72px; border-radius: 2px; box-shadow: 0 10px 22px -10px rgba(0, 0, 0, 0.5); }
  .home-finale-tiles img:nth-child(even) { transform: translateY(18px); }
}

/* ═══════════ small phones ═══════════ */
@media (max-width: 480px) {
  .home-hero-actions .btn { flex: 1 1 100%; }
  .home-hero-weave, .home-hero-trust { min-height: 11.5rem; }
  .home-weave-plate { padding: 0.7rem 0.8rem; }
  .home-section-head { align-items: flex-start; }
  .home-finale-actions .btn { flex: 1 1 100%; }
  .home-value-tile { width: 80px; height: 80px; image-rendering: auto; }
}

/* ═══════════ the four surfaces: what the home panels need beyond surfaces.css ═══════════ */
/* glass: the colour panels catch light along their top edge */
html[data-surface="glass"] .home-hero-value, html[data-surface="glass"] .home-hero-trust, html[data-surface="glass"] .home-finale-inner {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 22px 48px -18px var(--primary-shadow); }
html[data-surface="glass"] .home-weave-plate, html[data-surface="glass"] .home-category, html[data-surface="glass"] .home-ghost-card {
  -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%); }
html[data-surface="glass"] .home-weave-plate { background: color-mix(in srgb, var(--bg-mid) 78%, transparent); }

/* neo: every panel is raised out of the background by the two soft shadows */
html[data-surface="neo"] .home-hero-value, html[data-surface="neo"] .home-hero-trust, html[data-surface="neo"] .home-hero-weave,
html[data-surface="neo"] .home-finale { box-shadow: -8px -8px 18px var(--neo-light), 9px 9px 20px var(--neo-dark); }
html[data-surface="neo"] .home-category, html[data-surface="neo"] .home-ghost-card, html[data-surface="neo"] .home-section-link,
html[data-surface="neo"] .home-eyebrow, html[data-surface="neo"] .home-skeleton-square {
  background: var(--bg-mid); border-color: transparent; box-shadow: -5px -5px 12px var(--neo-light), 6px 6px 14px var(--neo-dark); }
html[data-surface="neo"] .home-category:hover { box-shadow: -3px -3px 8px var(--neo-light), 4px 4px 9px var(--neo-dark); border-color: transparent; }
html[data-surface="neo"] .home-category--all { background: linear-gradient(150deg, var(--primary), var(--primary-dark)); }
html[data-surface="neo"] .home-category-icon, html[data-surface="neo"] .home-trust-icon, html[data-surface="neo"] .home-first-like-icon {
  outline: none; box-shadow: inset -3px -3px 7px var(--neo-light), inset 3px 3px 8px var(--neo-dark); }
html[data-surface="neo"] .home-weave-plate { border-color: transparent; box-shadow: -5px -5px 12px var(--neo-light), 6px 6px 14px var(--neo-dark); }

/* material: opaque sheets on clear elevation steps */
html[data-surface="material"] .home-hero-value, html[data-surface="material"] .home-hero-trust, html[data-surface="material"] .home-finale-inner {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 12px 28px var(--shadow-dark); }
html[data-surface="material"] .home-hero-weave, html[data-surface="material"] .home-finale { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18), 0 4px 14px var(--shadow-dark); }
html[data-surface="material"] .home-category, html[data-surface="material"] .home-ghost-card {
  border: none; background: var(--glass); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18), 0 4px 12px var(--shadow-dark); }
html[data-surface="material"] .home-category:hover { box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 12px 24px var(--shadow-dark); }
html[data-surface="material"] .home-category--all { background: var(--primary); }
html[data-surface="material"] .home-section-link { border-radius: 10px; }
html[data-surface="material"] .home-eyebrow { border-radius: 8px; }

/* flat: colour blocks and square corners, no shadows — the closest to the printed templates */
html[data-surface="flat"] .home-hero-value, html[data-surface="flat"] .home-hero-trust, html[data-surface="flat"] .home-hero-weave,
html[data-surface="flat"] .home-weave-plate, html[data-surface="flat"] .home-category, html[data-surface="flat"] .home-ghost-card,
html[data-surface="flat"] .home-finale, html[data-surface="flat"] .home-finale-inner, html[data-surface="flat"] .home-step-icon,
html[data-surface="flat"] .home-finale-tiles img, html[data-surface="flat"] .home-value-tile { box-shadow: none; }
html[data-surface="flat"] .home-hero-value, html[data-surface="flat"] .home-finale-inner, html[data-surface="flat"] .home-step-icon,
html[data-surface="flat"] .home-category--all { background: var(--primary); }
html[data-surface="flat"] .home-hero-trust { background: var(--primary-dark); }
html[data-surface="flat"] .home-eyebrow, html[data-surface="flat"] .home-section-link, html[data-surface="flat"] .home-soon-badge,
html[data-surface="flat"] .home-notice .notice { border-radius: 4px; }
html[data-surface="flat"] .home-category:hover { transform: none; border-color: var(--primary); box-shadow: inset 0 -4px 0 var(--primary); }
html[data-surface="flat"] .home-page .home-step { border-top: 4px solid var(--primary); }
html[data-surface="flat"] .home-step::after { display: none; }

/* ═══════════ English: the Saudi font draws Latin in capitals, which suits the wordmark and the big titles only; the
   smaller headings read better in the design's body font ═══════════ */
html[lang="en"] .home-value-statement, html[lang="en"] .home-step-title, html[lang="en"] .home-trust-title,
html[lang="en"] .home-soon-title, html[lang="en"] .home-weave-label { font-family: var(--font-body); letter-spacing: -0.005em; }
html[lang="en"] .home-value-statement { font-size: clamp(1.45rem, 2.4vw, 1.95rem); line-height: 1.3; }

/* the name never breaks inside the word: Latin «Bquick247» in a wide font (Urdu, English) is sized to fit one line */
.home-wordmark, .home-wordmark .brand-wordmark { white-space: nowrap; overflow-wrap: normal; word-break: keep-all; }
html[lang="en"] .home-wordmark, html[lang="ur"] .home-wordmark { font-size: clamp(2.2rem, 8.2vw, 5.4rem); }
@media (max-width: 1100px) { html[lang="en"] .home-wordmark, html[lang="ur"] .home-wordmark { font-size: clamp(2.2rem, 10.5vw, 4.6rem); } }

.home-page .home-hero-actions .btn-secondary {
  background: #fff;
  color: #28243d;
  border: 1.5px solid #746e88;
}
html[data-theme="dark"] .home-page .home-hero-actions .btn-secondary {
  background: #252333;
  color: #fff;
  border-color: #aaa5bb;
}
.home-hero-actions .btn-secondary:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }

@media (max-width: 767px) {
  .home-hero-value, .home-hero-weave, .home-hero-trust, .home-eyebrow { display: none; }
  .home-page .home-hero-intro { padding: 1.4rem 1.15rem; }
  .home-wordmark { margin-block: 0 0.5rem; font-size: clamp(2.7rem, 12vw, 4rem); }
  .home-hero-actions { margin-top: 1rem; width: 100%; gap: 0.5rem; }
  .home-hero-actions .btn { flex: 1 1 8rem; padding: 0.65rem; font-size: 0.95rem; min-height: 2.85rem; }
}

/* Year-round storefront: one editorial image, a quiet canvas and short entrance motion. */
.studio-home .home-finale::before, .studio-home .home-finale-inner::before { content: none; }
.studio-home .home-finale { padding: 0; }
.studio-hero { display: grid; grid-template-columns: 0.95fr 1.05fr; align-items: stretch; overflow: hidden; border-radius: 20px; background: var(--bg-top); color: var(--text-primary); border: 1px solid var(--glass-border); }
.studio-intro { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(1.5rem, 4vw, 4rem); }
.studio-name { font-family: var(--font-heading); font-weight: 650; color: var(--primary); margin: 0 0 1.2rem; }
.studio-hero h1 { font: 750 clamp(2.45rem, 4.5vw, 4.6rem)/1.28 var(--font-heading); margin: 0; text-wrap: balance; color: inherit; }
.studio-description { max-width: 34ch; margin: 1rem 0 0; font-size: clamp(1rem, 1.6vw, 1.25rem); line-height: 1.65; color: var(--text-secondary); }
.studio-photo { overflow: hidden; min-width: 0; }
.studio-photo img { width: 100%; height: 100%; min-height: 25rem; display: block; object-fit: cover; }
.studio-home .studio-hero .btn-primary { background: var(--primary); color: var(--on-primary); }
@media (max-width: 700px) {
  .studio-hero { grid-template-columns: 1fr; }
  .studio-photo img { height: clamp(9rem, 36vw, 14rem); min-height: 0; object-position: 50% 53%; }
  .studio-name { margin-bottom: 0.65rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .studio-intro { animation: studio-intro .48s ease-out both; }
  .studio-photo img { animation: studio-focus .8s ease-out both; }
}
@keyframes studio-intro { from { opacity: .35; transform: translateY(8px); } }
@keyframes studio-focus { from { transform: scale(1.035); } }
