@font-face {
  font-family: "Cairo";
  src: url("./cairo-arabic.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-089F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

@font-face {
  font-family: "Cairo";
  src: url("./cairo-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0100-024F;
}

:root {
  --orange: #ff5a00;
  --orange-dark: #df4600;
  --orange-soft: #fff0e8;
  --peach: #ffd8c2;
  --ink: #2d1b15;
  --muted: #725d54;
  --paper: #fffaf7;
  --white: #fff;
  --line: #efdcd2;
  --success: #0f8a5f;
  --shadow: 0 18px 55px rgba(79, 35, 16, .12);
  --radius: 26px;
  --max: 1180px;
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Cairo", Tahoma, Arial, sans-serif;
  overflow-x: hidden
}

body::before {
  content: "";
  position: fixed;
  inset: -20vmax;
  z-index: -1;
  background: radial-gradient(circle at 84% 5%, rgba(255, 90, 0, .13), transparent 24%), radial-gradient(circle at 5% 70%, rgba(255, 216, 194, .42), transparent 20%);
  pointer-events: none
}

a {
  text-decoration: none;
  color: inherit
}

button,
input,
textarea {
  font: inherit
}

button {
  cursor: pointer
}

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: auto
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 250, 247, .9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(239, 220, 210, .8)
}

.nav {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 20px
}

.logo {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  background: var(--orange);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(255, 90, 0, .24)
}

.nav-links {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700
}

.nav-links a:hover {
  color: var(--orange)
}

.lang {
  font-size: 13px;
  font-weight: 800;
  color: var(--orange)
}

.btn {
  border: 0;
  border-radius: 14px;
  padding: 13px 18px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: .2s ease
}

.btn:hover {
  transform: translateY(-2px)
}

.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 12px 28px rgba(255, 90, 0, .25)
}

.btn-secondary {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink)
}

.hero {
  padding: 48px 0 24px;
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 44px;
  align-items: center
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
  color: var(--orange)
}

.pill i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 6px var(--orange-soft)
}

h1 {
  font-size: clamp(40px, 5.7vw, 72px);
  line-height: 1.16;
  letter-spacing: -.04em;
  margin: 18px 0 0;
  font-weight: 900;
  max-width: 730px
}

h1 span {
  color: var(--orange)
}

.hero-highlight {
  display: block;
  white-space: nowrap
}

.lead {
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.95;
  color: var(--muted);
  margin: 18px 0 0;
  max-width: 720px;
  font-weight: 500
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px
}

.proof {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700
}

.proof span {
  display: flex;
  align-items: center;
  gap: 6px
}

.proof b {
  color: var(--success)
}

.product-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 32px;
  box-shadow: var(--shadow);
  padding: 18px;
  overflow: hidden
}

.product-card::after {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: var(--orange-soft);
  left: -75px;
  top: -90px
}

.screen {
  position: relative;
  z-index: 1;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden
}

.screen-head {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 800
}

.dots {
  display: flex;
  gap: 5px
}

.dots i {
  width: 7px;
  height: 7px;
  background: var(--peach);
  border-radius: 50%
}

.screen-body {
  padding: 14px;
  background: #fffaf8
}

.kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px
}

.kpi {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 11px
}

.kpi small {
  display: block;
  color: var(--muted);
  font-size: 10px
}

.kpi strong {
  display: block;
  margin-top: 5px;
  font-size: 17px
}

.workspace {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 9px;
  margin-top: 9px
}

.mini {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 11px
}

.mini h3 {
  font-size: 12px;
  margin: 0 0 8px
}

.stock {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f4e7e1;
  font-size: 10px
}

.stock:last-child {
  border: 0
}

.stock small {
  color: var(--muted)
}

.badge {
  background: var(--orange-soft);
  color: var(--orange);
  font-weight: 900;
  padding: 4px 7px;
  border-radius: 999px;
  white-space: nowrap
}

.channel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px
}

.channel span {
  padding: 8px 4px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 10px;
  font-weight: 800
}

.channel .active {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange)
}

.cart {
  margin-top: 8px;
  font-size: 10px
}

.cart div {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid #f4e7e1
}

