/* =====================================================================
   Spacing scale — fluid at every width, no breakpoint steps.
   --section-gap matches css/home.css exactly, so this page keeps the
   same vertical rhythm as the rest of the site.
   ===================================================================== */
:root {
  --section-gap: clamp(48px, 6vw, 96px);        /* section top/bottom */
  --section-head-gap: clamp(28px, 3.6vw, 56px); /* heading -> content  */
  --block-gap: clamp(20px, 2.6vw, 40px);        /* stacked blocks      */
  --split-gap: clamp(32px, 4.5vw, 72px);        /* two-column split    */
  --card-pad-y: clamp(22px, 2.2vw, 34px);       /* card interior       */
  --card-pad-x: clamp(18px, 1.9vw, 30px);

  /* Type. Tuned against features.css, which sets section headings to 28px
     and descriptions to 15px at <=1500px — a typical desktop. Fluid rather
     than stepped, so it is right at every width in between. */
  --fs-section-title: clamp(22px, 2.08vw, 40px);
  --fs-section-sub: clamp(14px, 1.18vw, 20px);
}

/* ============================================================
   shipping.css — Shipping & Delivery page hero
   Figma: DQQ Landing Page, node 2262:8778 ("1 · Hero")

   Layer order (bottom -> top), mirroring the Figma frame:
     wash -> grid -> glow -> routes -> fade -> badges -> content
   Tokens reused from style.css: --bs-primary (#24a259),
   --text-dark (#414141), --text-gray (#676767).
   ============================================================ */

.ship-hero {
  position: relative;
  overflow: hidden;
  background: #fff;
  border-bottom: 1px solid #ececec;
  padding-top: calc(var(--section-gap) + 56px);
  text-align: center;
  isolation: isolate;
}

/* ---- backdrop layers ---- */
.ship-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* radial wash: ellipse centred on the top edge (rx 2208, ry 1329 @1920) */
.ship-hero-wash {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1329px;
  background: radial-gradient(ellipse 115% 1329px at 50% 0%,
    #f4faf7 0%,
    #f4faf7 34%,
    rgba(244, 250, 247, 0) 72%);
}

/* 80px column/row grid, masked out toward the edges */
.ship-hero-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: clamp(600px, 50vw, 960px);
}

/* soft green glow above the headline */
.ship-hero-glow {
  position: absolute;
  top: -260px;
  left: 50%;
  transform: translateX(-50%);
  width: 57.29%;
  height: 560px;
}

/* the two shipping routes; also the coordinate space for the badges */
.ship-hero-routes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  aspect-ratio: 1920 / 860;
}

.ship-routes-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

/* white fade so the grid/routes dissolve before the content */
.ship-hero-fade {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: clamp(600px, 50vw, 960px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 50%, #ffffff 88%);
}

/* ---- floating status badges (same 1920x860 space as the routes) ---- */
.ship-hero-badges {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  aspect-ratio: 1920 / 860;
  pointer-events: none;
  z-index: 1;
}

/* Status chips behave like notifications: they slide in at a slot along the
   routes, hold, dismiss, then reappear elsewhere. js/ship-badges.js drives
   the position and toggles `.is-in`; the CSS positions below are the
   no-script resting places. */
.ship-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid #e4e6e8;
  border-radius: 8px;
  box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.08);
  white-space: nowrap;

  /* dismissed state — nudged back toward the flank it came from */
  opacity: 0;
  transform: translateX(var(--ship-enter, 0)) scale(0.92);
  transition:
    opacity 0.45s ease,
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.ship-badge[data-side="left"]  { --ship-enter: -20px; }
.ship-badge[data-side="right"] { --ship-enter: 20px; }

.ship-badge.is-in {
  opacity: 1;
  transform: translateX(0) scale(1);
  transition:
    opacity 0.5s ease,
    transform 0.62s cubic-bezier(0.34, 1.56, 0.64, 1);
  /* the float uses the independent `translate` property so it composes with
     the entrance `transform` instead of overriding it */
  animation: shipBadgeFloat 6s ease-in-out infinite;
}

.ship-badge-text {
  font-family: "MadaniArabic-Regular";
  font-size: 13px;
  line-height: 1.3;
  color: var(--text-dark);
}

.ship-badge-dot {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  flex-shrink: 0;
}

.ship-badge-transit  { left: 9.69%;  top: 28.84%; animation-delay: -1.2s; --ship-enter: -20px; }
.ship-badge-late     { left: 6.67%;  top: 48.14%; animation-delay: -3.4s; --ship-enter: -20px; }
.ship-badge-done     { left: 84.27%; top: 30.47%; animation-delay: -2.3s; --ship-enter: 20px; }
.ship-badge-ready    { left: 87.24%; top: 49.77%; animation-delay: -4.6s; --ship-enter: 20px; }

.ship-badge-transit .ship-badge-dot { background: #ffab00; }
.ship-badge-late .ship-badge-dot    { background: #e2243a; }
.ship-badge-done .ship-badge-dot    { background: #24a259; }
.ship-badge-ready .ship-badge-dot   { background: #8d8d8d; }

@keyframes shipBadgeFloat {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -7px; }
}

/* ---- content ---- */
.ship-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.ship-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  background: #fff;
  border: 1px solid #d3ecde;
  border-radius: 500px;
  box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.08);
}

.ship-chip-dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
}

.ship-chip-text {
  font-family: "MadaniArabic-SemiBold";
  font-size: 14px;
  line-height: 1.3;
  color: var(--bs-primary);
  white-space: nowrap;
}

.ship-hero-title {
  font-family: "MadaniArabic-SemiBold";
  font-size: clamp(30px, 5vw, 70px);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.7px;
  color: var(--text-dark);
  max-width: 799px;
  margin: 0;
}

[dir="ltr"] .ship-hero-title {
  max-width: 960px;
}

.ship-hero-subtitle {
  font-family: "MadaniArabic-Regular";
  font-size: clamp(16px, 2vw, 24px);
  line-height: 2.08;
  color: var(--text-gray);
  max-width: 744px;
  margin: 0;
}

[dir="ltr"] .ship-hero-subtitle {
  max-width: 860px;
}

.ship-hero-em {
  font-family: "MadaniArabic-Medium";
  color: var(--bs-primary);
}

.ship-hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 58px;
  padding: 0 34px;
  background: var(--bs-primary);
  border-radius: 13px;
  box-shadow: 0px 8px 22px 0px rgba(36, 162, 89, 0.26);
  font-family: "MadaniArabic-Regular";
  font-size: 16px;
  line-height: 24px;
  color: #fff;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ship-hero-cta:hover,
.ship-hero-cta:focus-visible {
  color: #fff;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 26px rgba(36, 162, 89, 0.35);
}

.ship-hero-cta:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 8px rgba(36, 162, 89, 0.2);
}

.ship-hero-cta-arrow {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.ship-hero-cta:hover .ship-hero-cta-arrow {
  transform: translateX(-4px);
}

[dir="ltr"] .ship-hero-cta:hover .ship-hero-cta-arrow {
  transform: translateX(4px);
}

/* idle shine sweep, matching the hero CTA on the other pages */
.ship-hero-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
  animation: shipBtnShine 4s ease-in-out 3s infinite;
  pointer-events: none;
}

@keyframes shipBtnShine {
  0%   { left: -100%; }
  20%  { left: 120%; }
  100% { left: 120%; }
}

/* ---- trust row ---- */
.ship-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.ship-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "MadaniArabic-Regular";
  font-size: 15px;
  line-height: 1.45;
  color: var(--text-gray);
}

.ship-trust-check {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.ship-trust-sep {
  width: 1px;
  height: 18px;
  background: #d9d9d9;
  flex-shrink: 0;
}

/* ---- browser mockup ---- */
.ship-browser {
  position: relative;
  z-index: 2;
  width: 77.08%;
  max-width: 1480px;
  margin: 73px auto 0;
  background: #fff;
  border: 1px solid #d9d9d9;
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.ship-browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 24px;
  background: #f9f9f9;
  border-bottom: 1px solid #ececec;
}

.ship-browser-url {
  padding: 6px 16px;
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  font-family: "MadaniArabic-Regular";
  font-size: 12px;
  line-height: 1.5;
  color: #8d8d8d;
  white-space: nowrap;
}

.ship-browser-dots {
  width: 46px;
  height: 10px;
  margin-inline-start: auto;
  flex-shrink: 0;
}

.ship-browser-viewport {
  position: relative;
  aspect-ratio: 1480 / 914;
  background: #f5f5f5;
  overflow: hidden;
}

.ship-browser-viewport img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #d3ecde;
}

/* =====================================================================
   Hero intro — the loader hands over via `html.hero-ready`
   (js/page-hero.js splits the title into `.hero-word` spans)
   ===================================================================== */
.ship-hero .ship-chip {
  opacity: 0;
  transform: translateY(-14px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.05s,
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.05s;
}

.hero-ready .ship-hero .ship-chip {
  opacity: 1;
  transform: translateY(0);
}

.ship-hero .hero-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.55em);
  filter: blur(8px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(0.25s + var(--w, 0) * 0.07s);
}

.hero-ready .ship-hero .hero-word {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.ship-hero .ship-hero-subtitle {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(4px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.95s,
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.95s,
    filter 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.95s;
}

.hero-ready .ship-hero .ship-hero-subtitle {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* trust row: each proof point arrives on its own beat */
.ship-hero .ship-trust-item,
.ship-hero .ship-trust-sep {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.ship-hero .ship-trust-item:nth-of-type(1) { transition-delay: 1.35s; }
.ship-hero .ship-trust-item:nth-of-type(2) { transition-delay: 1.5s; }
.ship-hero .ship-trust-item:nth-of-type(3) { transition-delay: 1.65s; }
.ship-hero .ship-trust-sep:nth-of-type(1)  { transition-delay: 1.45s; }
.ship-hero .ship-trust-sep:nth-of-type(2)  { transition-delay: 1.6s; }

.hero-ready .ship-hero .ship-trust-item,
.hero-ready .ship-hero .ship-trust-sep {
  opacity: 1;
  transform: translateY(0);
}

/* the check marks pop in just behind their label */
.ship-hero .ship-trust-check {
  transform: scale(0.4);
  opacity: 0;
  transition:
    transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.4s ease;
}

.ship-hero .ship-trust-item:nth-of-type(1) .ship-trust-check { transition-delay: 1.5s; }
.ship-hero .ship-trust-item:nth-of-type(2) .ship-trust-check { transition-delay: 1.65s; }
.ship-hero .ship-trust-item:nth-of-type(3) .ship-trust-check { transition-delay: 1.8s; }

.hero-ready .ship-hero .ship-trust-check {
  transform: scale(1);
  opacity: 1;
}

.ship-hero .ship-hero-cta {
  opacity: 0;
}

.hero-ready .ship-hero .ship-hero-cta {
  animation: shipCtaReveal 0.8s ease-out 1.2s forwards;
}

@keyframes shipCtaReveal {
  0%   { opacity: 0; transform: translateY(20px) scale(0.9); filter: blur(4px); }
  60%  { opacity: 1; filter: blur(0); }
  80%  { transform: translateY(-4px) scale(1.03); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

/* reveal rides `translate`/`scale` so the pointer tilt can own `transform` */
.ship-hero .ship-browser {
  opacity: 0;
  translate: 0 60px;
  scale: 0.98;
  transform-origin: 50% 0;
  transition:
    opacity 1s cubic-bezier(0.22, 1, 0.36, 1) 1.1s,
    translate 1.1s cubic-bezier(0.22, 1, 0.36, 1) 1.1s,
    scale 1.1s cubic-bezier(0.22, 1, 0.36, 1) 1.1s;
}

.hero-ready .ship-hero .ship-browser {
  opacity: 1;
  translate: 0 0;
  scale: 1;
}

/* the browser chrome fills in just after the frame lands */
.ship-hero .ship-browser-url,
.ship-hero .ship-browser-dots {
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity 0.6s ease 1.55s,
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) 1.55s;
}

.ship-hero .ship-browser-dots {
  transition-delay: 1.7s;
}

.hero-ready .ship-hero .ship-browser-url,
.hero-ready .ship-hero .ship-browser-dots {
  opacity: 1;
  transform: translateY(0);
}

/* =====================================================================
   Ambient motion — once the intro has landed the scene keeps moving:
   the backdrop breathes, shipments travel the routes, and every item
   holds a small loop of its own.
   ===================================================================== */

/* --- backdrop layers compose in with the headline --- */
.ship-hero-wash,
.ship-hero-grid,
.ship-hero-glow,
.ship-hero-routes {
  opacity: 0;
  transition: opacity 1.4s ease 0.15s;
}

.hero-ready .ship-hero-wash { opacity: 1; }
.hero-ready .ship-hero-grid { opacity: 1; transition-delay: 0.25s; }
.hero-ready .ship-hero-glow { opacity: 1; transition-delay: 0.1s; }
.hero-ready .ship-hero-routes { opacity: 1; transition-delay: 0.5s; }

/* grid: a slow parallax drift (transform only — the fade owns opacity) */
.hero-ready .ship-hero-grid {
  animation: shipGridDrift 26s ease-in-out 1.5s infinite;
}

@keyframes shipGridDrift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(0, -14px, 0); }
}

/* glow: breathing behind the headline */
.hero-ready .ship-hero-glow {
  animation: shipGlowBreathe 14s ease-in-out 1s infinite;
}

@keyframes shipGlowBreathe {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50%      { transform: translateX(-52%) scale(1.09); }
}

/* routes: the dashed segment travels the lane, like a shipment in motion */
.hero-ready .ship-route-flow-1 { animation: shipFlow1 6.5s linear 1.8s infinite; }
.hero-ready .ship-route-flow-2 { animation: shipFlow2 8.5s linear 2.4s infinite; }

@keyframes shipFlow1 { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -1120; } }
@keyframes shipFlow2 { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -1090; } }

/* English reads left-to-right, so the lanes flow the other way */
.hero-ready[dir="ltr"] .ship-route-flow-1 { animation-name: shipFlow1Ltr; }
.hero-ready[dir="ltr"] .ship-route-flow-2 { animation-name: shipFlow2Ltr; }

@keyframes shipFlow1Ltr { from { stroke-dashoffset: 0; } to { stroke-dashoffset: 1120; } }
@keyframes shipFlow2Ltr { from { stroke-dashoffset: 0; } to { stroke-dashoffset: 1090; } }

/* route endpoints ping like live tracking nodes */
.ship-route-pulse {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  opacity: 0;
}

.hero-ready .ship-route-pulse { animation: shipPing 3.6s ease-out infinite; }
.hero-ready .ship-route-pulse-1 { animation-delay: 2s; }
.hero-ready .ship-route-pulse-2 { animation-delay: 2.9s; }
.hero-ready .ship-route-pulse-3 { animation-delay: 3.4s; }
.hero-ready .ship-route-pulse-4 { animation-delay: 2.5s; }

@keyframes shipPing {
  0%        { transform: scale(1);   opacity: 0.55; }
  70%, 100% { transform: scale(4.5); opacity: 0; }
}

/* a soft band of light sweeping across the grid */
.ship-hero-sweep {
  position: absolute;
  top: 0;
  left: 100%;
  width: 40%;
  height: clamp(600px, 50vw, 960px);
  background: linear-gradient(100deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.55) 45%,
    rgba(233, 246, 238, 0.5) 55%,
    rgba(255, 255, 255, 0) 100%);
  opacity: 0;
  pointer-events: none;
}

