/* ==========================================================================
   EncoreBon — homepage
   Cream paper, deep-teal ink, gold accents. The "bon" (ticket) is the motif:
   perforated edges, notched tickets, an inked stamp.
   ========================================================================== */

:root {
  --cream: #FDF8F3;
  --cream-hi: #FFFDF9;
  --paper: #F6EDE1;
  --paper-2: #EFE3D3;
  --line: #E6D9C8;
  --line-strong: #D9C8B3;

  --ink: #0A3336;
  --ink-soft: #3E5C5E;
  --ink-faint: #6E8586;
  --teal-700: #10464A;
  --teal-900: #072629;

  --gold: #D8AA68;
  --gold-ink: #8C6125;
  --gold-mid: #A57636;
  --berry: #6A161C;

  --f-display: "Fraunces", "IBM Plex Sans Arabic", Georgia, serif;
  --f-body: "Manrope", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;

  --max: 1200px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  interpolate-size: allow-keywords;
}

:lang(ar) {
  --f-display: "IBM Plex Sans Arabic", system-ui, sans-serif;
  --f-body: "IBM Plex Sans Arabic", system-ui, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background-color: var(--cream);
  /* faint paper grain */
  background-image: url("/static/img/grain.png");
  background-size: 96px 96px;
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

:lang(ar) body { line-height: 1.8; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; }

::selection { background: var(--gold); color: var(--ink); }

:focus-visible {
  outline: 2.5px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; z-index: 100; inset-inline-start: 1rem; top: -4rem;
  padding: .7rem 1rem; border-radius: 10px;
  background: var(--ink); color: var(--cream); font-weight: 700; text-decoration: none;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* Visitors whose language is not French: hold the page until copy is swapped. */
html.i18n-pending body { visibility: hidden; animation: eb-show 0s 1.2s forwards; }
@keyframes eb-show { to { visibility: visible; } }

.container {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

/* ---------- Type ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(2.65rem, 1.55rem + 4.3vw, 4.3rem);
  line-height: 1.02;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

.display em,
.statement em {
  font-style: italic;
  font-weight: 500;
}

.display em {
  /* hand-drawn gold underline that follows each wrapped line */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 24' preserveAspectRatio='none'%3E%3Cpath d='M4 15C58 7 118 5 176 9s96 9 120 1' fill='none' stroke='%23D8AA68' stroke-width='5' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") no-repeat 0 96% / 100% .26em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding-bottom: .04em;
}

@media (min-width: 1100px) {
  .display em { white-space: nowrap; }
}

.h2 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(2rem, 1.35rem + 2.5vw, 3.3rem);
  line-height: 1.06;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

.h3 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.65rem;
  line-height: 1.15;
  letter-spacing: -0.012em;
}

.h4 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.lead {
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.22rem);
  line-height: 1.62;
  color: var(--ink-soft);
  max-width: 34em;
  text-wrap: pretty;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: 1.25rem;
  font-family: var(--f-body);
  font-weight: 700;
  font-size: .78rem;
  line-height: 1;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

.eyebrow-mark { width: 1.35rem; height: 1rem; fill: var(--gold); }

:lang(ar) .display { font-weight: 700; line-height: 1.28; letter-spacing: 0; font-size: clamp(2.35rem, 1.45rem + 3.6vw, 4.4rem); }
:lang(ar) .h2,
:lang(ar) .h3,
:lang(ar) .h4 { font-weight: 700; letter-spacing: 0; line-height: 1.35; }
:lang(ar) .display em,
:lang(ar) .statement em { font-style: normal; font-weight: inherit; }
:lang(ar) .eyebrow { letter-spacing: 0; text-transform: none; font-size: .95rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: 1rem 1.45rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn svg { width: 1.15em; height: 1.15em; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-ink:hover { background: var(--teal-700); transform: translateY(-1px); box-shadow: 0 12px 24px -14px rgba(10, 51, 54, .7); }
.btn-sm { padding: .72rem 1.1rem; font-size: .9rem; }

.store-row { display: flex; flex-wrap: wrap; gap: .75rem; }

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  min-width: 11.75rem;
  padding: .7rem 1.25rem .7rem 1rem;
  border-radius: 14px;
  background: var(--ink);
  color: var(--cream);
  text-decoration: none;
  transition: background-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.store-btn:hover { background: var(--teal-700); transform: translateY(-1px); box-shadow: 0 14px 26px -16px rgba(10, 51, 54, .75); }
.store-icon { flex: none; width: 1.65rem; height: 1.65rem; fill: currentColor; }
.store-text { display: flex; flex-direction: column; text-align: start; line-height: 1.12; }
.store-text small { font-size: .7rem; font-weight: 500; opacity: .82; }
.store-text span { font-size: 1.1rem; font-weight: 700; letter-spacing: -.01em; }
.store-btn-light { background: var(--cream); color: var(--ink); }
.store-btn-light:hover { background: var(--gold); box-shadow: 0 14px 26px -16px rgba(0, 0, 0, .6); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: .28em;
}
.link-arrow svg { width: 1.05em; height: 1.05em; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

[dir="rtl"] .btn svg,
[dir="rtl"] .link-arrow svg { transform: scaleX(-1); }
[dir="rtl"] .btn:hover svg,
[dir="rtl"] .link-arrow:hover svg { transform: scaleX(-1) translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  transition: box-shadow .25s var(--ease);
}
.site-header.is-stuck,
.site-header.menu-open { box-shadow: 0 1px 0 var(--line); }

.header-bar {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: var(--header-h);
}

.brand { display: inline-flex; flex: none; border-radius: 8px; }
.logo { width: 76px; height: 41px; fill: currentColor; color: var(--ink); direction: ltr; }

.nav { margin-inline-start: auto; }
.nav-list { display: flex; gap: 1.85rem; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(var(--gold), var(--gold)) no-repeat 0 100% / 0 2px;
  padding-block: .35rem;
  transition: background-size .25s var(--ease);
}
[dir="rtl"] .nav-list a { background-position: 100% 100%; }
.nav-list a:hover { background-size: 100% 2px; }

.header-actions { display: flex; align-items: center; gap: .85rem; }

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.lang-switch button {
  border: 0;
  background: transparent;
  padding: .45rem .62rem;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.lang-switch button[lang="ar"] { font-family: "IBM Plex Sans Arabic", sans-serif; letter-spacing: 0; font-size: .8rem; }
.lang-switch button:hover { color: var(--ink); }
.lang-switch button[aria-pressed="true"] {
  background: var(--cream-hi);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(10, 51, 54, .14);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--cream-hi);
  cursor: pointer;
  place-items: center;
}
.menu-icon { position: relative; width: 18px; height: 10px; }
.menu-icon span {
  position: absolute;
  inset-inline: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .25s var(--ease), top .25s var(--ease);
}
.menu-icon span:first-child { top: 0; }
.menu-icon span:last-child { top: 8px; }
.menu-toggle[aria-expanded="true"] .menu-icon span:first-child { top: 4px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon span:last-child { top: 4px; transform: rotate(-45deg); }

.mobile-menu {
  border-top: 1px solid var(--line);
  padding: .5rem 0 1.5rem;
}
.mobile-list { list-style: none; margin: 0; padding: 0; }
.mobile-list a {
  display: block;
  padding: .9rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 600;
  text-decoration: none;
}
.mobile-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.25rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: clip;
  padding-block: clamp(1.5rem, 4vw, 3.5rem) clamp(4.5rem, 9vw, 7.5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, .84fr);
  align-items: center;
  gap: clamp(2rem, 4.5vw, 4.5rem);
}

.hero-copy .lead { margin-block: 1.6rem 2.25rem; }
.hero-merchant { margin-top: 1.75rem; color: var(--ink-soft); font-size: .98rem; }

.hero-art {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1;
  justify-self: center;
}

.hero-plate {
  position: absolute;
  inset: 9% 6% 5% 8%;
  border-radius: 50%;
  background: var(--paper);
}
.hero-plate::after {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  border: 1.5px dashed var(--line-strong);
}

.hero-bag {
  position: absolute;
  inset-inline-start: 13%;
  top: 2%;
  width: 78%;
}

/* Ticket: two parts with real notches cut by masks */
.ticket {
  position: absolute;
  inset-inline-start: -3%;
  bottom: 7%;
  width: min(292px, 60%);
  transform: rotate(-4deg);
  filter: drop-shadow(0 1px 0 rgba(10, 51, 54, .06)) drop-shadow(0 18px 26px rgba(10, 51, 54, .2));
}
[dir="rtl"] .ticket { transform: rotate(4deg); }

.ticket-main,
.ticket-stub { background: var(--cream-hi); }

.ticket-main {
  padding: 1.05rem 1.15rem .95rem;
  border-radius: 16px 16px 0 0;
  -webkit-mask: radial-gradient(circle 10px at 0 100%, #0000 97%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 10px at 100% 100%, #0000 97%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 10px at 0 100%, #0000 97%, #000) left / 51% 100% no-repeat,
        radial-gradient(circle 10px at 100% 100%, #0000 97%, #000) right / 51% 100% no-repeat;
}

.ticket-stub {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .95rem 1.15rem 1rem;
  border-radius: 0 0 16px 16px;
  background-image: linear-gradient(90deg, var(--line-strong) 55%, transparent 0);
  background-size: 9px 1.5px;
  background-repeat: repeat-x;
  background-position: 14px 0;
  -webkit-mask: radial-gradient(circle 10px at 0 0, #0000 97%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 10px at 100% 0, #0000 97%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 10px at 0 0, #0000 97%, #000) left / 51% 100% no-repeat,
        radial-gradient(circle 10px at 100% 0, #0000 97%, #000) right / 51% 100% no-repeat;
}

.ticket-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.ticket-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
:lang(ar) .ticket-label { letter-spacing: 0; font-size: .8rem; }
.ticket-tag {
  padding: .28rem .55rem;
  border-radius: 999px;
  background: var(--paper);
  font-size: .66rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.ticket-shop {
  margin: .6rem 0 .3rem;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.22rem;
  line-height: 1.2;
}
.ticket-time {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .25rem .4rem;
  font-size: .82rem;
  color: var(--ink-soft);
}
.ticket-time svg { width: 15px; height: 15px; }
.ticket-hours { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.ticket-old {
  font-size: .92rem;
  color: var(--ink-soft);
  text-decoration-color: var(--berry);
  text-decoration-thickness: 1.5px;
}
.ticket-new {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.7rem;
  line-height: 1;
  letter-spacing: -.02em;
}
:lang(ar) .ticket-new { font-weight: 700; letter-spacing: 0; }
.ticket-mark { width: 34px; height: 25px; margin-inline-start: auto; fill: var(--gold); }

.stamp {
  position: absolute;
  inset-inline-end: 1%;
  top: 6%;
  width: clamp(88px, 10vw, 122px);
  height: auto;
  opacity: .92;
  transform: rotate(14deg);
}

/* entrance */
.hero-copy > * { animation: rise .8s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .06s; }
.hero-copy > :nth-child(3) { animation-delay: .12s; }
.hero-copy > :nth-child(4) { animation-delay: .18s; }
.hero-copy > :nth-child(5) { animation-delay: .24s; }
.hero-plate { animation: fade .9s var(--ease) .1s both; }
.hero-bag { animation: rise 1s var(--ease) .15s both; }
.ticket { animation: ticket-in .9s var(--ease) .45s both; }
.stamp { animation: stamp .55s cubic-bezier(.3, 1.4, .5, 1) .85s both; }

@keyframes rise { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ticket-in { from { opacity: 0; translate: 0 28px; } to { opacity: 1; translate: 0 0; } }
@keyframes stamp {
  from { opacity: 0; scale: 1.35; }
  to { opacity: .92; scale: 1; }
}

/* ---------- Sections ---------- */
.section { position: relative; padding-block: clamp(4.5rem, 9vw, 8rem); }
.section-head { max-width: 40rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }

/* perforated top edge, like a torn ticket stub */
.how::before,
.faq::before,
.dark::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: -1px;
  height: 14px;
  background: radial-gradient(circle at 50% 0, var(--edge) 7px, #0000 7.5px) 0 0 / 26px 14px repeat-x;
}

/* ---------- How it works ---------- */
.how { --edge: var(--cream); background: var(--paper); }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.step {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  padding: 1.75rem 1.6rem 1.6rem;
  border-radius: 24px;
  background: var(--cream-hi);
  border: 1px solid var(--line);
}
.step-num {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 2.1rem;
  line-height: 1;
  color: var(--gold-mid);
  margin-bottom: .35rem;
}
.step > p { color: var(--ink-soft); margin-bottom: 1.25rem; }

.ui {
  margin-top: auto;
  padding: .8rem;
  border-radius: 18px;
  background: var(--paper);
  font-size: .86rem;
  line-height: 1.3;
}

.ui-list { display: grid; gap: .45rem; }
.ui-row {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .55rem .65rem;
  border-radius: 12px;
  background: var(--cream-hi);
}
.ui-dot {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--ink);
  fill: var(--gold);
}
.ui-dot svg { width: 20px; height: 15px; }
.ui-dot-alt { background: var(--gold); fill: var(--ink); }
.ui-name { display: flex; flex-direction: column; min-width: 0; }
.ui-name b { font-weight: 700; }
.ui-name small { font-size: .74rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.ui-price { margin-inline-start: auto; font-weight: 700; font-variant-numeric: tabular-nums; }

.ui-reserve { display: grid; gap: .5rem; }
.ui-slot {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .7rem .8rem;
  border-radius: 12px;
  background: var(--cream-hi);
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.ui-slot svg { width: 16px; height: 16px; }
.ui-confirm {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .8rem;
  border-radius: 12px;
  background: var(--ink);
  color: var(--cream);
  font-weight: 700;
}
.ui-confirm svg { width: 18px; height: 18px; color: var(--gold); }

.ui-qr { display: flex; align-items: center; gap: 1rem; }
.qr {
  flex: none;
  width: 92px;
  height: 92px;
  padding: 6px;
  border-radius: 12px;
  background: var(--cream-hi);
  color: var(--ink);
  fill: currentColor;
  stroke-width: 1;
}
.ui-qr span { color: var(--ink-soft); }

/* ---------- Baskets ---------- */
.baskets-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: 1.5rem 4rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.baskets-intro { color: var(--ink-soft); font-size: 1.08rem; max-width: 30rem; }

.basket-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
}

.basket-art {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  margin-bottom: 1.15rem;
  border-radius: 28px;
  background: var(--paper);
  overflow: hidden;
}
.basket:nth-child(even) .basket-art { background: var(--paper-2); }
.basket-art img { width: 82%; transition: transform .6s var(--ease); }
.basket:hover .basket-art img { transform: translateY(-5px) rotate(-1.5deg); }
.basket p { margin-top: .4rem; color: var(--ink-soft); font-size: .96rem; }

/* ---------- Dark sections ---------- */
.dark { background: var(--ink); color: var(--cream); }
.dark .eyebrow { color: var(--gold); }

.impact { --edge: var(--cream); }

.statement {
  max-width: 15.5em;
  margin-bottom: clamp(3rem, 6vw, 5rem);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 1.2rem + 3.7vw, 4.3rem);
  line-height: 1.05;
  letter-spacing: -.024em;
  text-wrap: balance;
}
.statement em { color: var(--gold); }
:lang(ar) .statement { font-weight: 700; letter-spacing: 0; line-height: 1.35; }

.impact-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: clamp(2.5rem, 6vw, 6rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid rgba(253, 248, 243, .16);
}

.fact { margin: 0; display: grid; gap: 1.1rem; }
.fact-num {
  display: flex;
  align-items: baseline;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: clamp(4.5rem, 2.8rem + 6vw, 8rem);
  line-height: .85;
  letter-spacing: -.04em;
  color: var(--gold);
}
.fact-num i { font-weight: 400; opacity: .75; margin-inline: .04em; }
.fact p { max-width: 22rem; font-size: 1.22rem; line-height: 1.5; }
.fact cite { font-style: normal; font-size: .8rem; color: rgba(253, 248, 243, .6); }

.impact-list { list-style: none; margin: 0; padding: 0; }
.impact-list li {
  display: grid;
  grid-template-columns: 13.5rem minmax(0, 1fr);
  gap: 1.5rem;
  padding-block: 1.5rem;
  border-bottom: 1px solid rgba(253, 248, 243, .12);
}
.impact-list li:first-child { padding-top: 0; }
.impact-list li:last-child { border-bottom: 0; }
.impact-list h3 { font-family: var(--f-display); font-weight: 600; font-size: 1.3rem; line-height: 1.3; color: var(--gold); }
.impact-list p { color: rgba(253, 248, 243, .8); }

/* ---------- Merchants ---------- */
.merchants-grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6rem);
}

.merchants-art {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  border-radius: 32px;
  background: var(--paper);
}
.merchants-art::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 22px;
  border: 1.5px dashed var(--line-strong);
  pointer-events: none;
}
.merchants-art img { width: 90%; }

.merchants-copy .lead { margin-top: 1.4rem; }

.features {
  list-style: none;
  margin: 2.25rem 0 2.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem 2.25rem;
}
.features li { display: flex; gap: .95rem; }
.feature-num {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: .98rem;
  color: var(--gold-ink);
}
.features h3 { margin: .2rem 0 .3rem; font-size: 1.04rem; font-weight: 700; line-height: 1.3; }
.features p { font-size: .96rem; color: var(--ink-soft); }

.merchants-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; }
.note { font-size: .92rem; color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq { --edge: var(--cream); background: var(--paper); }

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: clamp(2.5rem, 6vw, 6rem);
}
.faq-head { position: sticky; top: calc(var(--header-h) + 2rem); }
.faq-more { margin-top: 1.5rem; color: var(--ink-soft); }
.faq-more a,
.qa-a a {
  color: var(--ink);
  font-weight: 700;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: .22em;
  overflow-wrap: anywhere;
}

.faq-list { border-top: 1px solid var(--line-strong); }
.qa { border-bottom: 1px solid var(--line-strong); }
.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.4rem;
  list-style: none;
  cursor: pointer;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.22rem;
  line-height: 1.35;
}
:lang(ar) .qa summary { font-weight: 700; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover .qa-icon { background: var(--cream-hi); }

.qa-icon {
  position: relative;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  transition: transform .3s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.qa-icon::before,
.qa-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 1.7px;
  border-radius: 2px;
  background: currentColor;
  translate: -50% -50%;
}
.qa-icon::after { rotate: 90deg; }
.qa[open] .qa-icon { transform: rotate(45deg); background: var(--ink); color: var(--cream); }

.qa::details-content {
  block-size: 0;
  overflow: clip;
  transition: block-size .35s var(--ease), content-visibility .35s allow-discrete;
}
.qa[open]::details-content { block-size: auto; }

.qa-a { padding-block-end: 1.5rem; padding-inline-end: 3.5rem; color: var(--ink-soft); }
.qa-a p { max-width: 38rem; }

/* ---------- Download ---------- */
.download { --edge: var(--paper); overflow: clip; }
.download-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
}
.download .h2 { max-width: 14em; }
.download .lead { margin-block: 1.4rem 2.2rem; color: rgba(253, 248, 243, .8); }

.download-art {
  position: relative;
  display: grid;
  place-items: center;
  justify-self: center;
  width: min(100%, 400px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--cream);
}
.download-art::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  border: 1.5px dashed var(--line-strong);
}
.download-art img { position: relative; z-index: 1; width: 78%; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--teal-900);
  color: rgba(253, 248, 243, .8);
  padding-top: clamp(3.5rem, 6vw, 5rem);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(253, 248, 243, .12);
}
.footer-brand .logo { width: 96px; height: 52px; color: var(--gold); }
.footer-brand p {
  max-width: 17rem;
  margin-block: 1.1rem 1.6rem;
  font-family: var(--f-display);
  font-size: 1.2rem;
  line-height: 1.35;
  color: var(--cream);
}
.socials { display: flex; gap: .6rem; list-style: none; margin: 0; padding: 0; }
.socials a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(253, 248, 243, .22);
  color: var(--cream);
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.socials a:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.socials svg { width: 19px; height: 19px; fill: currentColor; }

.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.footer-cols h2 {
  margin-bottom: 1.1rem;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
}
:lang(ar) .footer-cols h2 { letter-spacing: 0; font-size: .9rem; }
.footer-cols ul { display: grid; gap: .75rem; list-style: none; margin: 0; padding: 0; }
.footer-cols a { color: var(--cream); text-decoration: none; opacity: .86; transition: opacity .2s; }
.footer-cols a:hover { opacity: 1; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: .25em; }

.footer-bottom { padding-block: 1.5rem 2rem; font-size: .86rem; color: rgba(253, 248, 243, .56); }

/* ---------- Scroll reveal (enabled by site.js) ---------- */
.reveal-ready [data-reveal] {
  opacity: 0;
  translate: 0 16px;
  transition: opacity .7s var(--ease), translate .7s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.reveal-ready [data-reveal].is-in { opacity: 1; translate: 0 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-list { gap: 1.35rem; }
  .header-bar { gap: 1.25rem; }
  .impact-list li { grid-template-columns: 10rem minmax(0, 1fr); }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .nav,
  .header-actions > .lang-switch { display: none; }
  .header-actions { margin-inline-start: auto; }
  .menu-toggle { display: grid; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 470px; margin-top: .5rem; }

  .steps { grid-template-columns: 1fr; max-width: 560px; }
  .baskets-head { grid-template-columns: 1fr; }
  .basket-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .impact-grid { grid-template-columns: 1fr; }

  .merchants-grid { grid-template-columns: 1fr; }
  .merchants-art { aspect-ratio: 4 / 3; max-width: 560px; }
  .merchants-art img { width: 66%; }

  .faq-grid { grid-template-columns: 1fr; }
  .faq-head { position: static; }

  .download-grid { grid-template-columns: 1fr; }
  .download-art { width: min(80%, 320px); justify-self: start; }

  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .header-cta { display: none; }
  .logo { width: 68px; height: 37px; }

  .store-row { flex-direction: column; align-items: stretch; }
  .store-btn { min-width: 0; }

  .ticket { width: 60%; inset-inline-start: -1%; bottom: -4%; }
  .ticket-label { font-size: .6rem; letter-spacing: .1em; }
  .ticket-main { padding: .85rem .9rem .8rem; }
  .ticket-stub { padding: .8rem .9rem .85rem; }
  .ticket-shop { font-size: 1.05rem; }
  .ticket-new { font-size: 1.45rem; }

  .basket-grid { gap: 1.25rem .9rem; }
  .basket-art { border-radius: 20px; }
  .h4 { font-size: 1.15rem; }
  .basket p { font-size: .88rem; }

  .impact-list li { grid-template-columns: 1fr; gap: .4rem; }
  .features { grid-template-columns: 1fr; }
  .qa summary { font-size: 1.1rem; }
  .qa-a { padding-inline-end: 0; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal-ready [data-reveal] { opacity: 1; translate: none; }
}

/* ==========================================================================
   Inner pages: /support/, /privacy, /terms
   ========================================================================== */
.perf::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: -1px;
  height: 14px;
  background: radial-gradient(circle at 50% 0, var(--edge, var(--cream)) 7px, #0000 7.5px) 0 0 / 26px 14px repeat-x;
}
.paper { background: var(--paper); }

.page-hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 6vw, 5rem); }
.page-title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 1.5rem + 3.4vw, 4rem);
  line-height: 1.04;
  letter-spacing: -.026em;
  text-wrap: balance;
}
:lang(ar) .page-title { font-weight: 700; letter-spacing: 0; line-height: 1.3; }
.page-hero .lead { margin-top: 1.3rem; }

/* notched card, shared by the support contact card */
.notch-bottom {
  -webkit-mask: radial-gradient(circle 12px at 0 100%, #0000 97%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 12px at 100% 100%, #0000 97%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 12px at 0 100%, #0000 97%, #000) left / 51% 100% no-repeat,
        radial-gradient(circle 12px at 100% 100%, #0000 97%, #000) right / 51% 100% no-repeat;
}
.notch-top {
  -webkit-mask: radial-gradient(circle 12px at 0 0, #0000 97%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 12px at 100% 0, #0000 97%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 12px at 0 0, #0000 97%, #000) left / 51% 100% no-repeat,
        radial-gradient(circle 12px at 100% 0, #0000 97%, #000) right / 51% 100% no-repeat;
}

/* ---------- Support ---------- */
.support-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5.5rem);
}

.contact-card {
  position: relative;
  width: 100%;
  max-width: 500px;
  justify-self: end;
  filter: drop-shadow(0 1px 0 rgba(10, 51, 54, .06)) drop-shadow(0 22px 34px rgba(10, 51, 54, .18));
  transform: rotate(-1.5deg);
}
[dir="rtl"] .contact-card { justify-self: start; transform: rotate(1.5deg); }
.cc-main {
  padding: 1.8rem 1.9rem 1.6rem;
  border-radius: 24px 24px 0 0;
  background: var(--cream-hi);
}
.cc-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
:lang(ar) .cc-label { letter-spacing: 0; font-size: .9rem; }
.cc-email {
  display: inline-block;
  margin-top: .65rem;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.45rem, 1.05rem + 1.6vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -.015em;
  color: var(--ink);
  text-decoration: none;
  overflow-wrap: anywhere;
  direction: ltr;
  background: linear-gradient(var(--gold), var(--gold)) no-repeat 0 100% / 0 2px;
  transition: background-size .3s var(--ease);
}
.cc-email:hover { background-size: 100% 2px; }
.cc-time { display: flex; align-items: center; gap: .45rem; margin-top: .75rem; color: var(--ink-soft); font-size: .95rem; }
.cc-time svg { width: 17px; height: 17px; flex: none; }
.cc-stub {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  padding: 1.15rem 1.9rem 1.5rem;
  border-radius: 0 0 24px 24px;
  background-color: var(--cream-hi);
  background-image: linear-gradient(90deg, var(--line-strong) 55%, transparent 0);
  background-size: 9px 1.5px;
  background-repeat: repeat-x;
  background-position: 16px 0;
}
.cc-stamp {
  position: absolute;
  top: -34px;
  inset-inline-end: -22px;
  width: 104px;
  height: auto;
  transform: rotate(12deg);
  opacity: .92;
}

.btn-ghost {
  border: 0;
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  cursor: pointer;
}
.btn-ghost:hover { background: var(--paper); }
.btn-ghost.is-done { background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--gold); }
.btn svg.i-left { width: 1.05em; height: 1.05em; }
.btn:hover svg.i-left,
[dir="rtl"] .btn svg.i-left,
[dir="rtl"] .btn:hover svg.i-left { transform: none; }

.support-body-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: clamp(2.5rem, 6vw, 6rem);
}
.support-h2 {
  margin-bottom: 1.5rem;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 1.95rem);
  line-height: 1.2;
  letter-spacing: -.012em;
}
:lang(ar) .support-h2 { font-weight: 700; letter-spacing: 0; }