.total {
  margin-top: 7px !important;
  padding: 9px !important;
  border: 0 !important;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-weight: 900
}

.floating-note {
  position: absolute;
  z-index: 2;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 12px 32px rgba(79, 35, 16, .12);
  font-size: 11px;
  font-weight: 700
}

.note-a {
  right: -18px;
  bottom: 62px
}

.note-b {
  left: -12px;
  top: 42px
}

.floating-note b {
  color: var(--orange);
  display: block;
  margin-bottom: 3px
}

.quick-strip {
  padding: 16px 0 28px
}

.strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px
}

.strip-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 76px
}

.strip-no {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--orange-soft);
  color: var(--orange);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 900;
  flex: 0 0 auto
}

.strip-item b {
  font-size: 12px
}

.strip-item small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
  margin-top: 3px
}

.compact {
  padding: 28px 0 50px
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px
}

.section-head h2 {
  font-size: clamp(26px, 3.6vw, 42px);
  line-height: 1.35;
  margin: 0;
  max-width: 700px
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  max-width: 360px
}

.tabs {
  display: grid;
  grid-template-columns: 210px 1fr;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(79, 35, 16, .06)
}

.tab-buttons {
  padding: 10px;
  background: #fff7f3;
  border-left: 1px solid var(--line);
  display: grid;
  gap: 5px;
  align-content: start
}

.tab-btn {
  border: 0;
  background: transparent;
  text-align: right;
  padding: 13px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800
}

.tab-btn.active {
  background: var(--orange);
  color: #fff
}

.tab-panel {
  display: none;
  padding: 24px
}

.tab-panel.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: center
}

.tab-panel h3 {
  font-size: 24px;
  line-height: 1.45;
  margin: 0
}

.tab-panel p {
  color: var(--muted);
  line-height: 1.9;
  font-size: 13px;
  margin: 10px 0 0
}

.bullet-list {
  display: grid;
  gap: 10px;
  margin-top: 14px
}

.bullet-list span {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 12px;
  line-height: 1.7
}

.bullet-list i {
  width: 20px;
  height: 20px;
  border-radius: 7px;
  background: var(--orange-soft);
  color: var(--orange);
  display: grid;
  place-items: center;
  font-style: normal;
  font-weight: 900;
  flex: 0 0 auto
}

.metric-card {
  background: var(--orange);
  color: #fff;
  border-radius: 22px;
  padding: 22px;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between
}

.metric-card small {
  opacity: .8
}

.metric-card strong {
  font-size: 42px;
  line-height: 1
}

.metric-card p {
  color: #fff;
  margin: 0;
  opacity: .9
}

.pilot {
  margin-top: 18px;
  background: var(--ink);
  color: #fff;
  border-radius: 28px;
  padding: 26px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center
}

.pilot h3 {
  font-size: 26px;
  margin: 0
}

.pilot p {
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
  line-height: 1.8;
  margin: 8px 0 0
}

.pilot-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap
}

.pilot .btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .28)
}

.faq {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px
}

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 14px
}

.faq summary {
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  list-style: none
}

.faq p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
  margin: 9px 0 0
}

footer {
  padding: 24px 0 84px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap
}

.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 250, 247, .94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(16px)
}

.mobile-cta .btn {
  width: 100%
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(45, 27, 21, .78);
  padding: 18px;
  place-items: center
}

.modal.open {
  display: grid
}

.modal-card {
  width: min(560px, 100%);
  background: #fff;
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow)
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center
}

.modal h3 {
  margin: 0;
  font-size: 22px
}

.close {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff
}

.lead-form {
  display: grid;
  gap: 10px;
  margin-top: 16px
}

.lead-form input,
.lead-form textarea {
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 12px;
  background: #fffaf8
}

.lead-form textarea {
  min-height: 90px;
  resize: vertical
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px
}