[dir="ltr"] .ship-hero-sweep { left: -40%; }

.hero-ready .ship-hero-sweep { animation: shipSweep 11s ease-in-out 2.8s infinite; }
.hero-ready[dir="ltr"] .ship-hero-sweep { animation-name: shipSweepLtr; }

@keyframes shipSweep {
  0%        { transform: translateX(0); opacity: 0; }
  15%, 60%  { opacity: 0.85; }
  75%, 100% { transform: translateX(-350%); opacity: 0; }
}

@keyframes shipSweepLtr {
  0%        { transform: translateX(0); opacity: 0; }
  15%, 60%  { opacity: 0.85; }
  75%, 100% { transform: translateX(350%); opacity: 0; }
}

/* --- foreground items --- */

/* chip: a live status dot */
.hero-ready .ship-chip-dot {
  animation: shipChipDot 2.6s ease-in-out 1.4s infinite;
}

@keyframes shipChipDot {
  0%, 100% { transform: scale(1);    filter: drop-shadow(0 0 0 rgba(36, 162, 89, 0)); }
  50%      { transform: scale(1.25); filter: drop-shadow(0 0 6px rgba(36, 162, 89, 0.7)); }
}

/* subtitle: the green phrase underlines itself once the line has landed */
.ship-hero-em {
  position: relative;
}

.ship-hero-em::after {
  content: '';
  position: absolute;
  right: 0;
  left: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(36, 162, 89, 0.15), rgba(36, 162, 89, 0.75));
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) 1.5s;
}

[dir="ltr"] .ship-hero-em::after {
  transform-origin: left center;
}

.hero-ready .ship-hero-em::after {
  transform: scaleX(1);
}

/* CTA: label above the sweep, plus a slow inner glow */
.ship-hero-cta > span,
.ship-hero-cta > img {
  position: relative;
  z-index: 1;
}

.ship-hero-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 130%, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0) 62%);
  opacity: 0;
  pointer-events: none;
}

.hero-ready .ship-hero-cta::after {
  animation: shipCtaGlow 3.6s ease-in-out 2.4s infinite;
}

@keyframes shipCtaGlow {
  0%, 100% { opacity: 0; }
  50%      { opacity: 1; }
}

/* badges: each status square pings on its own rhythm */
.ship-badge-dot {
  position: relative;
}

.ship-badge-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: inherit;
  opacity: 0;
}

.hero-ready .ship-badge-dot::after {
  animation: shipDotPing 2.8s ease-out infinite;
}

.hero-ready .ship-badge-transit .ship-badge-dot::after { animation-delay: 2.4s; }
.hero-ready .ship-badge-done .ship-badge-dot::after    { animation-delay: 2.9s; }
.hero-ready .ship-badge-late .ship-badge-dot::after    { animation-delay: 3.3s; }
.hero-ready .ship-badge-ready .ship-badge-dot::after   { animation-delay: 3.7s; }

@keyframes shipDotPing {
  0%        { transform: scale(1);   opacity: 0.6; }
  70%, 100% { transform: scale(2.6); opacity: 0; }
}

/* browser: the dashboard drifts, revealing more of the screen */
.hero-ready .ship-browser-viewport img {
  animation: shipDashDrift 18s ease-in-out 3s infinite;
}

/* a screenshot already cropped to the viewport: fill it, nothing to drift to */
.ship-browser-viewport img.ship-dash-fit {
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.hero-ready .ship-browser-viewport img.ship-dash-fit {
  animation: none;
}

@keyframes shipDashDrift {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8%); }
}

/* and a reflection travels across the glass */
.ship-browser::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -35%;
  width: 35%;
  background: linear-gradient(105deg,
    rgba(255, 255, 255, 0) 20%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0) 80%);
  transform: skewX(-12deg);
  opacity: 0;
  pointer-events: none;
  z-index: 3;
}

.hero-ready .ship-browser::after {
  animation: shipBrowserSheen 9s ease-in-out 3.4s infinite;
}

@keyframes shipBrowserSheen {
  0%        { left: -35%; opacity: 0; }
  10%, 55%  { opacity: 0.9; }
  70%, 100% { left: 120%; opacity: 0; }
}

/* =====================================================================
   Reduced motion — show the finished scene, hold everything still
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  .ship-hero .ship-chip,
  .ship-hero .hero-word,
  .ship-hero .ship-hero-subtitle,
  .ship-hero .ship-trust-item,
  .ship-hero .ship-trust-sep,
  .ship-hero .ship-trust-check,
  .ship-hero .ship-hero-cta,
  .ship-hero .ship-badge,
  .ship-hero .ship-badge.is-in,
  .ship-hero .ship-browser,
  .ship-hero .ship-browser-url,
  .ship-hero .ship-browser-dots,
  .ship-hero-wash,
  .ship-hero-grid,
  .ship-hero-glow,
  .ship-hero-routes {
    opacity: 1;
    transform: none;
    translate: none;
    rotate: none;
    scale: none;
    filter: none;
    transition: none;
    animation: none;
  }

  .ship-hero-glow {
    transform: translateX(-50%);
  }

  .ship-hero-em::after {
    transform: scaleX(1);
    transition: none;
  }

  .ship-hero-sweep,
  .ship-route-pulse,
  .ship-badge-dot::after,
  .ship-browser::after,
  .ship-hero-cta::after,
  .ship-hero-cta::before {
    display: none;
  }

  .ship-route-flow,
  .ship-browser-viewport img {
    animation: none;
  }
}

/* =====================================================================
   Responsive — same breakpoint steps as the rest of the site
   ===================================================================== */
@media (max-width: 1500px) {

  .ship-hero-content {
    gap: 22px;
  }

  .ship-hero-cta {
    height: 52px;
    padding: 0 28px;
  }

  .ship-trust {
    gap: 20px;
    margin-top: 12px;
  }

  .ship-trust-item {
    font-size: 14px;
  }

  .ship-browser {
    width: 86%;
    margin-top: 56px;
    border-radius: 14px 14px 0 0;
  }
}

@media (max-width: 991px) {
  /* the routes and their badges frame the headline at desktop widths only */
  .ship-hero-routes,
  .ship-hero-badges {
    display: none;
  }


  .ship-hero-glow {
    top: -180px;
    width: 90%;
    height: 420px;
  }

  .ship-browser {
    width: 92%;
    margin-top: 44px;
  }

  .ship-browser-bar {
    padding: 12px 16px;
  }
}

@media (max-width: 576px) {
  .ship-hero {
    padding-top: 6rem;
  }

  .ship-hero-content {
    gap: 18px;
  }

  .ship-chip {
    padding: 8px 16px;
  }

  .ship-chip-text {
    font-size: 13px;
  }

  .ship-hero-title {
    font-size: 26px;
    letter-spacing: -0.3px;
  }

  .ship-hero-subtitle {
    font-size: 14px;
    line-height: 1.9;
  }

  .ship-hero-cta {
    height: 48px;
    width: 100%;
    max-width: 320px;
    font-size: 15px;
  }

  /* stack the trust items and drop the dividers */
  .ship-trust {
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
  }

  .ship-trust-sep {
    display: none;
  }

  .ship-trust-item {
    font-size: 13px;
  }

  .ship-browser {
    width: 94%;
    margin-top: 36px;
    border-radius: 12px 12px 0 0;
  }

  .ship-browser-url {
    font-size: 11px;
    padding: 5px 12px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .ship-browser-dots {
    width: 36px;
    height: 8px;
  }
}

/* ============================================================
   Comparison — current setup vs shipping through DQQ
   Figma: node 2295:8942 ("2 · المقارنة المدمجة")

   Figma's "Bold" maps to MadaniArabic-SemiBold (the heaviest face
   this project ships). Figures use a system stack rather than
   pulling in a webfont the site does not otherwise load.
   ============================================================ */

.ship-compare {
  background: #fff;
  padding: var(--section-gap) 0;
  --ship-figure: "Public Sans", "SF Pro Display", -apple-system,
    "Segoe UI", Roboto, system-ui, sans-serif;
}

.ship-compare-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--section-head-gap);
}

/* ---- section header ---- */
.ship-compare-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

/* the stats band below reuses this header treatment verbatim */
.ship-compare-title,
.ship-stats-title,
.ship-benefits-title,
.ship-stages-title,
.ship-start-title {
  font-family: "MadaniArabic-SemiBold";
  font-size: var(--fs-section-title);
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: -0.5px;
  color: var(--text-dark);
  margin: 0;
}

.ship-compare-subtitle,
.ship-stats-subtitle,
.ship-benefits-subtitle,
.ship-stages-subtitle,
.ship-start-subtitle {
  font-family: "MadaniArabic-Regular";
  font-size: var(--fs-section-sub);
  line-height: 2;
  color: var(--text-gray-60);
  max-width: 992px;
  margin: 0;
}

/* ---- the two cards and the VS rule between them ---- */
.ship-compare-grid {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 1360px;
}

.ship-card {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: var(--card-pad-y) var(--card-pad-x);
  border-radius: 16px;
}

.ship-card-now {
  background: #f9f9f9;
  border: 1px solid #d9d9d9;
}

.ship-card-dqq {
  background: #fff;
  border: 1px solid var(--bs-primary);
  box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.1);
}

/* card header: title at the reading start, status pill opposite */
.ship-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.ship-card-title {
  font-family: "MadaniArabic-SemiBold";
  font-size: clamp(18px, 1.3vw, 23px);
  font-weight: 400;
  line-height: 1.38;
  color: var(--text-dark);
  margin: 0;
}

.ship-card-pill {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 500px;
  background: #ececec;
  font-family: "MadaniArabic-Regular";
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-gray);
  white-space: nowrap;
}

.ship-card-pill-solid {
  background: var(--bs-primary);
  color: #fff;
}

.ship-card-desc {
  font-family: "MadaniArabic-Regular";
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-gray);
  margin: 0;
}

/* ---- numbered points ---- */
.ship-card-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ship-card-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.ship-card-n {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 500px;
  background: #ececec;
  font-family: var(--ship-figure);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  color: var(--text-gray-60);
}

.ship-card-dqq .ship-card-n {
  background: #e9f6ee;
  color: var(--bs-primary);
}

.ship-card-point {
  flex: 1 0 0;
  min-width: 0;
  font-family: "MadaniArabic-Regular";
  font-size: 16px;
  line-height: 1.63;
  color: var(--text-dark);
}

.ship-card-latin {
  font-family: var(--ship-figure);
  font-weight: 500;
}

/* ---- footer stat, pinned to the bottom so both cards line up ---- */
.ship-card-foot {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-radius: 8px;
  background: #f5f5f5;
  border: 1px solid #d9d9d9;
}

.ship-card-foot-green {
  background: #f4faf7;
  border-color: #d3ecde;
}

.ship-card-foot-label {
  font-family: "MadaniArabic-Regular";
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-gray);
}