.tips-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; counter-reset: tip; }
.tips-list li { display: flex; align-items: flex-start; gap: .9rem; color: var(--ink-soft); counter-increment: tip; }
.tips-list li::before {
  content: counter(tip);
  flex: none;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: .95rem;
  color: var(--gold-ink);
}
.tips-list span { padding-top: .2rem; }

.quick-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.quick-links a {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  height: 100%;
  padding: 1.35rem 3.2rem 1.4rem 1.4rem;
  border-radius: 20px;
  background: var(--cream-hi);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
[dir="rtl"] .quick-links a { padding: 1.35rem 1.4rem 1.4rem 3.2rem; }
.quick-links a:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 14px 28px -20px rgba(10, 51, 54, .5); }
.quick-links h3 { font-family: var(--f-display); font-weight: 600; font-size: 1.18rem; line-height: 1.25; }
:lang(ar) .quick-links h3 { font-weight: 700; }
.quick-links p { color: var(--ink-soft); font-size: .93rem; }
.quick-links svg {
  position: absolute;
  top: 1.45rem;
  inset-inline-end: 1.25rem;
  width: 20px;
  height: 20px;
  color: var(--gold-ink);
  transition: transform .2s var(--ease);
}
.quick-links a:hover svg { transform: translateX(3px); }
[dir="rtl"] .quick-links svg { transform: scaleX(-1); }
[dir="rtl"] .quick-links a:hover svg { transform: scaleX(-1) translateX(3px); }