@media(max-width:900px) {
  .nav-links {
    display: none
  }

  .hero {
    min-height: auto;
    padding-top: 34px
  }

  .hero-grid {
    grid-template-columns: 1fr
  }

  .product-card {
    max-width: 620px;
    margin: auto
  }

  .strip {
    grid-template-columns: repeat(2, 1fr)
  }

  .tabs {
    grid-template-columns: 1fr
  }

  .tab-buttons {
    grid-template-columns: repeat(4, 1fr);
    border-left: 0;
    border-bottom: 1px solid var(--line);
    overflow: auto
  }

  .tab-btn {
    text-align: center;
    white-space: nowrap
  }

  .section-head {
    align-items: start;
    flex-direction: column
  }

  .pilot {
    grid-template-columns: 1fr
  }

  .faq {
    grid-template-columns: 1fr 1fr
  }
}

@media(max-width:600px) {
  .container {
    width: calc(100% - 20px)
  }

  .topbar .btn-primary {
    display: none
  }

  .nav {
    height: 58px
  }

  .brand {
    font-size: 18px
  }

  .logo {
    width: 34px;
    height: 34px;
    border-radius: 11px
  }

  .hero {
    padding: 22px 0 12px
  }

  .hero-grid {
    gap: 18px
  }

  .pill {
    font-size: 10px;
    padding: 7px 10px
  }

  h1 {
    font-size: 34px;
    line-height: 1.2;
    letter-spacing: -.035em;
    margin-top: 14px
  }

  .hero-highlight {
    font-size: 32px;
    margin-top: 2px
  }

  .lead {
    font-size: 14px;
    line-height: 1.75;
    margin-top: 13px
  }

  .hero-actions {
    margin-top: 18px
  }

  .hero-actions .btn {
    width: 100%;
    padding: 12px 14px
  }

  .proof {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    margin-top: 14px;
    font-size: 10px
  }

  .product-card {
    border-radius: 22px;
    padding: 8px
  }

  .floating-note {
    display: none
  }

  .screen-head {
    height: 42px;
    padding: 0 12px
  }

  .screen-body {
    padding: 9px
  }

  .kpis {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px
  }

  .kpi {
    padding: 7px;
    border-radius: 11px
  }

  .kpi small {
    font-size: 8px
  }

  .kpi strong {
    font-size: 13px;
    margin-top: 3px
  }

  .workspace {
    grid-template-columns: 1fr;
    gap: 7px;
    margin-top: 7px
  }

  .mini {
    padding: 9px;
    border-radius: 12px
  }

  .mini h3 {
    font-size: 11px;
    margin-bottom: 5px
  }

  .stock {
    padding: 5px 0;
    font-size: 9px
  }

  .stock small {
    font-size: 8px
  }

  .badge {
    font-size: 8px;
    padding: 3px 6px
  }

  .channel span {
    padding: 6px 3px;
    font-size: 9px
  }

  .cart {
    margin-top: 5px;
    font-size: 9px
  }

  .cart div {
    padding: 5px 0
  }

  .total {
    margin-top: 5px !important;
    padding: 7px !important
  }

  .quick-strip {
    padding: 12px 0 16px
  }

  .strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    overflow: visible;
    padding: 0
  }

  .strip-item {
    min-width: 0;
    min-height: 70px;
    padding: 10px;
    gap: 8px;
    border-radius: 14px;
    align-items: flex-start
  }

  .strip-no {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    font-size: 9px
  }

  .strip-item b {
    font-size: 10px;
    line-height: 1.45
  }

  .strip-item small {
    font-size: 8px;
    line-height: 1.5;
    margin-top: 2px
  }

  .compact {
    padding: 17px 0 32px
  }

  .section-head {
    gap: 7px;
    margin-bottom: 13px
  }

  .section-head h2 {
    font-size: 25px;
    line-height: 1.45
  }

  .section-head p {
    font-size: 11px;
    line-height: 1.65
  }

  .tabs {
    border-radius: 18px
  }

  .tab-buttons {
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    padding: 7px;
    overflow: visible
  }

  .tab-btn {
    padding: 9px 6px;
    font-size: 10px;
    white-space: normal;
    line-height: 1.4
  }

  .tab-panel {
    padding: 14px
  }

  .tab-panel.active {
    grid-template-columns: 1fr;
    gap: 12px
  }

  .tab-panel h3 {
    font-size: 19px;
    line-height: 1.55
  }

  .tab-panel p {
    font-size: 11px;
    line-height: 1.75;
    margin-top: 7px
  }

  .bullet-list {
    gap: 7px;
    margin-top: 10px
  }

  .bullet-list span {
    font-size: 10px;
    line-height: 1.6
  }

  .bullet-list i {
    width: 18px;
    height: 18px;
    border-radius: 6px
  }

  .metric-card {
    min-height: 126px;
    padding: 15px;
    border-radius: 17px
  }

  .metric-card strong {
    font-size: 30px
  }

  .metric-card p {
    font-size: 10px;
    line-height: 1.6
  }

  .pilot {
    padding: 17px;
    border-radius: 19px;
    gap: 15px
  }

  .pilot h3 {
    font-size: 20px;
    line-height: 1.55
  }

  .pilot p {
    font-size: 11px;
    line-height: 1.7
  }

  .pilot-actions .btn {
    width: 100%;
    padding: 11px
  }

  .faq {
    grid-template-columns: 1fr
  }

  .faq details:nth-child(n+3) {
    display: none
  }

  .mobile-cta {
    display: block
  }

  .form-row {
    grid-template-columns: 1fr
  }

  footer {
    padding-bottom: 96px
  }
}