.ship-card-foot-green .ship-card-foot-label {
  font-size: 16px;
  color: var(--text-gray-60);
}

.ship-card-foot-label s {
  text-decoration-thickness: from-font;
}

.ship-card-big {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  flex-shrink: 0;
}

.ship-card-num {
  font-family: var(--ship-figure);
  font-size: clamp(30px, 2.1vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-dark);
}

.ship-card-unit {
  font-family: "MadaniArabic-SemiBold";
  font-size: clamp(16px, 1.05vw, 20px);
  color: #545454;
}

/* ---- card footer action ---- */
.ship-card-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  border-radius: 16px;
  font-family: "MadaniArabic-SemiBold";
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
}

/* the left card's line is a statement, not an action */
.ship-card-cta-muted {
  border: 1px solid #d9d9d9;
  color: var(--text-gray-60);
}

.ship-card-cta-solid {
  position: relative;
  overflow: hidden;
  background: var(--bs-primary);
  color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ship-card-cta-solid:hover,
.ship-card-cta-solid:focus-visible {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(36, 162, 89, 0.3);
}

.ship-card-cta-solid::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
  animation: shipBtnShine 4s ease-in-out 3s infinite;
  pointer-events: none;
}

/* ---- VS column ---- */
.ship-compare-vs {
  position: relative;
  flex-shrink: 0;
  width: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ship-compare-rule {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: #d9d9d9;
}

.ship-compare-badge {
  position: relative;
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 500px;
  background: #fff;
  border: 1px solid #d9d9d9;
  box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.08);
  font-family: var(--ship-figure);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-gray-60);
}

/* =====================================================================
   Reveal — the page's .animate-on-scroll observer adds .animated
   ===================================================================== */
.ship-compare .ship-compare-title,
.ship-compare .ship-compare-subtitle,
.ship-stats .ship-stats-title,
.ship-stats .ship-stats-subtitle,
.ship-benefits .ship-benefits-title,
.ship-benefits .ship-benefits-subtitle,
.ship-stages .ship-stages-title,
.ship-stages .ship-stages-subtitle,
.ship-start .ship-start-title,
.ship-start .ship-start-subtitle {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.ship-compare .ship-compare-subtitle,
.ship-stats .ship-stats-subtitle,
.ship-benefits .ship-benefits-subtitle,
.ship-stages .ship-stages-subtitle,
.ship-start .ship-start-subtitle { transition-delay: 0.12s; }

.ship-compare.animated .ship-compare-title,
.ship-compare.animated .ship-compare-subtitle,
.ship-stats.animated .ship-stats-title,
.ship-stats.animated .ship-stats-subtitle,
.ship-benefits.animated .ship-benefits-title,
.ship-benefits.animated .ship-benefits-subtitle,
.ship-stages.animated .ship-stages-title,
.ship-stages.animated .ship-stages-subtitle,
.ship-start.animated .ship-start-title,
.ship-start.animated .ship-start-subtitle {
  opacity: 1;
  transform: translateY(0);
}

/* the cards close in from their own sides */
.ship-compare .ship-card {
  opacity: 0;
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s,
    translate 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.2s,
    scale 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}

.ship-compare .ship-card-now { translate: -36px 0; scale: 0.98; }
.ship-compare .ship-card-dqq { translate: 36px 0; scale: 0.98; }

.ship-compare.animated .ship-card {
  opacity: 1;
  translate: 0 0;
  scale: 1;
}

/* the VS badge drops in and settles */
.ship-compare .ship-compare-badge {
  opacity: 0;
  transform: scale(0.5) rotate(-25deg);
  transition:
    opacity 0.5s ease 0.75s,
    transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.75s;
}

.ship-compare.animated .ship-compare-badge {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.ship-compare .ship-compare-rule {
  transform: scaleY(0);
  transform-origin: 50% 50%;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.45s;
}

.ship-compare.animated .ship-compare-rule {
  transform: scaleY(1);
}

/* points tick in one after another */
.ship-compare .ship-card-item {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.5s ease,
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.ship-compare.animated .ship-card-item { opacity: 1; transform: translateY(0); }

.ship-compare .ship-card-item:nth-child(1) { transition-delay: 0.55s; }
.ship-compare .ship-card-item:nth-child(2) { transition-delay: 0.64s; }
.ship-compare .ship-card-item:nth-child(3) { transition-delay: 0.73s; }
.ship-compare .ship-card-item:nth-child(4) { transition-delay: 0.82s; }
.ship-compare .ship-card-item:nth-child(5) { transition-delay: 0.91s; }
.ship-compare .ship-card-item:nth-child(6) { transition-delay: 1s; }
.ship-compare .ship-card-item:nth-child(7) { transition-delay: 1.09s; }

/* the number badges pop a beat after their line */
.ship-compare .ship-card-n {
  transform: scale(0.4);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition-delay: inherit;
}

.ship-compare.animated .ship-card-n { transform: scale(1); }

/* footer stat and action */
.ship-compare .ship-card-foot,
.ship-compare .ship-card-cta {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.6s ease 1.15s,
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) 1.15s;
}

.ship-compare .ship-card-cta {
  transition-delay: 1.28s;
}

.ship-compare.animated .ship-card-foot,
.ship-compare.animated .ship-card-cta {
  opacity: 1;
  transform: translateY(0);
}

/* the headline figure lands with a little weight */
.ship-compare .ship-card-num {
  display: inline-block;
  transform: scale(0.6);
  transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 1.3s;
}

.ship-compare.animated .ship-card-num { transform: scale(1); }

/* =====================================================================
   Comparison — responsive
   ===================================================================== */
@media (max-width: 1500px) {
  .ship-card { gap: 20px; }
  .ship-card-desc { font-size: 15px; }
  .ship-card-point { font-size: 15px; }
  .ship-card-foot { padding: 18px 20px; }
  .ship-compare-vs { width: 72px; }
}

@media (max-width: 991px) {
  /* stack the cards; the VS rule becomes a divider between them */
  .ship-compare-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-width: 620px;
  }

  .ship-compare-vs {
    width: 100%;
    height: 84px;
  }

  .ship-compare-rule {
    top: 50%;
    bottom: auto;
    left: 0;
    right: 0;
    width: auto;
    height: 1px;
  }

  .ship-compare .ship-compare-rule { transform: scaleX(0); }
  .ship-compare.animated .ship-compare-rule { transform: scaleX(1); }

  /* both cards rise instead of closing in from the sides */
  .ship-compare .ship-card-now,
  .ship-compare .ship-card-dqq {
    translate: 0 28px;
    scale: 0.99;
  }

  .ship-compare.animated .ship-card { translate: 0 0; scale: 1; }
}

@media (max-width: 576px) {

  .ship-card { gap: 18px; border-radius: 14px; }

  .ship-card-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .ship-card-title { font-size: 20px; }
  .ship-card-desc { font-size: 14px; }
  .ship-card-point { font-size: 14px; }

  .ship-card-n { width: 24px; height: 24px; font-size: 12px; }

  .ship-card-foot {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 10px;
    padding: 16px;
    text-align: center;
  }

  .ship-card-big { justify-content: center; }
  .ship-card-foot-label,
  .ship-card-foot-green .ship-card-foot-label { font-size: 14px; }

  .ship-card-cta { font-size: 15px; padding: 13px; border-radius: 14px; }
  .ship-compare-vs { height: 64px; }
}

/* =====================================================================
   Comparison — reduced motion
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  .ship-compare .ship-compare-title,
  .ship-compare .ship-compare-subtitle,
  .ship-compare .ship-card,
  .ship-compare .ship-card-now,
  .ship-compare .ship-card-dqq,
  .ship-compare .ship-card-item,
  .ship-compare .ship-card-n,
  .ship-compare .ship-card-foot,
  .ship-compare .ship-card-cta,
  .ship-compare .ship-card-num,
  .ship-compare .ship-compare-badge,
  .ship-compare .ship-compare-rule {
    opacity: 1;
    transform: none;
    translate: none;
    rotate: none;
    scale: none;
    filter: none;
    transition: none;
    animation: none;
  }

  .ship-card-cta-solid::before,
  .ship-hero-bg::after {
    display: none;
  }
}

/* ============================================================
   Modern motion layer
   Everything here is progressive: each block is wrapped in a
   feature query or driven by a class js/ship-motion.js only adds
   on devices with a real pointer. Without support (or with
   reduced motion) the page keeps the baseline motion above.
   ============================================================ */

/* ---- 1. Spring easing -------------------------------------------------
   linear() lets us author a real spring instead of approximating one with
   a bezier. Declared inside @supports so older engines keep their bezier. */
@supports (transition-timing-function: linear(0, 1)) {
  .ship-compare .ship-card-n,
  .ship-compare .ship-card-num,
  .ship-compare .ship-compare-badge,
  .ship-hero .ship-trust-check {
    transition-timing-function:
      linear(0, 0.009, 0.035 2.1%, 0.141, 0.281 6.7%, 0.723 12.9%,
        0.938 16.7%, 1.017, 1.077, 1.121, 1.149 24.3%, 1.159, 1.163,
        1.161, 1.154 29.9%, 1.129 32.8%, 1.051 39.6%, 1.017 43.1%,
        0.991, 0.977 51%, 0.974 53.8%, 0.975 57.1%, 0.997 69.8%,
        1.003 76.9%, 1);
  }
}

/* ---- 2. Scroll-driven animation ---------------------------------------
   Where the browser supports scroll timelines the reveals become scrubbed
   rather than fire-and-forget, and the hero mockup gains true scroll
   parallax. Elsewhere the IntersectionObserver path above still runs. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    /* The dashboard inside the mockup scrolls with the page instead of
       drifting on a timer. Applied to the image, not the frame, so the
       frame keeps its entrance reveal. */
    .hero-ready .ship-browser-viewport img {
      animation: shipDashScroll linear both;
      animation-timeline: view();
      animation-range: entry 35% exit 15%;
    }

    @keyframes shipDashScroll {
      from { transform: translateY(0); }
      to   { transform: translateY(-13%); }
    }

    /* comparison cards scrub in as they enter, instead of snapping */
    .ship-compare .ship-card-now,
    .ship-compare .ship-card-dqq {
      animation: shipCardIn linear both;
      animation-timeline: view();
      animation-range: entry 10% cover 32%;
    }

    @keyframes shipCardIn {
      from { opacity: 0; translate: var(--ship-from-x, 0) 0; scale: 0.97; }
      to   { opacity: 1; translate: 0 0; scale: 1; }
    }

    .ship-compare .ship-card-now { --ship-from-x: -46px; }
    .ship-compare .ship-card-dqq { --ship-from-x: 46px; }

    @media (max-width: 991px) {
      .ship-compare .ship-card-now { --ship-from-x: 0; }
      .ship-compare .ship-card-dqq { --ship-from-x: 0; }
    }
  }
}

/* ---- 3. Pointer-reactive 3D tilt --------------------------------------
   js/ship-motion.js writes `transform` here; the reveals above use the
   independent translate/scale properties, so the two compose cleanly. */
.ship-tilt {
  transform-style: preserve-3d;
  will-change: transform;
}

/* The tilt transition has to be restated at each element's own specificity:
   the reveal rules above already own `transition` on these selectors, and a
   bare `.ship-tilt` rule would lose the cascade and leave the tilt snapping
   back on pointer-leave. `transform` is appended to the reveal's list. */