/* ---------- Legal ---------- */
.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  margin-top: 1.4rem;
  font-size: .9rem;
  color: var(--ink-soft);
}
.legal-meta strong { color: var(--ink); font-weight: 700; }
.legal-note {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1.4rem;
  padding: .6rem .95rem;
  border-radius: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: .92rem;
  color: var(--ink-soft);
}
.legal-note:empty { display: none; }

.legal-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  align-items: start;
  gap: clamp(2.5rem, 5vw, 5rem);
  padding-block: clamp(.5rem, 1.5vw, 1.25rem) clamp(4rem, 8vw, 7rem);
}

.legal-layout > aside { align-self: stretch; }

.toc {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  max-height: calc(100vh - var(--header-h) - 3rem);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.toc-title {
  margin-bottom: .9rem;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
:lang(ar) .toc-title { letter-spacing: 0; font-size: .9rem; }
.toc ol { list-style: none; margin: 0; padding: 0; border-inline-start: 1.5px solid var(--line-strong); }
.toc a {
  display: block;
  margin-inline-start: -1.5px;
  padding: .36rem .95rem;
  border-inline-start: 1.5px solid transparent;
  font-size: .88rem;
  line-height: 1.35;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color .15s, border-color .15s;
}
.toc a:hover { color: var(--ink); }
.toc a[aria-current="true"] { color: var(--ink); border-color: var(--gold); font-weight: 600; }
.toc-mobile { display: none; }

.prose { max-width: 70ch; font-size: 1.02rem; line-height: 1.7; color: var(--ink-soft); }
.prose > :first-child { margin-top: 0 !important; padding-top: 0 !important; border-top: 0 !important; }
.prose h2 {
  margin: 3rem 0 1rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--line-strong);
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.45rem, 1.2rem + .8vw, 1.85rem);
  line-height: 1.2;
  letter-spacing: -.012em;
  color: var(--ink);
}
.prose h3 {
  margin: 1.9rem 0 .6rem;
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
}
.prose h4 { margin: 1.4rem 0 .5rem; font-size: .98rem; font-weight: 700; color: var(--ink); }
.prose p,
.prose ul,
.prose ol { margin: 0 0 1rem; }
.prose ul,
.prose ol { padding-inline-start: 1.25rem; }
.prose li { margin-block: .35rem; padding-inline-start: .2rem; }
.prose li::marker { color: var(--gold-mid); }
.prose strong { color: var(--ink); font-weight: 700; }
.prose a {
  color: var(--ink);
  font-weight: 600;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1.5px;
  text-underline-offset: .2em;
  overflow-wrap: anywhere;
}
.prose .legal-highlight {
  margin: 1.5rem 0;
  padding: 1.2rem 1.4rem;
  border-radius: 16px;
  background: var(--paper);
  border-inline-start: 3px solid var(--gold);
}
.prose .legal-highlight > :last-child { margin-bottom: 0; }
.back-top {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: 2.5rem;
  font-weight: 700;
  font-size: .95rem;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: .25em;
}
.back-top svg { width: 1em; height: 1em; rotate: -90deg; }