/* Delivery journey: flat 16-bit sprite, desktop-only, one-shot on page load. */
.hero {
  display: block;
  min-height: auto;
}

.delivery-journey {
  position: relative;
  isolation: isolate;
  width: min(var(--max), calc(100% - 32px));
  height: clamp(265px, 24vw, 330px);
  margin: 38px auto 0;
  overflow: hidden;
  direction: ltr;
  border: 3px solid #2e2431;
  border-radius: 18px;
  background: #dff5ff;
  box-shadow: 8px 8px 0 rgba(46, 36, 49, .14);
}

.delivery-journey::before {
  content: "";
  position: absolute;
  z-index: 5;
  inset: 0;
  pointer-events: none;
  opacity: .14;
  background: repeating-linear-gradient(to bottom,
      rgba(46, 36, 49, .16) 0,
      rgba(46, 36, 49, .16) 1px,
      transparent 1px,
      transparent 4px);
}

.delivery-journey::after {
  content: "";
  position: absolute;
  z-index: 6;
  inset: 0;
  border-radius: 14px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .42);
  pointer-events: none;
}

.delivery-journey__scene,
.delivery-journey__scene picture,
.delivery-journey__scene img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.delivery-journey__scene img {
  display: block;
  object-fit: cover;
  object-position: center center;
  image-rendering: pixelated;
  user-select: none;
  pointer-events: none;
  opacity: 0.2;
}

.delivery-journey__hud {
  position: absolute;
  z-index: 7;
  top: 13px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 6px 10px;
  border: 2px solid #2e2431;
  border-radius: 4px;
  color: #fff8ec;
  background: #2e2431;
  box-shadow: 4px 4px 0 rgba(46, 36, 49, .16);
  font-family: "Courier New", monospace;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .06em;
  white-space: nowrap;
}

.delivery-journey__hud-dot {
  width: 7px;
  height: 7px;
  background: #ffbd2e;
  box-shadow: 0 0 0 2px #cf3d00;
  animation: pixelBlink .8s steps(2, end) infinite;
}

.delivery-journey__status--arrived {
  display: none;
}

.delivery-journey.is-complete .delivery-journey__status--moving {
  display: none;
}

.delivery-journey.is-complete .delivery-journey__status--arrived {
  display: inline;
}

.delivery-journey.is-complete .delivery-journey__hud-dot {
  background: #63d17d;
  box-shadow: 0 0 0 2px #176743;
  animation: none;
}

.delivery-journey__label {
  position: absolute;
  z-index: 4;
  bottom: 18px;
  padding: 4px 7px;
  border: 2px solid #2e2431;
  color: #2e2431;
  background: #fff8ec;
  box-shadow: 3px 3px 0 rgba(46, 36, 49, .15);
  font-family: "Courier New", monospace;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .05em;
}

.delivery-journey__label--pickup {
  left: 3%;
}

.delivery-journey__label--dropoff {
  right: 3%;
}