.ship-compare .ship-card.ship-tilt {
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s,
    translate 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.2s,
    scale 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.2s,
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.ship-compare .ship-card.ship-tilt.is-tilting {
  /* follow the pointer closely while it is over the card */
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s,
    translate 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.2s,
    scale 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.2s,
    transform 0.12s linear;
}

.ship-hero .ship-browser.ship-tilt {
  transition:
    opacity 1s cubic-bezier(0.22, 1, 0.36, 1) 1.1s,
    translate 1.1s cubic-bezier(0.22, 1, 0.36, 1) 1.1s,
    scale 1.1s cubic-bezier(0.22, 1, 0.36, 1) 1.1s,
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.ship-hero .ship-browser.ship-tilt.is-tilting {
  transition:
    opacity 1s cubic-bezier(0.22, 1, 0.36, 1) 1.1s,
    translate 1.1s cubic-bezier(0.22, 1, 0.36, 1) 1.1s,
    scale 1.1s cubic-bezier(0.22, 1, 0.36, 1) 1.1s,
    transform 0.12s linear;
}

/* a sheen that tracks the pointer across the card face */
.ship-card.ship-tilt::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle 260px at var(--ship-px, 50%) var(--ship-py, 50%),
    rgba(36, 162, 89, 0.1),
    rgba(36, 162, 89, 0) 70%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.ship-card.ship-tilt.is-tilting::after {
  opacity: 1;
}

.ship-card {
  position: relative;
}

/* keep the card's own content above the sheen */
.ship-card > * {
  position: relative;
  z-index: 1;
}

/* ---- 4. Cursor-follow glow in the hero --------------------------------
   A soft light that trails the pointer across the hero backdrop. */
.ship-hero-bg::after {
  content: "";
  position: absolute;
  left: var(--ship-mx, 50%);
  top: var(--ship-my, 34%);
  width: 620px;
  height: 620px;
  margin: -310px 0 0 -310px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(36, 162, 89, 0.13),
    rgba(36, 162, 89, 0.05) 42%,
    rgba(36, 162, 89, 0) 70%);
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.ship-hero.is-pointing .ship-hero-bg::after {
  opacity: 1;
}

/* ---- 5. Magnetic buttons ----------------------------------------------
   The label drifts toward the cursor as it approaches; JS sets the offset
   on --ship-magnet-x/y and the element eases back on leave. */
.ship-magnet {
  will-change: transform;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.ship-magnet.is-magnetic {
  transition: transform 0.15s ease-out;
}

/* the hero CTA already animates `transform` on reveal, so the magnet
   offset rides on translate instead */
.ship-hero-cta.ship-magnet,
.ship-card-cta-solid.ship-magnet {
  transition:
    translate 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.ship-hero-cta.ship-magnet.is-magnetic,
.ship-card-cta-solid.ship-magnet.is-magnetic {
  transition:
    translate 0.15s ease-out,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

/* ---- 6. Figures roll into place ---------------------------------------
   Upgrades the plain scale pop to a roll-up with a de-blur. No overflow
   mask on the wrapper: it is baseline-aligned with its label, and
   `overflow: hidden` would move an inline-flex box's baseline. */
.ship-compare .ship-card-num {
  opacity: 0;
  translate: 0 0.75em;
  filter: blur(5px);
  transition:
    opacity 0.5s ease 1.3s,
    translate 0.8s cubic-bezier(0.22, 1, 0.36, 1) 1.3s,
    filter 0.6s ease 1.3s,
    transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 1.3s;
}

.ship-compare.animated .ship-card-num {
  opacity: 1;
  translate: 0 0;
  filter: blur(0);
}

/* ---- 7. Section titles, revealed word by word -------------------------
   js/ship-motion.js wraps each word of every .ship-title-split heading;
   without it the headings keep the block reveal above. */
.ship-word {
  display: inline-block;
  opacity: 0;
  translate: 0 0.5em;
  filter: blur(6px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    translate 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--w, 0) * 0.06s);
}

.animated .ship-word {
  opacity: 1;
  translate: 0 0;
  filter: blur(0);
}

/* the heading itself no longer needs its own reveal once split */
.ship-title-split.is-split {
  opacity: 1;
  transform: none;
  translate: none;
}

/* ---- reduced motion: stand the whole layer down ---------------------- */
@media (prefers-reduced-motion: reduce) {
  .ship-tilt,
  .ship-magnet,
  .ship-compare .ship-card-num,
  .ship-compare-title .ship-word {
    transform: none;
    translate: none;
    scale: none;
    rotate: none;
    filter: none;
    opacity: 1;
    transition: none;
    animation: none;
    will-change: auto;
  }

  .ship-card.ship-tilt::after {
    display: none;
  }
}

/* ============================================================
   The difference in numbers — stats band
   Figma: node 2262:8964 ("3 · الفرق بالأرقام")

   Column order follows reading order, so in Arabic the first stat
   sits on the right — matching the site's existing .numbers-strip
   built from the same Figma file. Dividers use border-inline-start
   so all three land between the columns in both directions.
   ============================================================ */

.ship-stats {
  background: #f9f9f9;
  border-top: 1px solid #ececec;
  border-bottom: 1px solid #ececec;
  padding: var(--section-gap) 0;
}

.ship-stats-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--section-head-gap);
}

.ship-stats-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

/* ---- the card ---- */
.ship-stats-card {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 1360px;
  min-height: 197px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.ship-stat {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: var(--card-pad-y) clamp(14px, 1.6vw, 24px);
  text-align: center;
}

.ship-stat + .ship-stat {
  border-inline-start: 1px solid #ececec;
}

.ship-stat-v {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ship-stat-value {
  font-family: var(--ship-figure);
  font-size: clamp(26px, 2.2vw, 40px);
  font-weight: 800;
  line-height: 1;
  color: var(--text-dark);
  white-space: nowrap;
}

.ship-stat-up .ship-stat-value {
  color: var(--bs-primary);
}

/* the green disc carrying the downward arrow */
.ship-stat-arrow {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 500px;
  background: #e9f6ee;
}

/* the arrow keeps the geometry it was drawn at (9.47 x 10.8) */
.ship-stat-arrow img {
  width: 9.47px;
  height: 10.8px;
  display: block;
}

.ship-stat-label {
  font-family: "MadaniArabic-SemiBold";
  font-size: 17px;
  line-height: 1.53;
  color: var(--text-dark);
  max-width: 280px;
  margin: 0;
}

.ship-stat-note {
  font-family: "MadaniArabic-Regular";
  font-size: 14px;
  line-height: 1.64;
  color: var(--text-gray);
  max-width: 280px;
  margin: 0;
}

/* =====================================================================
   Stats — reveal and ambient motion
   ===================================================================== */

/* the card lifts in as a whole */
.ship-stats .ship-stats-card {
  opacity: 0;
  translate: 0 40px;
  scale: 0.985;
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.15s,
    translate 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s,
    scale 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}

.ship-stats.animated .ship-stats-card {
  opacity: 1;
  translate: 0 0;
  scale: 1;
}

/* then each column arrives on its own beat, --i set in the markup */
.ship-stats .ship-stat > * {
  opacity: 0;
  translate: 0 16px;
  filter: blur(5px);
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    translate 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.6s ease;
  transition-delay: calc(0.45s + var(--i, 0) * 0.11s);
}

.ship-stats .ship-stat .ship-stat-label { transition-delay: calc(0.52s + var(--i, 0) * 0.11s); }
.ship-stats .ship-stat .ship-stat-note  { transition-delay: calc(0.59s + var(--i, 0) * 0.11s); }

.ship-stats.animated .ship-stat > * {
  opacity: 1;
  translate: 0 0;
  filter: blur(0);
}

/* the dividers draw down between the columns */
.ship-stat + .ship-stat {
  border-inline-start-color: transparent;
  transition: border-inline-start-color 0.6s ease calc(0.4s + var(--i, 0) * 0.11s);
}

.ship-stats.animated .ship-stat + .ship-stat {
  border-inline-start-color: #ececec;
}

/* the green disc springs in and the arrow keeps nudging downward */
.ship-stats .ship-stat-arrow {
  scale: 0.4;
  transition: scale 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) calc(0.6s + var(--i, 0) * 0.11s);
}

.ship-stats.animated .ship-stat-arrow {
  scale: 1;
}

.ship-stats.animated .ship-stat-arrow img {
  animation: shipArrowNudge 2.6s ease-in-out infinite;
  animation-delay: calc(1.6s + var(--i, 0) * 0.2s);
}

@keyframes shipArrowNudge {
  0%, 62%, 100% { translate: 0 0; }
  74%           { translate: 0 3px; }
  86%           { translate: 0 0; }
}

/* the figure itself rolls up out of a de-blur */
.ship-stats .ship-stat-value {
  display: inline-block;
  translate: 0 0.55em;
  filter: blur(6px);
  transition:
    translate 0.75s cubic-bezier(0.22, 1, 0.36, 1) calc(0.5s + var(--i, 0) * 0.11s),
    filter 0.6s ease calc(0.5s + var(--i, 0) * 0.11s);
}

.ship-stats.animated .ship-stat-value {
  translate: 0 0;
  filter: blur(0);
}

/* pointer sheen, shared with the comparison cards */
.ship-stats-card.ship-tilt::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle 320px at var(--ship-px, 50%) var(--ship-py, 50%),
    rgba(36, 162, 89, 0.09),
    rgba(36, 162, 89, 0) 70%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 2;
}

.ship-stats-card.ship-tilt.is-tilting::after {
  opacity: 1;
}

.ship-stats-card {
  position: relative;
}

/* tilt transition restated at this element's specificity, so it extends
   the reveal transition above instead of replacing it */
.ship-stats .ship-stats-card.ship-tilt {
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.15s,
    translate 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s,
    scale 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s,
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.ship-stats .ship-stats-card.ship-tilt.is-tilting {
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.15s,
    translate 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s,
    scale 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s,
    transform 0.12s linear;
}

/* scroll-driven where supported: the card scrubs in with the scroll */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .ship-stats .ship-stats-card {
      animation: shipStatsIn linear both;
      animation-timeline: view();
      animation-range: entry 12% cover 34%;
    }

    @keyframes shipStatsIn {
      from { opacity: 0; translate: 0 48px; scale: 0.985; }
      to   { opacity: 1; translate: 0 0; scale: 1; }
    }
  }
}

@supports (transition-timing-function: linear(0, 1)) {
  .ship-stats .ship-stat-arrow {
    transition-timing-function:
      linear(0, 0.009, 0.035 2.1%, 0.141, 0.281 6.7%, 0.723 12.9%,
        0.938 16.7%, 1.017, 1.077, 1.121, 1.149 24.3%, 1.159, 1.163,
        1.161, 1.154 29.9%, 1.129 32.8%, 1.051 39.6%, 1.017 43.1%,
        0.991, 0.977 51%, 0.974 53.8%, 0.975 57.1%, 0.997 69.8%,
        1.003 76.9%, 1);
  }
}

/* =====================================================================
   Stats — responsive
   ===================================================================== */
@media (max-width: 1500px) {
  .ship-stat-label { font-size: 16px; }
  .ship-stat-note { font-size: 13px; }
}

@media (max-width: 991px) {
  /* two by two, with the dividers following the new edges */
  .ship-stats-card {
    flex-wrap: wrap;
    min-height: 0;
    max-width: 620px;
  }

  .ship-stat {
    flex: 1 0 50%;
    max-width: 50%;
  }

  .ship-stat + .ship-stat {
    border-inline-start: 0;
  }

  .ship-stat:nth-child(even) {
    border-inline-start: 1px solid transparent;
  }

  .ship-stats.animated .ship-stat:nth-child(even) {
    border-inline-start-color: #ececec;
  }

  .ship-stat:nth-child(n + 3) {
    border-top: 1px solid #ececec;
  }
}

@media (max-width: 576px) {

  .ship-stats-card { max-width: 420px; }

  .ship-stat {
    flex: 1 0 100%;
    max-width: 100%;
  }

  .ship-stat + .ship-stat,
  .ship-stat:nth-child(even) {
    border-inline-start: 0;
  }

  .ship-stat + .ship-stat {
    border-top: 1px solid #ececec;
  }

  .ship-stat-label { font-size: 15px; }
  .ship-stat-note { font-size: 13px; }
}

/* =====================================================================
   Stats — reduced motion
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  .ship-stats .ship-stats-card,
  .ship-stats .ship-stat > *,
  .ship-stats .ship-stat-value,
  .ship-stats .ship-stat-arrow,
  .ship-stats .ship-stat-arrow img {
    opacity: 1;
    transform: none;
    translate: none;
    scale: none;
    filter: none;
    transition: none;
    animation: none;
  }

  .ship-stat + .ship-stat {
    border-inline-start-color: #ececec;
  }

  .ship-stats-card.ship-tilt::after {
    display: none;
  }
}

/* ============================================================
   What you get with every shipment
   Figma: node 2262:8999 ("4 · ما تحصل عليه")

   Laid out with flow-relative values (inline-start/end, flex-start,
   text-align: start) so one DOM renders correctly in both Arabic
   and English — the Figma canvas is the Arabic rendering.
   ============================================================ */

.ship-benefits {
  background: #fff;
  padding: var(--section-gap) 0;
}

.ship-benefits-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--section-head-gap);
}

.ship-benefits-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.ship-benefits-rows {
  display: flex;
  flex-direction: column;
  gap: var(--block-gap);
  width: 100%;
  max-width: 1360px;
}

.ship-benefits-row {
  display: flex;
  align-items: stretch;
  gap: 24px;
}

/* ---- card ---- */
.ship-benefit {
  position: relative;
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: var(--card-pad-y) var(--card-pad-x);
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 16px;
  text-align: start;
  overflow: hidden;
}

.ship-benefit-featured {
  border-color: var(--bs-primary);
  box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.1);
}

/* 4px bar across the top of the featured card */
.ship-benefit-accent {
  position: absolute;
  top: -1px;
  inset-inline-start: -1px;
  width: calc(100% + 2px);
  height: 4px;
  background: var(--bs-primary);
  border-radius: 16px 16px 0 0;
}

.ship-benefit-title {
  font-family: "MadaniArabic-SemiBold";
  font-size: clamp(17px, 1.05vw, 20px);
  font-weight: 400;
  line-height: 1.43;
  color: var(--text-dark);
  margin: 0;
  width: 100%;
}

.ship-benefit-desc {
  font-family: "MadaniArabic-Regular";
  font-size: 15px;
  line-height: 1.73;
  color: var(--text-gray);
  margin: 0;
  width: 100%;
}

/* ---- the little UI mock inside each card ---- */
.ship-benefit-mock {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-top: auto;
}

.ship-mock-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.4;
}

/* rule rows (carrier automation) */
.ship-mock-label {
  font-family: "MadaniArabic-Regular";
  color: #545454;
}

.ship-mock-value {
  font-family: "MadaniArabic-SemiBold";
  color: var(--bs-primary);
}