@media (max-width: 960px) {
  .support-hero-grid,
  .support-body-grid { grid-template-columns: 1fr; }
  .contact-card,
  [dir="rtl"] .contact-card { justify-self: start; margin-top: 1rem; }

  .legal-layout { grid-template-columns: 1fr; gap: 0; padding-top: 0; }
  .legal-layout > aside,
  .toc { display: none; }
  .toc-mobile {
    display: block;
    margin-bottom: 2rem;
    border-radius: 16px;
    background: var(--paper);
    border: 1px solid var(--line);
  }
  .toc-mobile summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.2rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
  }
  .toc-mobile summary::-webkit-details-marker { display: none; }
  .toc-mobile summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--gold-ink); }
  .toc-mobile[open] summary::after { content: "\2212"; }
  .toc-mobile ol { list-style: none; margin: 0; padding: 0 1.2rem 1rem; }
  .toc-mobile a { display: block; padding: .45rem 0; border-top: 1px solid var(--line); color: var(--ink-soft); text-decoration: none; font-size: .95rem; }
}

@media (max-width: 600px) {
  .quick-links { grid-template-columns: 1fr; }
  .cc-main { padding: 1.5rem 1.4rem 1.3rem; }
  .cc-stub { padding: 1rem 1.4rem 1.25rem; }
  .cc-stub .btn { flex: 1 1 auto; }
  .cc-stamp { width: 82px; top: -26px; inset-inline-end: -8px; }
}