.delivery-rider {
  position: absolute;
  z-index: 4;
  left: 15%;
  bottom: 4.5%;
  width: clamp(145px, 14vw, 205px);
  aspect-ratio: 3 / 2;
  opacity: 0;
  transform: translate3d(-50%, 2px, 0);
  transform-origin: 50% 100%;
  will-change: left, transform, opacity;
  pointer-events: none;
}

.delivery-rider__visual {
  width: 100%;
  height: 100%;
  background-image: url("delivery-rider-sprite.png");
  background-repeat: no-repeat;
  background-size: 600% 100%;
  background-position: 0 0;
  image-rendering: pixelated;
  filter: drop-shadow(5px 6px 0 rgba(46, 36, 49, .18));
  transform-origin: center bottom;
}

.delivery-journey.is-running .delivery-rider {
  animation: deliveryTrip 6.4s linear .25s both;
}

.delivery-journey.is-running .delivery-rider__visual {
  animation: riderSprite .48s steps(6, end) .25s infinite;
}

.delivery-journey.is-complete .delivery-rider {
  left: 79%;
  opacity: 1;
  transform: translate3d(-50%, 0, 0);
}

.delivery-journey.is-complete .delivery-rider__visual {
  animation: none;
  background-position: 0 0;
}

@keyframes deliveryTrip {
  0% {
    left: 15%;
    opacity: 0;
    transform: translate3d(-50%, 2px, 0);
  }

  4% {
    opacity: 1;
  }

  12% {
    left: 23%;
    transform: translate3d(-50%, 0, 0);
  }

  48% {
    left: 49%;
    transform: translate3d(-50%, -1px, 0);
  }

  82% {
    left: 72%;
    transform: translate3d(-50%, 0, 0);
  }

  96% {
    left: 79%;
    opacity: 1;
    transform: translate3d(-50%, 0, 0);
  }

  100% {
    left: 79%;
    opacity: 1;
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes riderSprite {

  0%,
  16.65% {
    background-position: 0 0;
  }

  16.66%,
  33.32% {
    background-position: 20% 0;
  }

  33.33%,
  49.99% {
    background-position: 40% 0;
  }

  50%,
  66.65% {
    background-position: 60% 0;
  }

  66.66%,
  83.32% {
    background-position: 80% 0;
  }

  83.33%,
  100% {
    background-position: 100% 0;
  }
}

@keyframes pixelBlink {

  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: .28;
  }
}

@media (max-width: 900px) {
  .delivery-journey {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {

  .delivery-journey__hud-dot,
  .delivery-journey.is-running .delivery-rider,
  .delivery-journey.is-running .delivery-rider__visual {
    animation: none !important;
  }

  .delivery-rider {
    left: 79%;
    opacity: 1;
    transform: translate3d(-50%, 0, 0);
  }

  .delivery-rider__visual {
    background-image: url("delivery-rider-static.png");
    background-size: 100% 100%;
  }
}

/* Q-POS typography and floating-card readability fixes */

/* Keep Arabic headlines balanced and prevent line collisions in Cairo. */
h1 {
  max-width: 700px;
  font-size: clamp(2.4rem, 4.15vw, 4.35rem);
  line-height: 1.28;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-highlight {
  display: block;
  margin-top: 0.14em;
  padding-bottom: 0.05em;
  line-height: 1.18;
  white-space: normal;
}

.section-head h2 {
  font-size: clamp(1.85rem, 2.65vw, 2.8rem);
  line-height: 1.44;
  letter-spacing: 0;
  text-wrap: balance;
}

.tab-panel h3 {
  font-size: clamp(1.4rem, 2vw, 2.05rem);
  line-height: 1.52;
  letter-spacing: 0;
  text-wrap: balance;
}

.pilot h3 {
  font-size: clamp(1.45rem, 2vw, 2.05rem);
  line-height: 1.55;
  text-wrap: balance;
}

/* Give the floating explanatory cards enough room and keep them readable. */
.product-card {
  min-width: 0;
  overflow: visible;
}

.product-card::after {
  width: 180px;
  height: 180px;
  left: 0;
  top: 0;
  transform: translate(-30%, -38%);
  pointer-events: none;
}

.floating-note {
  z-index: 4;
  width: 220px;
  max-width: calc(100% - 36px);
  padding: 14px 17px;
  overflow: visible;
  border-inline-start: 3px solid var(--orange);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 34px rgba(79, 35, 16, 0.14);
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.75;
  text-align: start;
  white-space: normal;
}

.floating-note b {
  display: block;
  margin-bottom: 4px;
  color: var(--orange-dark);
  font-size: 0.84rem;
  font-weight: 850;
  line-height: 1.5;
  white-space: normal;
}

.note-a {
  inset: -18px auto auto 18px;
}

.note-b {
  inset: auto 18px 34px auto;
}

@media (max-width: 1100px) and (min-width: 901px) {
  h1 {
    max-width: 620px;
    font-size: clamp(2.3rem, 4.5vw, 3.5rem);
    line-height: 1.3;
  }

  .hero-grid {
    gap: 38px;
  }

  .floating-note {
    width: 205px;
    font-size: 0.74rem;
  }
}

@media (max-width: 900px) {
  h1 {
    max-width: 720px;
    margin-inline: auto;
    font-size: clamp(2.35rem, 6vw, 3.45rem);
    line-height: 1.3;
  }

  .section-head h2 {
    font-size: clamp(1.85rem, 4.2vw, 2.5rem);
    line-height: 1.46;
  }

  /* These cards are decorative and can cover the compact interface on tablets. */
  .floating-note {
    display: none;
  }
}

@media (max-width: 600px) {
  h1 {
    max-width: 18ch;
    margin-inline: auto;
    font-size: clamp(2rem, 9.2vw, 2.5rem);
    line-height: 1.32;
    letter-spacing: 0;
  }

  .hero-highlight {
    margin-top: 0.12em;
    font-size: 0.94em;
    line-height: 1.22;
  }

  .section-head h2 {
    font-size: 1.72rem;
    line-height: 1.5;
  }

  .tab-panel h3 {
    font-size: 1.28rem;
    line-height: 1.55;
  }

  .pilot h3 {
    font-size: 1.35rem;
    line-height: 1.55;
  }

  /* Remove the decorative circle on small screens so it never covers copy. */
  .product-card::after {
    display: none;
  }
}

/* =========================================
   Floating WhatsApp button
   Desktop: fixed floating button
   Mobile: reserved slot beside the fixed CTA
   Keep this block at the END of landing.css
   ========================================= */

a.whatsapp-rail {
  position: fixed;
  right: 22px;
  bottom: 22px;
  left: auto;
  top: auto;
  z-index: 50;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
  max-width: 56px;
  max-height: 56px;
  padding: 0;
  margin: 0;

  color: #fff;
  background: #25d366;
  border: 2px solid rgba(255, 255, 255, .92);
  border-radius: 18px;

  box-shadow:
    0 10px 28px rgba(28, 45, 36, .24),
    0 3px 8px rgba(28, 45, 36, .18);

  line-height: 1;
  text-decoration: none;
  box-sizing: border-box;
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;

  transition:
    transform 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

a.whatsapp-rail svg {
  display: block;
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  max-width: 28px;
  max-height: 28px;
  margin: 0;
  padding: 0;
  flex: 0 0 28px;
  color: inherit;
  fill: currentColor;
}

a.whatsapp-rail svg path {
  fill: currentColor;
}

a.whatsapp-rail:hover {
  background: #20bd5a;
  transform: translateY(-3px) scale(1.04);
  box-shadow:
    0 14px 32px rgba(28, 45, 36, .28),
    0 4px 10px rgba(28, 45, 36, .18);
}

a.whatsapp-rail:active {
  transform: scale(.94);
}

a.whatsapp-rail:focus-visible {
  outline: 3px solid rgba(37, 211, 102, .35);
  outline-offset: 4px;
}

/* The mobile CTA already appears only at 600px and below. */
@media (max-width: 600px) {
  /*
   * Reserve a dedicated slot on the right side of the CTA bar.
   * The main orange button can no longer sit underneath WhatsApp.
   */
  .mobile-cta {
    padding-right: 74px;
  }

  a.whatsapp-rail {
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));

    width: 52px;
    height: 52px;
    min-width: 52px;
    min-height: 52px;
    max-width: 52px;
    max-height: 52px;

    border-radius: 16px;
  }

  a.whatsapp-rail svg {
    width: 26px;
    height: 26px;
    min-width: 26px;
    min-height: 26px;
    max-width: 26px;
    max-height: 26px;
    flex-basis: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  a.whatsapp-rail {
    transition: none;
  }

  a.whatsapp-rail:hover,
  a.whatsapp-rail:active {
    transform: none;
  }
}

html:has(.thank-you-body) {
  overflow-x: clip;
}

.thank-you-body .skip-link {
  position: fixed;
  z-index: 1000;
  inset-block-start: 10px;
  inset-inline-start: 16px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 12px;
  color: var(--paper, var(--white));
  background: var(--ink);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-160%);
}

.thank-you-body .skip-link:focus {
  transform: translateY(0);
}


.thank-you-body {
  overflow-x: clip;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.thank-you-body .topbar .brand {
  min-height: 44px;
}

.thank-you-home-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 12px;
  color: var(--ink-soft, var(--muted));
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
}

.thank-you-home-link:hover {
  color: var(--orange);
  background: var(--orange-soft);
}

.thank-you-main {
  position: relative;
  flex: 1;
  display: grid;
  place-items: center;
  padding: clamp(48px, 8vw, 104px) 16px;
  isolation: isolate;
}

.thank-you-main::before,
.thank-you-main::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

.thank-you-main::before {
  width: min(520px, 76vw);
  aspect-ratio: 1;
  inset-block-start: -25%;
  inset-inline-end: -12%;
  background: var(--orange-soft);
  opacity: 0.8;
}

.thank-you-main::after {
  width: min(360px, 58vw);
  aspect-ratio: 1;
  inset-block-end: -20%;
  inset-inline-start: -10%;
  background: var(--peach);
  opacity: 0.42;
}

.thank-you-card {
  position: relative;
  width: min(760px, 100%);
  overflow: hidden;
  padding: clamp(30px, 6vw, 64px);
  border: 1px solid var(--line);
  border-radius: clamp(24px, 4vw, 36px);
  background: var(--paper, var(--white));
  box-shadow: var(--shadow-lg, var(--shadow));
  text-align: center;
}

.thank-you-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: var(--orange);
}

.thank-you-mark {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  border: 1px solid var(--peach);
  border-radius: 24px;
  color: var(--green, var(--success));
  background: var(--orange-soft);
  transform: rotate(-3deg);
}

.thank-you-mark svg {
  width: 40px;
  height: 40px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: rotate(3deg);
}

.thank-you-eyebrow {
  margin: 0 0 8px;
  color: var(--orange-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.thank-you-card h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.6rem);
  line-height: 1.25;
  letter-spacing: -0.04em;
}

.thank-you-lead {
  max-width: 600px;
  margin: 18px auto 0;
  color: var(--ink-soft, var(--muted));
  font-size: clamp(0.98rem, 2.3vw, 1.12rem);
}

.thank-you-next {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 32px;
  text-align: start;
}

.thank-you-next article {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--cream, var(--paper));
}

.thank-you-next article > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--orange-dark);
  background: var(--orange-soft);
  font-size: 0.72rem;
  font-weight: 900;
}

.thank-you-next strong {
  display: block;
  margin-bottom: 3px;
  font-size: 0.92rem;
}

.thank-you-next p {
  margin: 0;
  color: var(--ink-soft, var(--muted));
  font-size: 0.75rem;
  line-height: 1.7;
}

.thank-you-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.thank-you-actions .btn {
  min-width: 190px;
}

.thank-you-note {
  margin: 18px 0 0;
  color: var(--ink-soft, var(--muted));
  font-size: 0.72rem;
}

@media (max-width: 620px) {
  .thank-you-main {
    padding: 36px 12px;
  }

  .thank-you-card {
    padding: 34px 18px;
    border-radius: 24px;
  }

  .thank-you-mark {
    width: 66px;
    height: 66px;
    border-radius: 20px;
  }

  .thank-you-next {
    grid-template-columns: 1fr;
    margin-top: 26px;
  }

  .thank-you-actions {
    display: grid;
  }

  .thank-you-actions .btn {
    width: 100%;
    min-width: 0;
  }
}
