/* ============================================================
   QATRA BIO, Premium Moroccan botanical distillation brand
   Design system + layout. RTL-aware via logical properties.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Palette */
  --green: #173d2f;        /* deep botanical green */
  --green-700: #1f4d3c;
  --green-900: #0f2a20;
  --cream: #f7f1e6;        /* warm cream */
  --cream-deep: #efe6d4;
  --copper: #b87333;       /* signature accent, fills, icons, borders, decoration */
  --copper-text: #8e5820;  /* AA-passing copper for small text on cream/paper (5.2:1+) */
  --copper-bright: #c8843f;
  --clay: #b85c38;         /* terracotta */
  --rose-beige: #d9b8a8;
  --charcoal: #1d1d1b;
  --gold: #c9a24e;         /* soft gold */
  --paper: #fbf7ee;

  /* Semantic */
  --bg: var(--cream);
  --bg-alt: var(--paper);
  --ink: #20271f;
  --ink-soft: #4a5247;
  --ink-faint: #5c6258;
  --line: rgba(23, 61, 47, 0.14);
  --line-soft: rgba(23, 61, 47, 0.08);

  /* Type */
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Scale (fluid) */
  --step--1: clamp(0.82rem, 0.78rem + 0.18vw, 0.92rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
  --step-1: clamp(1.2rem, 1.12rem + 0.4vw, 1.45rem);
  --step-2: clamp(1.55rem, 1.4rem + 0.75vw, 2.1rem);
  --step-3: clamp(2rem, 1.7rem + 1.5vw, 3rem);
  --step-4: clamp(2.6rem, 2rem + 3vw, 4.6rem);
  --step-5: clamp(3.1rem, 2.2rem + 4.6vw, 6rem);

  /* Spacing */
  --gutter: clamp(1.2rem, 0.8rem + 2vw, 2.5rem);
  --section-y: clamp(4.5rem, 3rem + 7vw, 9rem);
  --maxw: 1200px;
  --maxw-narrow: 760px;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(29, 29, 27, 0.05), 0 4px 14px rgba(23, 61, 47, 0.06);
  --shadow-md: 0 10px 30px rgba(23, 61, 47, 0.1), 0 2px 8px rgba(29, 29, 27, 0.05);
  --shadow-lg: 0 30px 70px rgba(15, 42, 32, 0.16);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Arabic typography overrides ---------- */
:root[lang="ar"] {
  --font-display: "Amiri", "Times New Roman", serif;
  --font-body: "Cairo", system-ui, "Segoe UI", sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; border-radius: 4px; }

/* Paper grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  color: var(--green);
  letter-spacing: 0.005em;
}
:root[lang="ar"] h1, :root[lang="ar"] h2, :root[lang="ar"] h3, :root[lang="ar"] h4 {
  line-height: 1.35;
  font-weight: 700;
}
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { max-width: 68ch; }

.display { font-size: var(--step-5); font-weight: 600; line-height: 1.02; }
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper-text);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
/* On dark green sections, use gold for the eyebrow (AA on green) */
.section--green .eyebrow, .heritage .eyebrow { color: var(--gold); }
:root[lang="ar"] .eyebrow { letter-spacing: 0.04em; }
.eyebrow::before {
  content: "";
  inline-size: 26px;
  block-size: 1px;
  background: var(--copper);
  opacity: 0.7;
}
.lede { font-size: var(--step-1); color: var(--ink-soft); line-height: 1.6; font-weight: 400; }
.muted { color: var(--ink-faint); }
.serif-accent { font-family: var(--font-display); font-style: italic; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: var(--maxw-narrow); }
.section { padding-block: var(--section-y); position: relative; }
.section--alt { background: var(--bg-alt); }
.section--green { background: var(--green); color: var(--cream); }
.section--green h2, .section--green h3 { color: var(--cream); }
.section-head { max-width: 62ch; margin-bottom: clamp(2.2rem, 1.5rem + 2vw, 3.6rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .lede { margin-top: 1rem; }

.grid { display: grid; gap: clamp(1.2rem, 0.8rem + 1.5vw, 2.2rem); }
@media (min-width: 720px) { .cols-2 { grid-template-columns: repeat(2, 1fr); } .cols-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 940px) { .cols-3-lg { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 0.95em 1.7em;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--step--1);
  letter-spacing: 0.02em;
  border: 1.5px solid transparent;
  transition: transform 0.35s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--copper); color: #fff; box-shadow: 0 8px 22px rgba(184, 115, 51, 0.32); }
.btn--primary:hover { background: var(--copper-bright); box-shadow: 0 12px 28px rgba(184, 115, 51, 0.4); }
.btn--ghost { border-color: var(--green); color: var(--green); background: transparent; }
.btn--ghost:hover { background: var(--green); color: var(--cream); }
.btn--light { background: var(--cream); color: var(--green); }
.btn--light:hover { background: #fff; }
.btn--outline-light { border-color: rgba(247, 241, 230, 0.5); color: var(--cream); }
.btn--outline-light:hover { background: rgba(247, 241, 230, 0.12); border-color: var(--cream); }
.btn .ico { inline-size: 1.05em; block-size: 1.05em; }
:root[dir="rtl"] .btn .ico--arrow { transform: scaleX(-1); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--cream) 86%, transparent);
  backdrop-filter: blur(12px) saturate(1.1);
  border-block-end: 1px solid var(--line-soft);
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); background: color-mix(in srgb, var(--cream) 94%, transparent); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-block-size: 74px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--green); }
.brand .mark { inline-size: auto; block-size: 40px; }
.brand .wordmark { font-family: var(--font-display); font-size: 1.55rem; font-weight: 600; letter-spacing: 0.02em; line-height: 1; white-space: nowrap; }
.brand .wordmark b { font-weight: 600; }
.brand .wordmark span { color: var(--copper); }