.nowrap { white-space: nowrap; }

/* ==========================================================================
   Partner registration: /forms/vendor-registration
   ========================================================================== */
[hidden] { display: none !important; }

button.btn { border: 0; cursor: pointer; font-family: inherit; }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }

.vendor { padding-block: clamp(2rem, 5vw, 4rem) clamp(4rem, 8vw, 7rem); }
.vendor-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: clamp(2rem, 5vw, 5rem);
}
.vendor-aside { position: sticky; top: calc(var(--header-h) + 2rem); }
.vendor-intro .lead { margin-top: 1.3rem; }

.next-steps { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line-strong); }
.next-title {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
:lang(ar) .next-title { letter-spacing: 0; font-size: .9rem; }
.next-list { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 1.2rem; counter-reset: next; }
.next-list li { display: flex; gap: .9rem; counter-increment: next; }
.next-list li::before {
  content: counter(next);
  flex: none;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: .95rem;
  color: var(--gold-ink);
}
.next-list h3 { font-size: 1rem; font-weight: 700; line-height: 1.35; margin-top: .2rem; }
.next-list p { margin-top: .15rem; font-size: .95rem; color: var(--ink-soft); }

.form-card,
.vsuccess {
  position: relative;
  padding: clamp(1.25rem, 3.2vw, 2.4rem);
  border-radius: 28px;
  background: var(--cream-hi);
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(10, 51, 54, .04), 0 34px 60px -44px rgba(10, 51, 54, .4);
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

/* ---------- Stepper ---------- */
.stepper {
  --progress: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  margin: 0 0 2.25rem;
  padding: 0;
}
.stepper::before,
.stepper::after {
  content: "";
  position: absolute;
  top: 17px;
  inset-inline: calc(100% / 6);
  height: 2px;
  background: var(--line-strong);
}
.stepper::after {
  background: var(--ink);
  transform: scaleX(var(--progress));
  transform-origin: left center;
  transition: transform .35s var(--ease);
}
[dir="rtl"] .stepper::after { transform-origin: right center; }
.stepper li { position: relative; z-index: 1; display: flex; justify-content: center; }
.stepper-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
}
.stepper-item:disabled { cursor: default; }
.stepper-num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--cream-hi);
  border: 2px solid var(--line-strong);
  font-family: "Fraunces", Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.stepper-item.is-done .stepper-num { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.stepper-item[aria-current="step"] { color: var(--ink); }
.stepper-item[aria-current="step"] .stepper-num { background: var(--ink); border-color: var(--ink); color: var(--cream); }

/* ---------- Fields ---------- */
.vstep-title {
  margin-bottom: 1.6rem;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 1.2rem + .8vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -.012em;
  outline: none;
}
:lang(ar) .vstep-title { font-weight: 700; letter-spacing: 0; }

.field { min-width: 0; margin: 0 0 1.4rem; padding: 0; border: 0; }
.field-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 0 1rem; }
.label { display: block; margin-bottom: .5rem; padding: 0; font-size: .93rem; font-weight: 600; line-height: 1.3; color: var(--ink); }
.label .optional { font-weight: 500; color: var(--ink-soft); }