/* price rows */
.ship-mock-row-pick {
  gap: 10px;
  transition: background 0.45s ease, border-color 0.45s ease;
}

/* the two radio states are stacked in a fixed box and cross-faded */
.ship-mock-radio-wrap {
  position: relative;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.ship-mock-radio {
  position: absolute;
  inset: 0;
  width: 16px;
  height: 16px;
  display: block;
}

.ship-mock-radio-on {
  opacity: 0;
  scale: 0.6;
  transition: opacity 0.35s ease, scale 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ship-mock-row-pick.is-selected {
  background: #f4faf7;
  border-color: var(--bs-primary);
}

.ship-mock-row-pick.is-selected .ship-mock-radio-off {
  opacity: 0;
}

.ship-mock-row-pick.is-selected .ship-mock-radio-on {
  opacity: 1;
  scale: 1;
}

.ship-mock-radio-off {
  transition: opacity 0.35s ease;
}

.ship-mock-carrier {
  font-family: "MadaniArabic-Regular";
  color: var(--text-dark);
}

.ship-mock-price {
  margin-inline-start: auto;
  font-family: "MadaniArabic-Regular";
  color: var(--text-dark);
  white-space: nowrap;
}

.ship-mock-row-pick.is-selected .ship-mock-price,
.ship-mock-row-pick.is-selected .ship-mock-carrier {
  font-family: "MadaniArabic-SemiBold";
}

.ship-mock-row-pick.is-selected .ship-mock-price .ship-card-latin {
  font-weight: 700;
}

/* waybill list rows */
.ship-mock-row-quiet {
  gap: 10px;
  padding: 10px 12px;
  background: #f9f9f9;
  border-color: transparent;
}

.ship-mock-code {
  font-family: var(--ship-figure);
  font-weight: 600;
  color: var(--text-dark);
}

.ship-mock-status {
  margin-inline-start: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: #fff;
  border: 1px solid #e4e6e8;
  border-radius: 8px;
  font-family: "MadaniArabic-Regular";
  font-size: 12px;
  color: var(--text-dark);
  white-space: nowrap;
}

.ship-mock-dot {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  flex-shrink: 0;
}

.ship-mock-dot-done    { background: #24a259; }
.ship-mock-dot-transit { background: #ffab00; }
.ship-mock-dot-ready   { background: #8d8d8d; }

/* chip rows (partial shipping / partial returns) */
.ship-benefit-mock-chips {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
}

.ship-mock-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #e9f6ee;
  border-radius: 8px;
  font-size: 13px;
  white-space: nowrap;
}

.ship-mock-chip-label {
  font-family: "MadaniArabic-Regular";
  color: var(--text-gray);
}

.ship-mock-chip-value {
  font-family: "MadaniArabic-SemiBold";
  color: var(--bs-primary);
}

/* =====================================================================
   Benefits — reveal and ambient motion
   ===================================================================== */
.ship-benefits .ship-benefit {
  opacity: 0;
  translate: 0 44px;
  scale: 0.985;
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1) calc(0.15s + var(--i, 0) * 0.09s),
    translate 0.85s cubic-bezier(0.22, 1, 0.36, 1) calc(0.15s + var(--i, 0) * 0.09s),
    scale 0.85s cubic-bezier(0.22, 1, 0.36, 1) calc(0.15s + var(--i, 0) * 0.09s);
}

.ship-benefits.animated .ship-benefit {
  opacity: 1;
  translate: 0 0;
  scale: 1;
}

/* the accent bar draws across from the reading edge
   (transform-origin takes no logical keyword, so it is set per direction) */
.ship-benefits .ship-benefit-accent {
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) calc(0.5s + var(--i, 0) * 0.09s);
}

[dir="ltr"] .ship-benefits .ship-benefit-accent {
  transform-origin: left center;
}

.ship-benefits.animated .ship-benefit-accent {
  transform: scaleX(1);
}

/* each mock row builds itself in, after its card has landed */
.ship-benefits .ship-mock-row,
.ship-benefits .ship-mock-chip {
  opacity: 0;
  translate: 0 10px;
  transition:
    opacity 0.5s ease calc(0.5s + var(--i, 0) * 0.09s + var(--j, 0) * 0.1s),
    translate 0.55s cubic-bezier(0.22, 1, 0.36, 1) calc(0.5s + var(--i, 0) * 0.09s + var(--j, 0) * 0.1s);
}

.ship-benefits.animated .ship-mock-row,
.ship-benefits.animated .ship-mock-chip {
  opacity: 1;
  translate: 0 0;
}

/* status dots keep pinging, reusing the hero's idiom */
.ship-mock-dot {
  position: relative;
}

.ship-mock-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: inherit;
  opacity: 0;
}

.ship-benefits.animated .ship-mock-dot::after {
  animation: shipDotPing 2.8s ease-out infinite;
  animation-delay: calc(1.6s + var(--j, 0) * 0.45s);
}

/* pointer sheen, shared with the other cards */
.ship-benefit.ship-tilt::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle 240px at var(--ship-px, 50%) var(--ship-py, 50%),
    rgba(36, 162, 89, 0.09),
    rgba(36, 162, 89, 0) 70%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 2;
}

.ship-benefit.ship-tilt.is-tilting::after {
  opacity: 1;
}

.ship-benefit > * {
  position: relative;
  z-index: 1;
}

/* tilt transition restated at this element's specificity so it extends
   the reveal transition instead of replacing it */
.ship-benefits .ship-benefit.ship-tilt {
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1) calc(0.15s + var(--i, 0) * 0.09s),
    translate 0.85s cubic-bezier(0.22, 1, 0.36, 1) calc(0.15s + var(--i, 0) * 0.09s),
    scale 0.85s cubic-bezier(0.22, 1, 0.36, 1) calc(0.15s + var(--i, 0) * 0.09s),
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.ship-benefits .ship-benefit.ship-tilt.is-tilting {
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1) calc(0.15s + var(--i, 0) * 0.09s),
    translate 0.85s cubic-bezier(0.22, 1, 0.36, 1) calc(0.15s + var(--i, 0) * 0.09s),
    scale 0.85s cubic-bezier(0.22, 1, 0.36, 1) calc(0.15s + var(--i, 0) * 0.09s),
    transform 0.12s linear;
}

/* scroll-driven: each row scrubs in with the scroll where supported */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .ship-benefits .ship-benefit {
      animation: shipBenefitIn linear both;
      animation-timeline: view();
      animation-range: entry 8% cover 30%;
    }

    @keyframes shipBenefitIn {
      from { opacity: 0; translate: 0 52px; scale: 0.985; }
      to   { opacity: 1; translate: 0 0; scale: 1; }
    }
  }
}

@supports (transition-timing-function: linear(0, 1)) {
  .ship-mock-radio-on,
  .ship-benefits .ship-mock-chip {
    transition-timing-function:
      linear(0, 0.009, 0.035 2.1%, 0.141, 0.281 6.7%, 0.723 12.9%,
        0.938 16.7%, 1.017, 1.077, 1.121, 1.149 24.3%, 1.159, 1.163,
        1.161, 1.154 29.9%, 1.129 32.8%, 1.051 39.6%, 1.017 43.1%,
        0.991, 0.977 51%, 0.974 53.8%, 0.975 57.1%, 0.997 69.8%,
        1.003 76.9%, 1);
  }
}

/* =====================================================================
   Benefits — responsive
   ===================================================================== */
@media (max-width: 1500px) {
  .ship-benefits-rows { gap: 24px; }
  .ship-benefits-row { gap: 18px; }
  .ship-benefit { gap: 14px; }
  .ship-benefit-desc { font-size: 14px; }
}

@media (max-width: 991px) {
  .ship-benefits-row,
  .ship-benefits-row-3,
  .ship-benefits-row-2 {
    flex-direction: column;
    max-width: 620px;
    margin: 0 auto;
    width: 100%;
  }

  .ship-benefits-rows { gap: 18px; }
}

@media (max-width: 576px) {

  .ship-benefit { border-radius: 14px; }
  .ship-benefit-title { font-size: 17px; }
  .ship-benefit-desc { font-size: 13.5px; }

  .ship-mock-row { padding: 10px 12px; font-size: 12px; }
  .ship-mock-status { font-size: 11px; }
  .ship-mock-chip { padding: 8px 12px; font-size: 12px; }
}

/* =====================================================================
   Benefits — reduced motion
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  .ship-benefits .ship-benefit,
  .ship-benefits .ship-mock-row,
  .ship-benefits .ship-mock-chip,
  .ship-benefits .ship-benefit-accent,
  .ship-benefits .ship-mock-radio-on {
    opacity: 1;
    transform: none;
    translate: none;
    scale: none;
    transition: none;
    animation: none;
  }

  .ship-benefits .ship-mock-radio-on {
    opacity: 0;
  }

  .ship-benefits .ship-mock-row-pick.is-selected .ship-mock-radio-on {
    opacity: 1;
  }

  .ship-benefits .ship-benefit-accent {
    transform: scaleX(1);
  }

  .ship-benefits .ship-mock-dot::after,
  .ship-benefit.ship-tilt::after {
    display: none;
  }
}

/* ============================================================
   Waybill within the fulfilment stages — timeline
   Figma: node 2262:9058 ("5 · مراحل الشحنة")

   Stages run 01 -> 02 -> 03 in the DOM, so Arabic starts at the
   right (as the canvas shows) and English at the left. The rail
   and callout are positioned in percentages of the track, so the
   callout stays over the middle stage at every width.
   ============================================================ */

.ship-stages {
  background: #f4faf7;
  border-top: 1px solid #d3ecde;
  border-bottom: 1px solid #d3ecde;
  padding: var(--section-gap) 0;
}

.ship-stages-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--section-head-gap);
}

.ship-stages-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.ship-stages-em {
  color: var(--bs-primary);
}

/* ---- board: callout above, timeline below ---- */
.ship-stages-board {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1360px;
}

.ship-stages-callout {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ship-stages-band {
  padding: 14px 22px;
  background: #e9f6ee;
  border: 1px solid #d3ecde;
  border-radius: 14px;
  font-family: "MadaniArabic-Regular";
  font-size: 16px;
  line-height: 1.3;
  color: var(--text-dark);
  white-space: nowrap;
}

.ship-stages-band strong {
  font-family: "MadaniArabic-SemiBold";
  font-weight: 400;
  color: var(--bs-primary);
}

/* the connector dropping from the band down to the middle dot */
.ship-stages-tick {
  width: 2px;
  height: 78px;
  background: #a7dabd;
}

/* ---- timeline ---- */
.ship-stages-track {
  position: relative;
  width: 100%;
}

/* the rail joins the three dots at their centres: each stage is a third
   of the track, so the outer dot centres sit at 1/6 and 5/6 */
.ship-stages-rail {
  position: absolute;
  top: 33px;
  inset-inline-start: 16.667%;
  inset-inline-end: 16.667%;
  height: 2px;
  background: linear-gradient(to right, #d3ecde, #24a259 50%, #d3ecde);
  overflow: hidden;
}

/* a light that keeps travelling the rail */
.ship-stages-rail-pulse {
  position: absolute;
  top: 0;
  bottom: 0;
  inset-inline-start: -18%;
  width: 18%;
  background: linear-gradient(to right,
    rgba(36, 162, 89, 0),
    rgba(36, 162, 89, 0.85) 50%,
    rgba(36, 162, 89, 0));
  opacity: 0;
}

.ship-stages-list {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.ship-stage {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

/* ---- dot ---- */
.ship-stage-dot {
  position: relative;
  width: 66px;
  height: 66px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 500px;
  background: #fff;
  border: 1.5px solid #d3ecde;
}

.ship-stage-done .ship-stage-dot {
  border-color: var(--bs-primary);
}

.ship-stage-active .ship-stage-dot {
  background: var(--bs-primary);
  border-color: #d3ecde;
}

/* the upcoming stage keeps the default look, stated so all three
   dot states are declared rather than relying on the base rule */
.ship-stage-next .ship-stage-dot {
  background: #fff;
  border-color: #d3ecde;
}

/* each icon keeps the exact geometry it was drawn at */
.ship-stage-icon {
  display: block;
}

.ship-stage-no {
  padding: 3px 12px;
  border-radius: 500px;
  background: #e9f6ee;
  font-family: var(--ship-figure);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--bs-primary);
}

.ship-stage-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 240px;
}

.ship-stage-name {
  font-family: "MadaniArabic-SemiBold";
  font-size: 18px;
  line-height: 1.45;
  color: var(--text-dark);
}

.ship-stage-desc {
  font-family: "MadaniArabic-Regular";
  font-size: 14px;
  line-height: 1.64;
  color: var(--text-gray);
}

.ship-stage-chip {
  padding: 9px 18px;
  border-radius: 20px;
  background: #e9f6ee;
  font-family: "MadaniArabic-SemiBold";
  font-size: 13px;
  line-height: 1.3;
  color: var(--bs-primary);
  white-space: nowrap;
}

.ship-stage-active .ship-stage-chip {
  background: var(--bs-primary);
  font-size: 14px;
  color: #fff;
}

/* =====================================================================
   Stages — reveal and ambient motion
   ===================================================================== */

/* the rail draws out from the reading edge */
.ship-stages .ship-stages-rail {
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}

[dir="ltr"] .ship-stages .ship-stages-rail {
  transform-origin: left center;
}

.ship-stages.animated .ship-stages-rail {
  transform: scaleX(1);
}

/* then a pulse keeps running along it */
.ship-stages.animated .ship-stages-rail-pulse {
  animation: shipRailPulse 4.2s ease-in-out 1.6s infinite;
}

@keyframes shipRailPulse {
  0%        { transform: translateX(0); opacity: 0; }
  12%, 62%  { opacity: 1; }
  80%, 100% { transform: translateX(660%); opacity: 0; }
}

/* in Arabic the pulse should travel right-to-left */
.ship-stages.animated .ship-stages-rail-pulse {
  animation-name: shipRailPulseRtl;
}

[dir="ltr"] .ship-stages.animated .ship-stages-rail-pulse {
  animation-name: shipRailPulse;
}

@keyframes shipRailPulseRtl {
  0%        { transform: translateX(0); opacity: 0; }
  12%, 62%  { opacity: 1; }
  80%, 100% { transform: translateX(-660%); opacity: 0; }
}

/* stages arrive one after another along the rail */
.ship-stages .ship-stage > * {
  opacity: 0;
  translate: 0 18px;
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1) calc(0.45s + var(--i, 0) * 0.18s),
    translate 0.7s cubic-bezier(0.22, 1, 0.36, 1) calc(0.45s + var(--i, 0) * 0.18s);
}

.ship-stages .ship-stage .ship-stage-no   { transition-delay: calc(0.55s + var(--i, 0) * 0.18s); }
.ship-stages .ship-stage .ship-stage-text { transition-delay: calc(0.62s + var(--i, 0) * 0.18s); }
.ship-stages .ship-stage .ship-stage-chip { transition-delay: calc(0.7s + var(--i, 0) * 0.18s); }

.ship-stages.animated .ship-stage > * {
  opacity: 1;
  translate: 0 0;
}

/* the dot itself springs in */
.ship-stages .ship-stage-dot {
  scale: 0.4;
  transition: scale 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) calc(0.45s + var(--i, 0) * 0.18s);
}