.nav-links { display: none; align-items: center; gap: clamp(1rem, 0.4rem + 1.4vw, 2rem); }
.nav-links a { font-size: var(--step--1); font-weight: 500; color: var(--ink-soft); position: relative; padding-block: 0.4rem; }
.nav-links a::after {
  content: ""; position: absolute; inset-inline: 0; inset-block-end: 0; block-size: 1.5px;
  background: var(--copper); transform: scaleX(0); transform-origin: var(--mq-origin, left); transition: transform 0.3s var(--ease);
}
.nav-links a:hover { color: var(--green); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 0.75rem; }

/* Language switcher */
.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: transparent; border: 1px solid var(--line); border-radius: 999px;
  padding: 0.5em 0.85em; font-size: var(--step--1); font-weight: 600; color: var(--green);
}
.lang-btn:hover { border-color: var(--copper); }
.lang-btn .ico { inline-size: 1rem; block-size: 1rem; }
.lang-menu {
  position: absolute; inset-block-start: calc(100% + 0.5rem); inset-inline-end: 0;
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-md); padding: 0.4rem; min-inline-size: 150px;
  display: none; flex-direction: column; gap: 2px; z-index: 200;
}
.lang-menu.open { display: flex; }
.lang-menu a { padding: 0.7em 0.9em; min-block-size: 44px; align-items: center; border-radius: 8px; font-size: var(--step--1); font-weight: 500; color: var(--ink-soft); display: flex; justify-content: space-between; gap: 1rem; }
.lang-menu a:hover { background: var(--cream-deep); color: var(--green); }
.lang-menu a[aria-current="page"] { color: var(--copper-text); font-weight: 600; }