.input,
.select,
.textarea {
  width: 100%;
  min-height: 52px;
  padding: .8rem 1rem;
  border-radius: 14px;
  border: 1.5px solid var(--line-strong);
  background-color: #fff;
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1rem;           /* 16px: stops iOS from zooming on focus */
  line-height: 1.4;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.input::placeholder,
.textarea::placeholder { color: var(--ink-faint); opacity: 1; }
.input:hover,
.select:hover,
.textarea:hover { border-color: var(--ink-faint); }
.input:focus,
.select:focus,
.textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(216, 170, 104, .5); }
.select {
  padding-inline-end: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5.5 7.75 4.5 4.5 4.5-4.5' fill='none' stroke='%230A3336' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  background-size: 20px;
  cursor: pointer;
}
[dir="rtl"] .select { background-position: left .9rem center; }
.textarea { min-height: 130px; resize: vertical; }

.help { margin-top: .45rem; font-size: .86rem; color: var(--ink-soft); }
.error { margin-top: .45rem; font-size: .88rem; font-weight: 600; color: var(--berry); }
.error:empty { display: none; }
.has-error .input,
.has-error .select,
.has-error .phone,
.has-error .dropzone,
.has-error .chip span { border-color: var(--berry); }

.chips { display: flex; flex-wrap: wrap; gap: .55rem; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .55rem 1.1rem;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: #fff;
  font-size: .95rem;
  font-weight: 600;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), box-shadow .15s var(--ease);
}
.chip input:hover + span { border-color: var(--ink-faint); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(216, 170, 104, .6); }
.chip span[lang="ar"] { font-family: "IBM Plex Sans Arabic", sans-serif; }