.ship-stages.animated .ship-stage-dot {
  scale: 1;
}

/* the current stage keeps pinging — a spreading box-shadow rather than a
   scaled pseudo-element, so the ring renders outside the filled dot */
.ship-stages.animated .ship-stage-active .ship-stage-dot {
  animation: shipStagePing 2.6s ease-out 1.6s infinite;
}

@keyframes shipStagePing {
  0%        { box-shadow: 0 0 0 0 rgba(36, 162, 89, 0.4); }
  70%, 100% { box-shadow: 0 0 0 20px rgba(36, 162, 89, 0); }
}

/* and its chip breathes, so the call to action reads as live */
.ship-stages.animated .ship-stage-active .ship-stage-chip {
  animation: shipStageChip 3.2s ease-in-out 2s infinite;
}

@keyframes shipStageChip {
  0%, 100% { box-shadow: 0 0 0 0 rgba(36, 162, 89, 0); }
  50%      { box-shadow: 0 8px 22px 0 rgba(36, 162, 89, 0.3); }
}

/* the callout drops in and its connector draws downward */
.ship-stages .ship-stages-band {
  opacity: 0;
  translate: 0 -14px;
  transition:
    opacity 0.6s ease 0.95s,
    translate 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.95s;
}

.ship-stages.animated .ship-stages-band {
  opacity: 1;
  translate: 0 0;
}

.ship-stages .ship-stages-tick {
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) 1.15s;
}

.ship-stages.animated .ship-stages-tick {
  transform: scaleY(1);
}

/* scroll-driven: the rail draws with the scroll where supported */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .ship-stages .ship-stages-rail {
      animation: shipRailDraw linear both;
      animation-timeline: view();
      animation-range: entry 20% cover 42%;
    }

    @keyframes shipRailDraw {
      from { transform: scaleX(0); }
      to   { transform: scaleX(1); }
    }
  }
}

@supports (transition-timing-function: linear(0, 1)) {
  .ship-stages .ship-stage-dot,
  .ship-stages .ship-stages-band {
    transition-timing-function:
      linear(0, 0.009, 0.035 2.1%, 0.141, 0.281 6.7%, 0.723 12.9%,
        0.938 16.7%, 1.017, 1.077, 1.121, 1.149 24.3%, 1.159, 1.163,
        1.161, 1.154 29.9%, 1.129 32.8%, 1.051 39.6%, 1.017 43.1%,
        0.991, 0.977 51%, 0.974 53.8%, 0.975 57.1%, 0.997 69.8%,
        1.003 76.9%, 1);
  }
}

/* =====================================================================
   Stages — responsive
   ===================================================================== */
@media (max-width: 1500px) {
  .ship-stages-tick { height: 60px; }
  .ship-stage-name { font-size: 17px; }
  .ship-stage-desc { font-size: 13px; }
}

@media (max-width: 991px) {
  /* Stacked stages. The rail is dropped rather than turned vertical: the
     stage content is centre-aligned, so a centre rail would run straight
     through the text. */
  .ship-stages-list {
    flex-direction: column;
    gap: 40px;
    max-width: 420px;
    margin: 0 auto;
  }

  .ship-stages-rail {
    display: none;
  }

  /* the callout keeps its connector but sits above the stack */
  .ship-stages-callout {
    margin-bottom: 8px;
  }

  .ship-stages-tick { height: 34px; }
}

@media (max-width: 576px) {
  .ship-stages-band { font-size: 14px; padding: 12px 18px; }
  .ship-stages-list { gap: 32px; }
  .ship-stage-dot { width: 58px; height: 58px; }
  .ship-stages-rail { top: 29px; bottom: 29px; }
  .ship-stage-name { font-size: 16px; }
  .ship-stage-chip { font-size: 12px; padding: 8px 14px; }
  .ship-stage-active .ship-stage-chip { font-size: 13px; }
}

/* =====================================================================
   Stages — reduced motion
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  .ship-stages .ship-stages-rail,
  .ship-stages .ship-stage > *,
  .ship-stages .ship-stage-dot,
  .ship-stages .ship-stages-band,
  .ship-stages .ship-stages-tick {
    opacity: 1;
    transform: none;
    translate: none;
    scale: none;
    transition: none;
    animation: none;
  }

  .ship-stages .ship-stages-rail { transform: scaleX(1); }
  .ship-stages .ship-stages-tick { transform: scaleY(1); }

  .ship-stages-rail-pulse,
  .ship-stage-active .ship-stage-dot::after {
    display: none;
  }

  .ship-stages.animated .ship-stage-active .ship-stage-chip {
    animation: none;
  }
}

/* ============================================================
   Modern motion, second pass

   Three techniques the page did not use yet, each behind its own
   feature query so anything that cannot run it simply does not:
     1. a scroll-progress bar driven by a CSS scroll timeline
     2. parcels riding the hero routes via CSS motion paths
     3. living gradient borders on the two featured cards,
        animated through a registered custom property
   ============================================================ */

/* ---- 1. Scroll progress ------------------------------------------------
   `animation-timeline: scroll()` links the bar to document scroll with no
   JS and no scroll listener. Without support the bar stays at scaleX(0),
   i.e. invisible — so there is nothing to fall back to. */
.ship-progress {
  position: fixed;
  top: 0;
  inset-inline: 0;
  height: 3px;
  z-index: 1000001; /* above the fixed navbar (1000000) */
  background: linear-gradient(to left, #24a259, #3ecb81);
  transform: scaleX(0);
  transform-origin: right center;
  pointer-events: none;
}

[dir="ltr"] .ship-progress {
  background: linear-gradient(to right, #24a259, #3ecb81);
  transform-origin: left center;
}

@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .ship-progress {
      animation: shipProgress linear;
      animation-timeline: scroll(root block);
    }

    @keyframes shipProgress {
      from { transform: scaleX(0); }
      to   { transform: scaleX(1); }
    }
  }
}

/* ---- 2. Parcels on the routes -----------------------------------------
   CSS motion paths: each parcel is placed at the SVG origin and carried
   along the same path data the route is drawn from, so it tracks the curve
   exactly at any width. `offset-rotate: 0deg` keeps it upright. */
.ship-parcel {
  opacity: 0;
}

@supports (offset-path: path("M0 0L1 1")) {
  @media (prefers-reduced-motion: no-preference) {
    .ship-parcel {
      transform-box: view-box;
      transform-origin: 0 0;
      offset-rotate: 0deg;
      offset-distance: 0%;
    }

    .ship-parcel-1 {
      offset-path: path("M1802 170C1402 170 1322 350 962 350C602 350 522 170 122 170");
    }

    .ship-parcel-2 {
      offset-path: path("M1742 500C1402 500 1322 650 962 650C602 650 522 500 182 500");
    }

    .hero-ready .ship-parcel-1 { animation: shipParcelRide 7.5s linear 2.2s infinite; }
    .hero-ready .ship-parcel-2 { animation: shipParcelRide 9.5s linear 4.1s infinite; }

    /* the paths are drawn right-to-left, which is the Arabic reading
       direction; English runs them the other way */
    [dir="ltr"] .hero-ready .ship-parcel-1,
    [dir="ltr"] .hero-ready .ship-parcel-2 {
      animation-direction: reverse;
    }

    @keyframes shipParcelRide {
      0%       { offset-distance: 0%;   opacity: 0; }
      6%, 90%  { opacity: 1; }
      100%     { offset-distance: 100%; opacity: 0; }
    }
  }
}

/* ---- 3. Living gradient border ----------------------------------------
   A registered custom property makes the conic gradient's angle
   interpolable, so the ring can actually rotate. It is drawn on a masked
   pseudo-element rather than by swapping the card's background, so it does
   not collide with the cards' own reveal animations. */