/* Mobile menu */
.menu-toggle { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-inline-size: 44px; min-block-size: 44px; padding: 0.6rem; background: transparent; border: 0; }
.menu-toggle span { inline-size: 24px; block-size: 2px; background: var(--green); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 940px) {
  .nav-links { display: flex; }
  .menu-toggle { display: none; }
}
/* On phones the header CTA is redundant (it's inside the mobile menu), hide to declutter */
@media (max-width: 719px) {
  .nav-actions > .btn--primary { display: none; }
  .nav { min-block-size: 64px; gap: 0.6rem; }
}
.mobile-nav {
  display: none; flex-direction: column; gap: 0.2rem;
  padding: 0.5rem var(--gutter) 1.5rem; border-block-start: 1px solid var(--line-soft);
}
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 0.85rem 0.5rem; font-size: var(--step-0); font-weight: 500; color: var(--ink-soft); border-block-end: 1px solid var(--line-soft); }
.mobile-nav a:last-child { border-block-end: 0; }
@media (min-width: 940px) { .mobile-nav { display: none !important; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(3rem, 2rem + 5vw, 6rem) clamp(3.5rem, 2rem + 6vw, 7rem); overflow: hidden; }
.hero-grid { display: grid; gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: center; }
@media (min-width: 940px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; } }
.hero-copy { position: relative; z-index: 2; max-width: 36ch; }
.hero h1 { margin-block: 1.1rem 1.3rem; }
.hero .lede { margin-bottom: 2rem; max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.hero-trust { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 1.1rem 1.6rem; align-items: center; }
.hero-trust span { display: inline-flex; align-items: center; gap: 0.5rem; font-size: var(--step--1); color: var(--ink-faint); font-weight: 500; }
.hero-trust .ico { inline-size: 1.1rem; block-size: 1.1rem; color: var(--copper); }
.hero-visual { position: relative; z-index: 1; }

/* Zellige pattern wash behind hero */
.hero::after {
  content: ""; position: absolute; z-index: 0; inset-block-start: -10%; inset-inline-end: -8%;
  inline-size: min(60vw, 620px); block-size: min(60vw, 620px);
  background-image: var(--zellige); background-size: 86px 86px; opacity: 0.06; pointer-events: none;
  -webkit-mask-image: radial-gradient(circle at 60% 40%, #000, transparent 70%);
  mask-image: radial-gradient(circle at 60% 40%, #000, transparent 70%);
}

/* ---------- Bottle / botanical illustration frame ---------- */
.illus-frame { position: relative; aspect-ratio: 1 / 1.06; display: grid; place-items: center; }
.illus-frame .halo {
  position: absolute; inset: 6%; border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, rgba(201, 162, 78, 0.18), rgba(184, 115, 51, 0.08) 45%, transparent 68%);
}
.illus-frame svg { position: relative; inline-size: min(82%, 420px); height: auto; filter: drop-shadow(0 24px 40px rgba(15, 42, 32, 0.18)); }
.illus-ring { position: absolute; inset: 0; border: 1px solid var(--line); border-radius: 50%; }
.illus-ring.dashed { inset: 9%; border-style: dashed; border-color: rgba(184, 115, 51, 0.35); }

/* ---------- Origin section ---------- */
.split { display: grid; gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center; }
@media (min-width: 880px) { .split { grid-template-columns: 1fr 1fr; } .split.reverse > :first-child { order: 2; } }
.media-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3.4;
  background: linear-gradient(150deg, var(--green-700), var(--green-900));
  box-shadow: var(--shadow-md); display: grid; place-items: center;
}
.media-card svg { inline-size: 64%; height: auto; color: rgba(247, 241, 230, 0.92); }
.media-card .media-label {
  position: absolute; inset-block-end: 1rem; inset-inline-start: 1rem;
  font-size: var(--step--1); color: rgba(247, 241, 230, 0.7); letter-spacing: 0.04em;
  background: rgba(15, 42, 32, 0.45); padding: 0.4em 0.9em; border-radius: 999px; backdrop-filter: blur(4px);
}
.media-card::after {
  content: ""; position: absolute; inset: 0; background-image: var(--zellige); background-size: 70px 70px; opacity: 0.07; mix-blend-mode: overlay;
}
.stat-row { display: flex; flex-wrap: wrap; gap: clamp(1.4rem, 1rem + 2vw, 3rem); margin-top: 2rem; }
.stat .n { font-family: var(--font-display); font-size: var(--step-3); color: var(--copper); line-height: 1; font-weight: 600; }
.stat .l { font-size: var(--step--1); color: var(--ink-faint); margin-top: 0.3rem; max-width: 22ch; }

/* ---------- Process steps ---------- */
.steps { counter-reset: step; }
.step {
  position: relative; padding: clamp(1.6rem, 1.2rem + 1vw, 2.2rem);
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step .step-ico { inline-size: 54px; block-size: 54px; color: var(--copper); margin-bottom: 1.1rem; }
.step .step-n {
  counter-increment: step; position: absolute; inset-block-start: 1.4rem; inset-inline-end: 1.6rem;
  font-family: var(--font-display); font-size: 1.6rem; color: var(--rose-beige); font-weight: 600;
}
.step .step-n::before { content: "0" counter(step); }
.step h3 { margin-bottom: 0.5rem; }
.step p { font-size: var(--step--1); color: var(--ink-soft); }

/* ---------- Product collection ---------- */
.products { display: grid; gap: clamp(1.1rem, 0.7rem + 1.5vw, 1.8rem); grid-template-columns: 1fr; }
@media (min-width: 620px) { .products { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .products { grid-template-columns: repeat(3, 1fr); } }
.product {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--paper); border: 1px solid var(--line-soft); box-shadow: var(--shadow-sm);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
  display: flex; flex-direction: column;
}
.product:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(184, 115, 51, 0.3); }
.product-visual {
  aspect-ratio: 4 / 3.2; display: grid; place-items: center; position: relative;
  background:
    radial-gradient(circle at 50% 120%, rgba(201, 162, 78, 0.16), transparent 60%),
    linear-gradient(160deg, var(--cream-deep), var(--paper));
  border-block-end: 1px solid var(--line-soft);
}
.product-visual svg { inline-size: auto; block-size: 84%; filter: drop-shadow(0 14px 20px rgba(15, 42, 32, 0.18)); transition: transform 0.5s var(--ease); }
.product:hover .product-visual svg { transform: translateY(-4px) rotate(-1deg); }
.product-visual .botanical { position: absolute; inline-size: 40%; opacity: 0.5; color: var(--green-700); }
.product-visual .botanical.tl { inset-block-start: 8%; inset-inline-start: 6%; transform: rotate(-12deg); }
.product-visual .botanical.br { inset-block-end: 6%; inset-inline-end: 6%; transform: rotate(150deg); opacity: 0.35; }
.product-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.product-body .brand-script { align-self: flex-start; font-family: "Amiri", var(--font-display); font-size: var(--step-2); color: var(--green); line-height: 1.15; }
.product-body .brand-translit { font-family: var(--font-display); font-style: italic; font-size: var(--step-0); color: var(--copper-text); line-height: 1; }
.product-body h3 { font-size: var(--step-1); }
.product-tag { font-size: var(--step--1); color: var(--copper-text); font-weight: 600; letter-spacing: 0.04em; }
.product-body p { font-size: var(--step--1); color: var(--ink-soft); margin-top: 0.1rem; }
.product-formats { margin-top: auto; padding-top: 1rem; display: flex; gap: 0.45rem; flex-wrap: wrap; }
.format-chip { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.03em; color: var(--ink-faint); border: 1px solid var(--line); border-radius: 999px; padding: 0.3em 0.7em; }

/* ---------- Quality / value cards ---------- */
.value-grid { display: grid; gap: clamp(0.8rem, 0.5rem + 1vw, 1.3rem); grid-template-columns: 1fr; }
@media (min-width: 600px) { .value-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 920px) { .value-grid { grid-template-columns: repeat(3, 1fr); } }
.value {
  display: flex; gap: 1rem; align-items: flex-start; padding: 1.3rem 1.4rem;
  background: rgba(247, 241, 230, 0.04); border: 1px solid rgba(247, 241, 230, 0.14); border-radius: var(--radius);
}
.section--green .value { background: rgba(247, 241, 230, 0.05); }
.value .v-ico { flex: none; inline-size: 30px; block-size: 30px; color: var(--gold); margin-top: 2px; }
.value h3 { font-size: var(--step-0); font-family: var(--font-body); font-weight: 600; color: var(--cream); margin-bottom: 0.2rem; }
.value p { font-size: var(--step--1); color: rgba(247, 241, 230, 0.74); }

/* ---------- Use cases ---------- */
.uses { display: grid; gap: clamp(0.9rem, 0.6rem + 1vw, 1.4rem); grid-template-columns: 1fr; }
@media (min-width: 560px) { .uses { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 920px) { .uses { grid-template-columns: repeat(5, 1fr); } }
.use {
  text-align: center; padding: 1.6rem 1rem; border-radius: var(--radius-lg);
  background: var(--paper); border: 1px solid var(--line-soft); box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), background 0.4s var(--ease);
}
.use:hover { transform: translateY(-4px); background: #fff; }
.use .u-ico { inline-size: 40px; block-size: 40px; color: var(--copper); margin: 0 auto 0.9rem; }
.use h3 { font-size: var(--step-0); font-family: var(--font-body); font-weight: 600; }
.use p { font-size: var(--step--1); color: var(--ink-faint); margin: 0.3rem auto 0; }

/* ---------- Heritage banner ---------- */
.heritage { position: relative; overflow: hidden; }
.heritage .wrap { position: relative; z-index: 2; text-align: center; max-width: 56ch; }
.heritage h2 { margin-bottom: 1rem; }
.heritage .quote { font-family: var(--font-display); font-style: italic; font-size: var(--step-2); color: var(--cream); line-height: 1.3; }
:root[lang="ar"] .heritage .quote { font-style: normal; }
.heritage .quote-mark { font-family: var(--font-display); font-size: 5rem; color: var(--copper); line-height: 0.5; opacity: 0.6; display: block; height: 0.5em; }
.heritage::before {
  content: ""; position: absolute; inset: 0; z-index: 1; opacity: 0.08;
  background-image: var(--zellige); background-size: 110px 110px;
}

/* ---------- Wholesale ---------- */
.wholesale-grid { display: grid; gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: center; }
@media (min-width: 860px) { .wholesale-grid { grid-template-columns: 1.1fr 0.9fr; } }
.channel-list { display: grid; grid-template-columns: 1fr; gap: 0.7rem 1.4rem; margin-top: 1.6rem; }
@media (min-width: 420px) { .channel-list { grid-template-columns: repeat(2, 1fr); } }
.channel-list li { display: flex; align-items: center; gap: 0.6rem; font-size: var(--step--1); color: var(--ink-soft); font-weight: 500; }
.channel-list .ico { inline-size: 1.1rem; block-size: 1.1rem; color: var(--copper); flex: none; }

/* ---------- Launch list form ---------- */
.launch { position: relative; overflow: hidden; }
.launch-card {
  background: var(--green); color: var(--cream); border-radius: var(--radius-lg);
  padding: clamp(2rem, 1.4rem + 3vw, 4rem); box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.launch-card::before { content: ""; position: absolute; inset: 0; opacity: 0.07; background-image: var(--zellige); background-size: 96px 96px; }
.launch-grid { position: relative; z-index: 2; display: grid; gap: clamp(1.8rem, 1rem + 3vw, 3.2rem); }
@media (min-width: 820px) { .launch-grid { grid-template-columns: 0.92fr 1.08fr; align-items: center; } }
.launch-copy h2 { color: var(--cream); }
.launch-copy .lede { color: rgba(247, 241, 230, 0.82); margin-top: 0.9rem; }
.launch-copy .reassure { margin-top: 1.3rem; display: flex; align-items: center; gap: 0.5rem; font-size: var(--step--1); color: rgba(247, 241, 230, 0.7); }
.launch-copy .reassure .ico { inline-size: 1rem; block-size: 1rem; color: var(--gold); }

form.signup { display: grid; gap: 0.9rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-size: var(--step--1); font-weight: 600; color: rgba(247, 241, 230, 0.85); }
.field-row { display: grid; gap: 0.9rem; }
@media (min-width: 480px) { .field-row { grid-template-columns: 1fr 1fr; } }
.input, .select {
  inline-size: 100%; padding: 0.9em 1em; border-radius: 12px;
  border: 1.5px solid rgba(247, 241, 230, 0.22); background: rgba(247, 241, 230, 0.07);
  color: var(--cream); font: inherit; font-size: var(--step--1); transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.input::placeholder { color: rgba(247, 241, 230, 0.45); }
.input:focus, .select:focus { border-color: var(--copper); background: rgba(247, 241, 230, 0.12); }
.input:focus-visible, .select:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23f7f1e6' stroke-width='2'%3E%3Cpath d='M3 5l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-inline-end: 2.4rem; }
:root[dir="rtl"] .select { background-position: left 1rem center; }
.select option { color: var(--charcoal); }
.consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.8rem; color: rgba(247, 241, 230, 0.7); line-height: 1.5; }
.consent input { margin-top: 0.25rem; accent-color: var(--copper); inline-size: 1rem; block-size: 1rem; flex: none; }
.consent a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
form.signup .btn { margin-top: 0.3rem; }
.form-note { font-size: 0.78rem; color: rgba(247, 241, 230, 0.66); }
.form-legend { font-size: 0.78rem; color: rgba(247, 241, 230, 0.72); margin-bottom: 0.1rem; }
.req { color: var(--gold); font-weight: 700; }
.form-status { font-size: var(--step--1); padding: 0.8em 1em; border-radius: 10px; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: rgba(201, 162, 78, 0.18); color: var(--cream); border: 1px solid var(--gold); }
.form-status.err { background: rgba(184, 92, 56, 0.2); color: #ffd9c8; border: 1px solid var(--clay); }
.hp { position: absolute; inset-inline-start: -9999px; opacity: 0; pointer-events: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: rgba(247, 241, 230, 0.78); padding-block: clamp(3rem, 2rem + 3vw, 4.5rem) 2rem; }
.footer-grid { display: grid; gap: clamp(1.8rem, 1rem + 3vw, 3rem); grid-template-columns: 1fr; }
@media (min-width: 600px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (min-width: 920px) { .footer-grid { grid-template-columns: 1.7fr 1fr 1fr 1fr 1fr; } .footer-brand { grid-column: auto; } }
.footer-brand .brand { color: var(--cream); margin-bottom: 1rem; }
.footer-brand .brand .wordmark { color: var(--cream); }
.footer-brand p { font-size: var(--step--1); color: rgba(247, 241, 230, 0.6); max-width: 32ch; }
.footer-brand .social { display: flex; gap: 0.7rem; margin-top: 1.3rem; }
.footer-brand .social a { inline-size: 44px; block-size: 44px; border-radius: 50%; border: 1px solid rgba(247, 241, 230, 0.2); display: grid; place-items: center; color: rgba(247, 241, 230, 0.75); transition: all 0.3s var(--ease); }
.footer-brand .social a:hover { background: var(--copper); border-color: var(--copper); color: #fff; transform: translateY(-2px); }
.footer-brand .social .ico { inline-size: 1.05rem; block-size: 1.05rem; }
.footer-col h3 { font-family: var(--font-body); font-size: var(--step--1); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.1rem; }
:root[lang="ar"] .footer-col h3 { letter-spacing: 0.02em; }
.footer-col ul { display: grid; gap: 0.65rem; }
.footer-col a { font-size: var(--step--1); color: rgba(247, 241, 230, 0.68); transition: color 0.25s var(--ease); }
.footer-col a:hover { color: var(--cream); }
.footer-bottom {
  margin-top: clamp(2.4rem, 1.5rem + 2vw, 3.5rem); padding-top: 1.6rem;
  border-top: 1px solid rgba(247, 241, 230, 0.12); display: flex; flex-wrap: wrap; gap: 0.8rem 1.5rem;
  justify-content: space-between; align-items: center; font-size: 0.8rem; color: rgba(247, 241, 230, 0.62);
}
.footer-bottom .legal-links { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--cream); }

/* ---------- Decorative divider ---------- */
.divider { display: flex; align-items: center; justify-content: center; gap: 1rem; color: var(--copper); margin-block: 0; }
.divider .line { block-size: 1px; inline-size: min(120px, 18vw); background: linear-gradient(to var(--mq-to, right), transparent, var(--copper)); }
.divider .line.r { background: linear-gradient(to var(--mq-from, left), transparent, var(--copper)); }
.divider .drop { inline-size: 18px; block-size: 18px; }

/* ---------- Scroll reveal ---------- */
.motion .reveal { opacity: 0; }
.motion .reveal.in { opacity: 1; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; inset-block-start: -100px; inset-inline-start: 1rem; z-index: 9999;
  background: var(--green); color: var(--cream); padding: 0.7em 1.2em; border-radius: 0 0 10px 10px; font-weight: 600;
  transition: inset-block-start 0.2s var(--ease);
}
.skip-link:focus { inset-block-start: 0; }

/* ---------- Legal / prose pages ---------- */
.legal-main { padding-block: clamp(2.5rem, 1.8rem + 3vw, 5rem); }
.legal-doc { max-width: 760px; margin-inline: auto; }
.legal-back { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--green); font-weight: 600; font-size: var(--step--1); margin-bottom: 2rem; }
.legal-back:hover { color: var(--copper); }
.legal-back .ico { inline-size: 1.05rem; block-size: 1.05rem; transform: scaleX(-1); }
:root[dir="rtl"] .legal-back .ico { transform: scaleX(1); }
.legal-doc h1 { font-size: var(--step-4); margin: 0.5rem 0 0.5rem; }
.legal-updated { color: var(--ink-faint); font-size: var(--step--1); margin-bottom: 2rem; }
.legal-doc .intro { font-size: var(--step-1); color: var(--ink-soft); line-height: 1.6; margin-bottom: 1.5rem; max-width: none; }
.legal-toc { display: flex; gap: 0.7rem; flex-wrap: wrap; margin: 0 0 2.6rem; padding-bottom: 1.6rem; border-bottom: 1px solid var(--line); }
.legal-toc a { font-size: var(--step--1); font-weight: 500; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 999px; padding: 0.4em 0.95em; transition: all 0.25s var(--ease); }
.legal-toc a[aria-current="page"] { background: var(--green); color: var(--cream); border-color: var(--green); }
.legal-toc a:hover { border-color: var(--copper); color: var(--green); }
.legal-section { margin-bottom: 1.7rem; }
.legal-section h2 { font-size: var(--step-1); font-family: var(--font-display); margin-bottom: 0.4rem; color: var(--green); }
.legal-section p { color: var(--ink-soft); max-width: none; }
.legal-section a, .legal-doc .intro a { color: var(--copper-text); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Directional helpers ---------- */
:root { --zellige: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='86' height='86' viewBox='0 0 86 86'%3E%3Cg fill='none' stroke='%23173d2f' stroke-width='1'%3E%3Cpath d='M43 1l14 14-14 14-14-14zM43 57l14 14-14 14-14-14zM1 43l14-14 14 14-14 14zM57 43l14-14 14 14-14 14z'/%3E%3Ccircle cx='43' cy='43' r='9'/%3E%3C/g%3E%3C/svg%3E"); }
:root[dir="rtl"] { --mq-origin: right; --mq-to: left; --mq-from: right; }

/* ---------- Brand lockup (footer / OG) ---------- */
.footer-lockup { display: block; text-align: center; padding-block-end: clamp(2rem, 1.4rem + 2vw, 3.2rem); margin-block-end: clamp(2rem, 1.4rem + 2vw, 3.2rem); border-block-end: 1px solid rgba(247, 241, 230, 0.12); }
.logo-lockup { display: inline-flex; flex-direction: column; align-items: center; gap: 0.8rem; }
.logo-mark { display: block; }
.logo-mark svg { inline-size: auto; block-size: clamp(54px, 5vw, 74px); }
.logo-word { font-family: var(--font-display); font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.6rem); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; line-height: 1; background: linear-gradient(180deg, #f1ddA2 0%, #d8b066 48%, #b88a3c 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo-rule { display: flex; align-items: center; gap: 0.9rem; inline-size: min(300px, 64vw); }
.logo-rule .lr { flex: 1; block-size: 1px; background: linear-gradient(to right, transparent, rgba(207, 166, 88, 0.7)); }
.logo-rule .lr:last-child { background: linear-gradient(to left, transparent, rgba(207, 166, 88, 0.7)); }
.logo-rule .lstar svg { inline-size: 22px; block-size: 22px; }
.logo-tag { font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--gold); }
:root[lang="ar"] .logo-tag { letter-spacing: 0.04em; text-transform: none; font-size: 0.82rem; }

/* ---------- Real logo images (header mark, footer lockup) ---------- */
.brand .mark img { display: block; block-size: 40px; inline-size: auto; }
.footer-lockup { line-height: 0; }
.footer-lockup img { display: inline-block; inline-size: min(300px, 64vw); block-size: auto; }
@media (max-width: 600px) { .brand .mark img { block-size: 34px; } }