.phone {
  display: flex;
  direction: ltr;
  border-radius: 14px;
  border: 1.5px solid var(--line-strong);
  background: #fff;
  overflow: hidden;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.phone:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(216, 170, 104, .5); }
.phone-prefix {
  display: grid;
  place-items: center;
  padding-inline: 1rem;
  background: var(--paper);
  border-right: 1.5px solid var(--line-strong);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.phone .input { min-height: 49px; border: 0; border-radius: 0; box-shadow: none; letter-spacing: .08em; font-variant-numeric: tabular-nums; }

/* ---------- Image fields ---------- */
.upload-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 0 1rem; }
.dropzone {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 196px;
  border-radius: 18px;
  border: 1.5px dashed var(--line-strong);
  background: var(--cream);
  text-align: center;
  overflow: hidden;
  transition: border-color .15s var(--ease), background-color .15s var(--ease), box-shadow .15s var(--ease);
}
.dropzone:hover,
.dropzone.is-dragging { border-color: var(--ink); background: var(--paper); }
.dropzone:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(216, 170, 104, .5); }
.dropzone-input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.dropzone-empty { display: grid; justify-items: center; gap: .25rem; padding: 1.25rem 1rem; pointer-events: none; }
.dropzone-empty svg { width: 30px; height: 30px; margin-bottom: .35rem; color: var(--gold-mid); }
.dropzone-cta { font-weight: 700; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: .22em; }
.dropzone-empty span:not(.dropzone-cta),
.dropzone-empty small { font-size: .86rem; color: var(--ink-soft); }
.dropzone.is-filled { border-style: solid; }
.dropzone.is-filled .dropzone-empty { display: none; }
.dropzone-filled { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; background: #fff; }
.dropzone-filled img { flex: 1; min-height: 0; width: 100%; object-fit: cover; }
.dropzone-logo .dropzone-filled img { object-fit: contain; padding: .75rem; }
.dropzone-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  padding: .5rem .8rem;
  border-top: 1px solid var(--line);
  font-size: .82rem;
}
.dropzone-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-soft); direction: ltr; }
.dropzone-actions { display: flex; flex: none; gap: .8rem; }