@property --ship-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@supports ((mask-composite: exclude) or (-webkit-mask-composite: xor)) {
  @media (prefers-reduced-motion: no-preference) {
    /* the ring becomes the visible border, so the static one steps aside.
       It is drawn at the padding-box edge rather than over the border:
       .ship-benefit clips to its padding box (overflow: hidden), which
       would cut a ring drawn outside it. */
    .ship-card-dqq,
    .ship-benefit-featured {
      border-color: transparent;
    }

    .ship-card-dqq::before,
    .ship-benefit-featured::before {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: inherit;
      padding: 1px;
      /* a literal fallback keeps the ring drawn even where @property
         is unsupported — it simply will not rotate */
      --ship-angle: 0deg;
      background: conic-gradient(
        from var(--ship-angle),
        #24a259,
        #8edaaa 20%,
        #24a259 45%,
        #d3ecde 70%,
        #24a259);
      -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
      -webkit-mask-composite: xor;
      mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
      mask-composite: exclude;
      pointer-events: none;
      z-index: 0;
      animation: shipBorderSpin 9s linear infinite;
    }

    @keyframes shipBorderSpin {
      to { --ship-angle: 360deg; }
    }
  }
}

/* ---- reduced motion: none of the above runs ---------------------------- */
@media (prefers-reduced-motion: reduce) {
  .ship-progress,
  .ship-parcel {
    display: none;
  }
}

/* ============================================================
   Field app — handing shipments to couriers
   Figma: node 2262:9125 ("6 · تطبيق الميدان")

   Two overlapping phone mockups beside the copy. Each phone keeps
   the frame's aspect ratio and the screen is inset by the same
   percentages the design uses, so both scale together.
   ============================================================ */

.ship-field {
  background: #fff;
  padding: var(--section-gap) 0;
}

.ship-field-grid {
  display: flex;
  align-items: center;
  gap: var(--split-gap);
  max-width: 1360px;
  perspective: 1600px;
}

/* ---- copy ---- */
.ship-field-copy {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  text-align: start;
}

.ship-field-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.ship-field-title {
  font-family: "MadaniArabic-SemiBold";
  font-size: clamp(21px, 1.94vw, 34px);
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: -0.4px;
  color: var(--bs-primary);
  margin: 0;
}

.ship-field-desc {
  font-family: "MadaniArabic-Regular";
  font-size: clamp(15px, 0.95vw, 18px);
  line-height: 2.22;
  color: var(--text-gray);
  margin: 0;
}

/* ---- numbered points ---- */
.ship-field-points {
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #ececec;
}

.ship-field-point {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid #ececec;
}

.ship-field-point:last-child {
  border-bottom: 0;
}

.ship-field-n {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 500px;
  background: #e9f6ee;
  font-family: var(--ship-figure);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  color: var(--bs-primary);
  transition: background 0.4s ease, color 0.4s ease, scale 0.4s ease;
}

.ship-field-point-text {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ship-field-point-title {
  font-family: "MadaniArabic-Medium";
  font-size: 17px;
  line-height: 1.53;
  color: var(--text-dark);
}

.ship-field-point-desc {
  font-family: "MadaniArabic-Regular";
  font-size: 15px;
  line-height: 1.73;
  color: var(--text-gray);
}

/* ---- CTA ---- */
.ship-field-btnwrap {
  display: flex;
  justify-content: flex-start;
  width: 100%;
}

.ship-field-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  background: var(--bs-primary);
  border-radius: 16px;
  font-family: "MadaniArabic-SemiBold";
  font-size: 16px;
  line-height: 1.5;
  color: #fff;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ship-field-cta:hover,
.ship-field-cta:focus-visible {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(36, 162, 89, 0.3);
}

.ship-field-cta > span,
.ship-field-cta > img {
  position: relative;
  z-index: 1;
}

.ship-field-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
  animation: shipBtnShine 4s ease-in-out 3s infinite;
  pointer-events: none;
}

/* the arrow keeps the geometry it was drawn at */
.ship-field-cta-arrow {
  display: block;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.ship-field-cta:hover .ship-field-cta-arrow {
  transform: translateX(-4px);
}

/* the arrow is drawn pointing left; English flips it. The hover nudge needs
   no direction rule: `transform` is applied inside the rotated frame, so the
   same translateX reads as "forward" either way. */
[dir="ltr"] .ship-field-cta-arrow {
  rotate: 180deg;
}

/* ---- phones ---- */
.ship-field-phones {
  position: relative;
  flex: 0 0 50%;
  width: 50%;
  max-width: 50%;
  /* the pair spans the full width now, so the box is taller than the
     design's 660x708 frame by the same 1.1073 the phones grew by */
  aspect-ratio: 1000 / 1188;
  transform-style: preserve-3d;
  will-change: transform;
}

.ship-field-phone {
  position: absolute;
  width: 54.7%;
  aspect-ratio: 1482 / 3034;
  transform-style: preserve-3d;
}

/* placed exactly as the design lays them out over the 660x708 box */
.ship-field-phone-back {
  inset-inline-start: 45.3%;
  top: 6.21%;
}

.ship-field-phone-front {
  inset-inline-start: 0;
  top: 0;
}

.ship-field-frame,
.ship-field-screen {
  position: absolute;
  display: block;
}

.ship-field-frame {
  inset: 0;
  width: 100%;
  height: 100%;
}

/* the screen sits on top of the frame, inset by the design's margins */
/* The screen is sized explicitly rather than by opposing insets: for a
   replaced element, `width: auto` resolves to the image's intrinsic width
   (1363px here) instead of the inset box, so it would render at native size
   and overflow the phone. Percentages are the design's insets subtracted
   from 100 (100 - 4.05 - 3.98, and 100 - 1.75 - 1.72). */
.ship-field-screen {
  top: 1.75%;
  left: 4.05%; /* physical: the frame image is not mirrored in English */
  width: 91.97%;
  height: 96.53%;
  border-radius: 8% / 3.9%;
  object-fit: cover;
}

/* =====================================================================
   Field — reveal, phone parallax and the auto-advancing walkthrough
   ===================================================================== */

/* copy rises in */
.ship-field .ship-field-head,
.ship-field .ship-field-points,
.ship-field .ship-field-btnwrap {
  opacity: 0;
  translate: 0 26px;
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.15s,
    translate 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}

.ship-field .ship-field-points { transition-delay: 0.3s; }
.ship-field .ship-field-btnwrap { transition-delay: 0.75s; }

.ship-field.animated .ship-field-head,
.ship-field.animated .ship-field-points,
.ship-field.animated .ship-field-btnwrap {
  opacity: 1;
  translate: 0 0;
}

/* each point arrives on its own beat */
.ship-field .ship-field-point {
  opacity: 0;
  translate: 0 14px;
  transition:
    opacity 0.55s ease calc(0.4s + var(--i, 0) * 0.1s),
    translate 0.6s cubic-bezier(0.22, 1, 0.36, 1) calc(0.4s + var(--i, 0) * 0.1s);
}

.ship-field.animated .ship-field-point {
  opacity: 1;
  translate: 0 0;
}

/* the phones swing in with a little depth */
.ship-field .ship-field-phone {
  opacity: 0;
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1s cubic-bezier(0.22, 1, 0.36, 1),
    translate 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.ship-field .ship-field-phone-front {
  translate: -28px 22px;
  transform: rotateY(9deg);
  transition-delay: 0.25s;
}

.ship-field .ship-field-phone-back {
  translate: 28px 30px;
  transform: rotateY(-9deg);
  transition-delay: 0.4s;
}

[dir="ltr"] .ship-field .ship-field-phone-front { translate: 28px 22px; }
[dir="ltr"] .ship-field .ship-field-phone-back { translate: -28px 30px; }

.ship-field.animated .ship-field-phone {
  opacity: 1;
  translate: 0 0;
}

/* they rest at different depths, so tilting the pair parallaxes them */
.ship-field.animated .ship-field-phone-front { transform: rotateY(0deg) translateZ(52px); }
.ship-field.animated .ship-field-phone-back  { transform: rotateY(0deg) translateZ(0); }

/* ---- the walkthrough: js/ship-motion.js advances `.is-active` ---- */
.ship-field-point.is-active .ship-field-n {
  background: var(--bs-primary);
  color: #fff;
  scale: 1.12;
}

.ship-field-point.is-active .ship-field-point-title {
  color: var(--bs-primary);
}

/* a line that fills along the row's edge for the length of its turn */
.ship-field-progress {
  position: absolute;
  bottom: -1px;
  inset-inline-start: 0;
  width: 100%;
  height: 1px;
  background: var(--bs-primary);
  transform: scaleX(0);
  transform-origin: right center;
  pointer-events: none;
}

[dir="ltr"] .ship-field-progress {
  transform-origin: left center;
}

.ship-field-point.is-active .ship-field-progress {
  animation: shipStepFill 3200ms linear forwards;
}

@keyframes shipStepFill {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* The sway, as a base rule. It sits above the @supports block on purpose:
   the scroll-driven rules below re-declare `animation` on the same
   selectors to run the parallax and this sway together, and a later rule
   at equal specificity would replace them instead of adding to them. */
.ship-field.animated .ship-field-phone-front { animation: shipPhoneSway 11s ease-in-out 1.4s infinite; }
.ship-field.animated .ship-field-phone-back  { animation: shipPhoneSwayAlt 13s ease-in-out 2.6s infinite; }

/* scroll-driven: the two phones drift at different rates as they pass */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .ship-field.animated .ship-field-phone-front {
      /* the scroll parallax and the always-on sway run together, each on
         its own timeline — a second `animation` rule would replace this one */
      animation: shipPhoneFront linear both, shipPhoneSway 11s ease-in-out 1.4s infinite;
      animation-timeline: view(), auto;
      animation-range: entry 20% exit 20%, normal;
    }

    .ship-field.animated .ship-field-phone-back {
      animation: shipPhoneBack linear both, shipPhoneSwayAlt 13s ease-in-out 2.6s infinite;
      animation-timeline: view(), auto;
      animation-range: entry 20% exit 20%, normal;
    }

    @keyframes shipPhoneFront {
      from { translate: 0 26px; }
      to   { translate: 0 -26px; }
    }

    @keyframes shipPhoneBack {
      from { translate: 0 -18px; }
      to   { translate: 0 22px; }
    }
  }
}

@supports (transition-timing-function: linear(0, 1)) {
  .ship-field .ship-field-n {
    transition-timing-function:
      linear(0, 0.009, 0.035 2.1%, 0.141, 0.281 6.7%, 0.723 12.9%,
        0.938 16.7%, 1.017, 1.077, 1.121, 1.149 24.3%, 1.159, 1.163,
        1.161, 1.154 29.9%, 1.129 32.8%, 1.051 39.6%, 1.017 43.1%,
        0.991, 0.977 51%, 0.974 53.8%, 0.975 57.1%, 0.997 69.8%,
        1.003 76.9%, 1);
  }
}

/* =====================================================================
   Field — responsive
   ===================================================================== */
@media (max-width: 1500px) {
  .ship-field-desc { font-size: 16px; line-height: 2; }
  .ship-field-point-title { font-size: 16px; }
  .ship-field-point-desc { font-size: 14px; }
}

@media (max-width: 991px) {
  .ship-field-grid {
    flex-direction: column;
    gap: 40px;
    max-width: 620px;
  }

  /* phones lead on narrow screens, copy follows */
  .ship-field-phones {
    order: -1;
    width: 100%;
    max-width: 460px;
  }

  .ship-field-copy {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .ship-field-grid { gap: 28px; }
  .ship-field-phones { max-width: 340px; }
  .ship-field-point { padding: 14px 0; }
  .ship-field-point-title { font-size: 15px; }
  .ship-field-point-desc { font-size: 13.5px; }
  .ship-field-cta { padding: 13px 24px; font-size: 15px; }
  .ship-field-btnwrap { justify-content: stretch; }
  .ship-field-cta { flex: 1; justify-content: center; }
}

/* =====================================================================
   Field — reduced motion
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  .ship-field .ship-field-head,
  .ship-field .ship-field-points,
  .ship-field .ship-field-btnwrap,
  .ship-field .ship-field-point,
  .ship-field .ship-field-phone,
  .ship-field .ship-field-n {
    opacity: 1;
    transform: none;
    translate: none;
    scale: none;
    rotate: none;
    transition: none;
    animation: none;
  }

  .ship-field-progress,
  .ship-field-cta::before {
    display: none;
  }
}

/* ============================================================
   Field app — motion on the phones
   The pair tilts as one under the pointer while the two phones sit
   at different depths, and the mockups react to whichever step of
   the walkthrough is currently playing.
   ============================================================ */

/* ---- ambient light under the pair ---- */
.ship-field-phones::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4%;
  width: 76%;
  height: 12%;
  transform: translateX(-50%) translateZ(-60px);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(36, 162, 89, 0.22), rgba(36, 162, 89, 0) 70%);
  filter: blur(26px);
  pointer-events: none;
  z-index: -1;
}

.ship-field.animated .ship-field-phones::after {
  animation: shipPhoneGlow 6s ease-in-out 1.4s infinite;
}

@keyframes shipPhoneGlow {
  0%, 100% { opacity: 0.7; transform: translateX(-50%) translateZ(-60px) scale(1); }
  50%      { opacity: 1;   transform: translateX(-50%) translateZ(-60px) scale(1.08); }
}

/* ---- pointer tilt on the pair (js/ship-motion.js writes `transform`) ---- */
.ship-field-phones.ship-tilt {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.ship-field-phones.ship-tilt.is-tilting {
  transition: transform 0.12s linear;
}

/* each phone keeps a soft drop shadow so the depth reads */
.ship-field-frame {
  filter: drop-shadow(0 22px 34px rgba(24, 60, 40, 0.16));
}


/* ---- always-on motion: the phones never sit still ----
   The float rides the images (so the phone element keeps transform and
   translate free for the reveal, the step depth and the scroll parallax)
   and the sway rides the independent `rotate` property. */
.ship-field.animated .ship-field-phone-front .ship-field-frame,
.ship-field.animated .ship-field-phone-front .ship-field-screen {
  animation: shipPhoneDrift 7s ease-in-out 1.1s infinite;
}

.ship-field.animated .ship-field-phone-back .ship-field-frame,
.ship-field.animated .ship-field-phone-back .ship-field-screen {
  animation: shipPhoneDrift 9.5s ease-in-out 2.4s infinite;
}

@keyframes shipPhoneDrift {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

@keyframes shipPhoneSway {
  0%, 100% { rotate: -0.7deg; }
  50%      { rotate: 0.7deg; }
}

@keyframes shipPhoneSwayAlt {
  0%, 100% { rotate: 0.8deg; }
  50%      { rotate: -0.8deg; }
}

/* ---- the phones answer the step being described ---- */
.ship-field-phone {
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    translate 1s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.6s ease;
}

/* step 3 hands over to the confirmation screen: the back phone comes
   forward and the front one steps back */
.ship-field.animated[data-step="2"] .ship-field-phone-back {
  transform: rotateY(0deg) translateZ(70px);
}

.ship-field.animated[data-step="2"] .ship-field-phone-front {
  transform: rotateY(0deg) translateZ(10px);
  filter: saturate(0.9) brightness(0.97);
}

/* step 4 is the record being filed: both settle level again */
.ship-field.animated[data-step="3"] .ship-field-phone-front {
  transform: rotateY(0deg) translateZ(34px);
}

.ship-field.animated[data-step="3"] .ship-field-phone-back {
  transform: rotateY(0deg) translateZ(18px);
}

/* =====================================================================
   Field motion — responsive and reduced motion
   ===================================================================== */
@media (max-width: 991px) {
  /* the column is full width once stacked, so the pair sizes to it */
  .ship-field-phones {
    flex: 0 0 auto;
    width: 100%;
    max-width: 460px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ship-field-phones::after {
    display: none;
  }

  .ship-field-phones.ship-tilt,
  .ship-field .ship-field-phone,
  .ship-field .ship-field-frame,
  .ship-field .ship-field-screen {
    transform: none;
    rotate: none;
    transition: none;
    animation: none;
    filter: none;
  }

  .ship-field-frame {
    filter: none;
  }
}

/* ============================================================
   How to start — three steps
   Figma: node 2262:9177 ("7 · كيف تبدأ")

   Built on the Figma, with four additions: a progress ring that
   draws around each number, a ghost numeral behind the card,
   chevrons linking the three, and a closing CTA — the section is
   "how to start" and had nothing to start from.
   ============================================================ */

.ship-start {
  background: #f9f9f9;
  border-top: 1px solid #ececec;
  border-bottom: 1px solid #ececec;
  padding: var(--section-gap) 0;
}

.ship-start-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--section-head-gap);
}

.ship-start-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

/* ---- the three steps ---- */
.ship-start-steps {
  display: flex;
  align-items: stretch;
  gap: 24px;
  width: 100%;
  max-width: 1360px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ship-start-step {
  position: relative;
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: var(--card-pad-y) var(--card-pad-x);
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 16px;
  text-align: start;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.ship-start-step:hover {
  transform: translateY(-4px);
  border-color: #a9dbc0;
  box-shadow: 0 16px 34px -18px rgba(24, 60, 40, 0.3);
}

/* A large, very faint numeral for depth. Kept inside the card's bounds:
   the card deliberately has no `overflow: hidden` so the linking chevrons
   can sit out in the gaps, which means a bleeding numeral would spill too. */
.ship-start-ghost {
  position: absolute;
  bottom: 8px;
  inset-inline-end: 14px;
  font-family: var(--ship-figure);
  font-size: 130px;
  font-weight: 800;
  line-height: 0.75;
  color: rgba(36, 162, 89, 0.05);
  pointer-events: none;
  user-select: none;
}

/* ---- the numbered badge and its progress ring ---- */
.ship-start-badge {
  position: relative;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ship-start-n {
  position: relative;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 500px;
  background: var(--bs-primary);
  font-family: var(--ship-figure);
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  z-index: 1;
}

.ship-start-ring {
  position: absolute;
  inset: 0;
  width: 48px;
  height: 48px;
  /* start the sweep at twelve o'clock; Arabic runs it anticlockwise */
  transform: rotate(-90deg) scaleX(-1);
  overflow: visible;
}

[dir="ltr"] .ship-start-ring {
  transform: rotate(-90deg);
}

.ship-start-ring circle {
  fill: none;
  stroke-width: 2;
}

.ship-start-ring-track {
  stroke: #e3efe8;
}

.ship-start-ring-fill {
  stroke: var(--bs-primary);
  stroke-linecap: round;
}

.ship-start-step-title {
  font-family: "MadaniArabic-SemiBold";
  font-size: clamp(17px, 1.05vw, 20px);
  font-weight: 400;
  line-height: 1.43;
  color: var(--text-dark);
  margin: 0;
  width: 100%;
}

.ship-start-step-desc {
  font-family: "MadaniArabic-Regular";
  font-size: 15px;
  line-height: 1.73;
  color: var(--text-gray);
  margin: 0;
  width: 100%;
}

/* ---- chevrons linking the steps (desktop only) ---- */
.ship-start-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 56px;
  inset-inline-end: -17px;
  width: 9px;
  height: 9px;
  border-top: 2px solid #a7dabd;
  border-left: 2px solid #a7dabd;
  transform: rotate(-45deg);
  pointer-events: none;
}

/* the sequence flows the other way in English, so the chevron turns */
[dir="ltr"] .ship-start-step:not(:last-child)::after {
  transform: rotate(135deg);
}

/* ---- closing CTA ---- */
.ship-start-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.ship-start-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 17px 34px;
  background: var(--bs-primary);
  border-radius: 16px;
  box-shadow: 0px 8px 22px 0px rgba(36, 162, 89, 0.26);
  font-family: "MadaniArabic-SemiBold";
  font-size: 17px;
  line-height: 1.5;
  color: #fff;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ship-start-cta:hover,
.ship-start-cta:focus-visible {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(36, 162, 89, 0.34);
}

.ship-start-cta > span,
.ship-start-cta > img {
  position: relative;
  z-index: 1;
}

.ship-start-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
  animation: shipBtnShine 4s ease-in-out 3s infinite;
  pointer-events: none;
}

.ship-start-cta-arrow {
  display: block;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.ship-start-cta:hover .ship-start-cta-arrow {
  transform: translateX(-4px);
}

[dir="ltr"] .ship-start-cta-arrow {
  rotate: 180deg;
}

.ship-start-note {
  font-family: "MadaniArabic-Regular";
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-gray-60);
  margin: 0;
  text-align: center;
}

/* =====================================================================
   Start — reveal and motion
   ===================================================================== */
.ship-start .ship-start-step {
  opacity: 0;
  translate: 0 34px;
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1) calc(0.15s + var(--i, 0) * 0.13s),
    translate 0.8s cubic-bezier(0.22, 1, 0.36, 1) calc(0.15s + var(--i, 0) * 0.13s),
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.ship-start.animated .ship-start-step {
  opacity: 1;
  translate: 0 0;
}

/* the ring draws itself around each number as its step lands */
.ship-start .ship-start-ring-fill {
  stroke-dasharray: 138.23; /* 2 * pi * r, r = 22 */
  stroke-dashoffset: 138.23;
  transition: stroke-dashoffset 1.1s cubic-bezier(0.22, 1, 0.36, 1) calc(0.45s + var(--i, 0) * 0.13s);
}

.ship-start.animated .ship-start-ring-fill {
  stroke-dashoffset: 0;
}

/* the number pops once its ring has closed */
.ship-start .ship-start-n {
  scale: 0.5;
  transition: scale 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) calc(0.35s + var(--i, 0) * 0.13s);
}

.ship-start.animated .ship-start-n {
  scale: 1;
}

/* chevrons fade in behind the cards they join */
.ship-start .ship-start-step::after {
  opacity: 0;
  transition: opacity 0.5s ease calc(0.75s + var(--i, 0) * 0.13s);
}

.ship-start.animated .ship-start-step::after {
  opacity: 1;
}

/* ghost numerals drift a little as the section passes */
.ship-start .ship-start-ghost {
  opacity: 0;
  translate: 0 18px;
  transition:
    opacity 0.9s ease calc(0.5s + var(--i, 0) * 0.13s),
    translate 1s cubic-bezier(0.22, 1, 0.36, 1) calc(0.5s + var(--i, 0) * 0.13s);
}

.ship-start.animated .ship-start-ghost {
  opacity: 1;
  translate: 0 0;
}

/* the CTA arrives last */
.ship-start .ship-start-foot {
  opacity: 0;
  translate: 0 20px;
  transition:
    opacity 0.7s ease 0.9s,
    translate 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.9s;
}

.ship-start.animated .ship-start-foot {
  opacity: 1;
  translate: 0 0;
}

/* scroll-driven: the cards scrub in with the scroll where supported */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .ship-start .ship-start-step {
      animation: shipStartIn linear both;
      animation-timeline: view();
      animation-range: entry 10% cover 32%;
    }

    @keyframes shipStartIn {
      from { opacity: 0; translate: 0 42px; }
      to   { opacity: 1; translate: 0 0; }
    }

    /* the ghost numerals lag the scroll, so the cards gain depth */
    .ship-start .ship-start-ghost {
      animation: shipGhostDrift linear both;
      animation-timeline: view();
      animation-range: entry 20% exit 20%;
    }

    @keyframes shipGhostDrift {
      from { translate: 0 22px; }
      to   { translate: 0 -22px; }
    }
  }
}