.link-btn {
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: .86rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: .22em;
  cursor: pointer;
}

/* ---------- Actions, alert ---------- */
.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.form-actions.end { justify-content: flex-end; }
.btn-back svg { transform: scaleX(-1); }
.btn-back:hover svg { transform: scaleX(-1) translateX(3px); }
[dir="rtl"] .btn-back svg { transform: none; }
[dir="rtl"] .btn-back:hover svg { transform: translateX(3px); }

.spinner {
  display: none;
  width: 1.1em;
  height: 1.1em;
  border-radius: 50%;
  border: 2px solid rgba(253, 248, 243, .35);
  border-top-color: var(--cream);
  animation: eb-spin .8s linear infinite;
}
.is-loading .spinner { display: inline-block; }
.is-loading svg { display: none; }
@keyframes eb-spin { to { transform: rotate(360deg); } }

.form-alert {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  margin-bottom: 1.5rem;
  padding: .9rem 1.1rem;
  border-radius: 14px;
  background: rgba(106, 22, 28, .06);
  border: 1px solid rgba(106, 22, 28, .28);
  color: var(--berry);
  font-size: .95rem;
  font-weight: 600;
}
.form-alert svg { flex: none; width: 20px; height: 20px; margin-top: .1rem; fill: currentColor; }

/* ---------- Review ---------- */
.summary { display: grid; gap: 1rem; margin-bottom: 1.75rem; }
.summary-group { padding: 1.1rem 1.25rem 1.25rem; border-radius: 18px; background: var(--cream); border: 1px solid var(--line); }
.summary-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; }
.summary-head h3 { font-family: var(--f-display); font-size: 1.12rem; font-weight: 600; }
:lang(ar) .summary-head h3 { font-weight: 700; }
.summary dl { display: grid; gap: .55rem; margin: 0; }
.summary dl > div { display: grid; grid-template-columns: 11.5rem minmax(0, 1fr); gap: 1rem; }
.summary dt { font-size: .9rem; color: var(--ink-soft); }
.summary dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
[dir="rtl"] .summary dd[dir="ltr"] { text-align: right; }
.summary-images { display: flex; align-items: center; gap: .75rem; margin-top: 1rem; }
.summary-images img { border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.summary-images .is-photo { width: 168px; aspect-ratio: 16 / 9; object-fit: cover; }
.summary-images .is-logo { width: 94px; height: 94px; object-fit: contain; }

.consent { margin-top: 1rem; font-size: .88rem; color: var(--ink-soft); }
.consent a { color: var(--ink); font-weight: 700; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: .22em; }

/* ---------- Success ---------- */
.vsuccess { overflow: hidden; padding-block: clamp(2rem, 5vw, 3.5rem); }
.vsuccess h2 { outline: none; max-width: 12em; }
.vsuccess p { margin-top: 1rem; max-width: 30rem; color: var(--ink-soft); }
.vsuccess p.vsuccess-lead { font-size: 1.15rem; color: var(--ink); }
.vsuccess-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.vsuccess-stamp { position: absolute; top: 1.25rem; inset-inline-end: 1.25rem; width: 110px; height: auto; transform: rotate(12deg); opacity: .92; }

@media (max-width: 960px) {
  .vendor-grid { grid-template-columns: 1fr; }
  .vendor-aside { display: contents; }
  .vendor-intro { order: 1; }
  .vendor-form-col { order: 2; }
  .next-steps { order: 3; margin-top: 0; }
}

@media (max-width: 600px) {
  .field-row,
  .upload-grid { grid-template-columns: 1fr; }
  .dropzone { min-height: 170px; }
  .stepper-item { font-size: .78rem; }
  .form-actions .btn { padding-inline: 1.15rem; }
  .summary dl > div { grid-template-columns: 1fr; gap: .1rem; }
  .summary-images .is-photo { width: 132px; }
  .summary-images .is-logo { width: 74px; height: 74px; }
  .vsuccess-stamp { width: 78px; top: .9rem; inset-inline-end: .9rem; }
  .vsuccess h2 { padding-inline-end: 4.5rem; }
}

/* ---------- 404 ---------- */
.notfound { padding-block: clamp(3rem, 8vw, 7rem); }
.notfound-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}
.notfound-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }
.notfound-art {
  position: relative;
  display: grid;
  place-items: center;
  justify-self: center;
  width: min(100%, 380px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--paper);
}
.notfound-art::after { content: ""; position: absolute; inset: 14px; border-radius: 50%; border: 1.5px dashed var(--line-strong); }
.notfound-art img { position: relative; z-index: 1; width: 78%; }
a.btn-ghost { text-decoration: none; }
@media (max-width: 960px) {
  .notfound-grid { grid-template-columns: 1fr; }
  .notfound-art { width: min(70%, 280px); justify-self: start; }
}

.type-other { margin-top: 1rem; }