@supports (transition-timing-function: linear(0, 1)) {
  .ship-start .ship-start-n {
    transition-timing-function:
      linear(0, 0.009, 0.035 2.1%, 0.141, 0.281 6.7%, 0.723 12.9%,
        0.938 16.7%, 1.017, 1.077, 1.121, 1.149 24.3%, 1.159, 1.163,
        1.161, 1.154 29.9%, 1.129 32.8%, 1.051 39.6%, 1.017 43.1%,
        0.991, 0.977 51%, 0.974 53.8%, 0.975 57.1%, 0.997 69.8%,
        1.003 76.9%, 1);
  }
}

/* =====================================================================
   Start — responsive
   ===================================================================== */
@media (max-width: 1500px) {
  .ship-start-step-desc { font-size: 14px; }
  .ship-start-ghost { font-size: 120px; }
}

@media (max-width: 991px) {
  .ship-start-steps {
    flex-direction: column;
    max-width: 620px;
  }

  /* the chevrons turn to point down the stack */
  .ship-start-step:not(:last-child)::after,
  [dir="ltr"] .ship-start-step:not(:last-child)::after {
    top: auto;
    bottom: -17px;
    inset-inline-end: 50%;
    transform: rotate(-135deg);
  }
}

@media (max-width: 576px) {
  .ship-start-steps { gap: 20px; }
  .ship-start-step { border-radius: 14px; }
  .ship-start-step-title { font-size: 17px; }
  .ship-start-step-desc { font-size: 13.5px; }
  .ship-start-ghost { font-size: 96px; }
  .ship-start-cta { padding: 15px 26px; font-size: 15px; }
  .ship-start-note { font-size: 13px; }
}

/* =====================================================================
   Start — reduced motion
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  .ship-start .ship-start-step,
  .ship-start .ship-start-ghost,
  .ship-start .ship-start-n,
  .ship-start .ship-start-foot,
  .ship-start .ship-start-step::after {
    opacity: 1;
    transform: none;
    translate: none;
    scale: none;
    transition: none;
    animation: none;
  }

  .ship-start .ship-start-step:not(:last-child)::after {
    transform: rotate(-45deg);
  }

  [dir="ltr"] .ship-start .ship-start-step:not(:last-child)::after {
    transform: rotate(135deg);
  }

  .ship-start .ship-start-ring-fill {
    stroke-dashoffset: 0;
    transition: none;
  }

  .ship-start-cta::before {
    display: none;
  }
}

/* ============================================================
   FAQ — the home page's section, brought over verbatim

   The shipping page does not load css/home.css (it would collide
   with the hero and section styles here), so the FAQ's rules are
   copied across. Class names, values and the background image all
   match index.html so the two render identically.
   ============================================================ */

.fag-bg-section {
  background-image: url(../images/fag-bg.webp);
  background-repeat: no-repeat;
  background-position: center top;
  background-size: contain;
  display: flex;
  align-items: center;
  padding: var(--section-gap) 0;
}

.section-14 {
  gap: var(--section-head-gap);
}

.fag-bg-section .section-14 {
  margin-bottom: 0 !important; /* the bootstrap mb-4 on the container */
}

.faq {
  margin: var(--block-gap) 0;
}

.fag-bg-section .faq {
  margin-bottom: 0;
}

.fag-item {
  padding: 1.25rem 1.375rem;
  border-radius: 1rem;
  border: 0.688px solid rgba(255, 255, 255, 0.12);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fag-bg-section.animated .fag-item {
  opacity: 1;
  transform: translateY(0);
}

.fag-bg-section.animated .fag-item:nth-child(1) { transition-delay: 0.2s; }
.fag-bg-section.animated .fag-item:nth-child(2) { transition-delay: 0.4s; }
.fag-bg-section.animated .fag-item:nth-child(3) { transition-delay: 0.6s; }
/* the home page has three questions; this page has a fourth */
.fag-bg-section.animated .fag-item:nth-child(4) { transition-delay: 0.8s; }

.fag-item-title {
  font-family: MadaniArabic-SemiBold;
  font-weight: 400;
  font-size: 24px;
  line-height: 30px;
  letter-spacing: 0px;
  color: rgba(34, 48, 62, 1);
  transition: color 0.3s ease;
  margin-bottom: 0;
}

[aria-expanded="true"] .fag-item-title {
  color: rgba(36, 162, 89, 1);
}

.faq-toggle-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.fag-item .collapse > p {
  color: rgba(34, 48, 62, 0.7);
  text-align: right;
  font-family: "Madani Arabic";
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 164%;
  margin-bottom: 0;
  padding-top: 1rem;
}

[dir="ltr"] .fag-item .collapse > p {
  text-align: left;
}

.section14-title {
  color: var(--text-dark);
  font-family: MadaniArabic-SemiBold;
  font-weight: 400;
  font-size: 50px;
  line-height: 170%;
  letter-spacing: -1%;
  text-align: right;
  margin-bottom: 0;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

[dir="ltr"] .section14-title {
  text-align: left;
}

.fag-bg-section.animated .section14-title {
  opacity: 1;
  transform: translateY(0);
}

/* ---- FAQ responsive, following the home page's steps ---- */
@media (max-width: 1500px) {
  .section-14 { gap: 3rem; }
  .section14-title { font-size: 34px; }
  .fag-item .collapse > p { font-size: 1.15rem; }
}

@media (max-width: 991px) {
  .section14-title { font-size: 30px; line-height: 160%; }
  .fag-item-title { font-size: 20px; line-height: 28px; }
}

@media (max-width: 576px) {
  .section-14 { gap: 2rem; }
  .faq { margin: 2rem 0; }
  .section14-title { font-size: 26px; }
  .fag-item { padding: 1rem; }
  .fag-item-title { font-size: 17px; line-height: 26px; }
  .fag-item .collapse > p { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .fag-item,
  .section14-title {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* ============================================================
   The CTA banner sits between the grey steps section and the FAQ.
   css/pages-v2.css gives it no top padding (on the feature pages it
   follows content that carries its own bottom spacing), so here it
   would butt straight against the section above. Scoped to this
   stylesheet, so the other 36 pages are untouched.
   ============================================================ */
.cta-banner-section {
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
}
