/* زيادة قيمة السلة */

/* ===== الترويسة والتذييل كما في التصميم ===== */

.app--upsell .brand__name {
  letter-spacing: 0;
}

.app-footer__inner {
  gap: 16px;
  padding-block: 40px;
}

.app-footer a {
  text-decoration: none;
}

/* في التصميم يُضاف الإطار إلى ارتفاع الأزرار (46 و54) */
.site-header__actions .btn {
  min-height: 46px;
}

.app-hero__actions .btn--lg {
  min-height: 54px;
}

/* ===== رأس الصفحة ===== */

.app-hero {
  gap: 26px;
  padding-top: clamp(80px, 12vh, 140px);
  padding-bottom: clamp(64px, 10vh, 110px);
}

.app-hero__title {
  gap: 14px;
}

.app-hero__title h1 {
  font-size: clamp(44px, 6vw, 80px);
  font-weight: 700;
  letter-spacing: -.01em;
}

.app--upsell .app-badge {
  background: var(--accent);
  color: var(--on-accent);
}

.app-hero__lead {
  max-width: 640px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.facts {
  margin-top: 30px;
}

.facts__value {
  font-weight: 700;
  letter-spacing: -.01em;
}

/* خط قصير بلون التطبيق تحت العناوين */
.rule {
  display: block;
  width: 48px;
  height: 2px;
  background: var(--accent);
}

.rule--hero {
  width: 56px;
}

.rise {
  animation: rise 1s ease-out both;
}

/* ===== ما يراه عميلك ===== */

.features__inner {
  gap: 36px;
  padding-block: clamp(80px, 12vh, 130px);
}

.features__head {
  gap: 14px;
}

.features__title {
  font-size: clamp(28px, 3.4vw, 46px);
  letter-spacing: -.01em;
}

/* تبويبات بزوايا حادة */
.tab {
  border-color: var(--accent);
  border-radius: 0;
  background: transparent;
}

.tab[aria-selected="true"] {
  font-weight: 400;
}

.example {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
}

.example__text {
  display: flex;
  flex: 1 1 360px;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.example__count {
  font-size: 14px;
  color: var(--muted);
}

.example__text h3 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.01em;
}

.example__lead {
  font-size: 18px;
  line-height: 1.9;
  color: var(--ink);
}

.example__notes {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  list-style: none;
}

.example__notes li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.example__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.step-btn {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-size: 15px;
  cursor: pointer;
  transition: transform .12s ease, opacity .15s ease;
}

.step-btn--next {
  border: 0;
  background: var(--accent);
  color: var(--on-accent);
}

.step-btn:hover {
  opacity: .9;
}

.step-btn:active {
  transform: scale(.97);
}

/* المنصة التي يقف عليها الجوال */
.stage {
  display: flex;
  flex: 1 1 388px; /* 340 + الحشوة، كما في التصميم */
  justify-content: center;
  min-width: 0;
  padding: 24px;
  background: var(--watermark-2);
}

/* ===== جوال المتجر (يبقى فاتحاً في الوضع الليلي) ===== */

.phone {
  flex: none;
  width: 324px; /* 300 + الحشوة */
  max-width: 100%;
  padding: 12px;
  border-radius: 32px;
  background: var(--bg-alt);
}

.phone__screen {
  position: relative;
  /* أقل ارتفاع كالتصميم، ويطول إن زاد المحتوى فلا يُقص زر البكج */
  min-height: 540px;
  padding-bottom: 14px;
  overflow: hidden;
  border-radius: 22px;
  background: var(--panel);
  color: var(--ink);
  font-size: 13px;
}

.phone__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.phone__logo {
  width: 70px;
  height: 12px;
  background: var(--line);
}

.phone__cart path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.4;
}

.phone__cart circle {
  fill: var(--ink);
}

.phone__img {
  height: 170px;
  background: var(--mock-img);
}

.phone__product {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
}

.phone__name {
  font-size: 15px;
  font-weight: 600;
}

.phone__muted {
  color: var(--muted);
}

/* أجزاء الأمثلة */
.m-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 14px;
  padding: 12px;
  border: 1px solid var(--line);
}

.m-box--strong {
  border-color: var(--accent);
}

.m-box--gap12 {
  gap: 12px;
}

.m-box--flush {
  gap: 8px;
  margin: 0;
}

.m-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 14px;
}

.m-stack--8 {
  gap: 8px;
}

.m-title {
  font-size: 13px;
  font-weight: 600;
}

.m-strong {
  font-weight: 600;
}

.m-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 13px;
  font-weight: 600;
}

.m-btn--outline {
  min-height: 34px;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  font-weight: 400;
}

.m-btn--plain {
  font-size: inherit;
}

.m-btn--skip {
  min-height: 38px;
  border: 1px solid var(--mock-line);
  background: transparent;
  color: var(--mock-ink);
  font-size: inherit;
  font-weight: 400;
}

.m-badge {
  padding: 2px 6px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 11px;
}

.m-badge--save {
  align-self: flex-start;
  padding: 3px 8px;
  font-size: 12px;
}

.m-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.m-item__name {
  flex: 1;
}

.m-check {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 1px solid var(--accent);
}

.m-check__dot {
  width: 8px;
  height: 8px;
  background: var(--bg-alt);
}

.m-thumb {
  flex: none;
  width: 48px;
  height: 48px;
  background: var(--mock-img-2);
}

.m-thumb--40 {
  width: 40px;
  height: 40px;
}

.m-thumb--alt {
  background: var(--mock-img-3);
}

/* خصم الكمية */
.m-option {
  display: flex;
  justify-content: space-between;
  padding: 11px 12px;
  border: 1px solid var(--line);
}

.m-option--picked {
  align-items: center;
  border-color: var(--accent);
  background: var(--mock-cream);
}

.m-option__label {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* البكج */
.m-bundle {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.m-bundle__item {
  width: 64px;
  height: 64px;
  background: var(--mock-img-2);
}

.m-bundle__item--2 {
  background: var(--line);
}

.m-bundle__item--3 {
  background: var(--mock-img-3);
}

.m-bundle__plus {
  font-size: 18px;
  color: var(--muted);
}

.m-bundle__price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

/* اشترِ واحصل */
.m-gift {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: var(--accent);
  color: var(--on-accent);
}

.m-gift__title {
  font-weight: 600;
}

.m-gift__hint,
.m-gift__done {
  font-size: 12px;
}

.m-gift__hint {
  color: var(--line-strong);
}

.m-progress {
  height: 8px;
  background: var(--mock-img-4);
}

.m-progress__fill {
  height: 100%;
  background: var(--accent);
  transform-origin: right center;
}

.m-progress--gift {
  height: 6px;
  background: var(--mock-ink-2);
}

.m-progress--gift .m-progress__fill {
  background: var(--on-accent);
}

/* نصّان في المكان نفسه يتبادلان الظهور */
.m-swap {
  display: grid;
}

.m-swap > * {
  grid-area: 1 / 1;
}

/* السلة */
.m-cart {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
}

.m-cart--gap12 {
  gap: 12px;
}

.m-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.m-divider {
  height: 1px;
  background: var(--line);
}

.m-total {
  display: flex;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

/* نافذة الترشيحات أسفل الشاشة */
.m-sheet {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 14px;
  border-top: 1px solid var(--accent);
  background: var(--panel);
  box-shadow: 0 -10px 30px var(--shadow-pop);
}

.m-sheet__title {
  font-size: 14px;
  font-weight: 600;
}

.m-sheet__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.m-reco {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.m-reco__img {
  height: 80px;
  background: var(--mock-img-2);
}

.m-reco__img--2 {
  background: var(--line);
}

/* نافذة قبل إتمام الطلب */
.m-scrim {
  position: absolute;
  inset: 0;
  background: var(--mock-scrim);
}

.m-modal {
  position: absolute;
  inset-inline: 12px;
  bottom: 90px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 16px;
  background: var(--panel);
  text-align: center;
}

.m-modal__img {
  height: 90px;
  background: var(--mock-img-2);
}

.m-modal__text {
  line-height: 1.6;
}

/* ===== كل أنواع العروض ===== */

.all-types {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-block: clamp(60px, 9vh, 100px);
}

.all-types__head {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.all-types__title {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.45;
}

.types {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.types__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.types__num {
  font-size: 13px;
  font-weight: 700;
  color: var(--app);
}

.types__item b {
  font-size: 17px;
}

.types__where {
  font-size: 14px;
  color: var(--muted);
}

/* ===== ما تراه أنت ===== */

.merchant,
.start-band {
  background: var(--bg-alt);
}

.merchant__inner {
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding-block: clamp(80px, 12vh, 130px);
}

.panels {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.panel {
  display: flex;
  flex: 1 1 390px; /* 340 + الحشوة والإطار */
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--bg-alt);
}

.panel__label {
  font-size: 13px;
  color: var(--muted);
}

.panel__text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.offers {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.offers__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.offers__main {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.offers__name {
  font-size: 15px;
}

.offers__sub {
  font-size: 12px;
  color: var(--muted);
}

/* مفتاح التشغيل */
.switch {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: flex-end;
  width: 34px;
  height: 18px;
  padding: 2px;
  border-radius: 9px;
  background: var(--line);
}

.switch__knob {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--muted);
}

.switch--on {
  justify-content: flex-start;
  background: var(--accent);
}

.switch--on .switch__knob {
  background: var(--bg-alt);
}

/* محرّر التصميم */
.editor-preview {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  background: var(--panel);
  color: var(--ink);
}

.editor-preview__title {
  font-size: 13px;
  font-weight: 600;
}

.editor-preview__option {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  border: 1px solid var(--accent);
  font-size: 13px;
}

.settings,
.revenue {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  font-size: 14px;
}

.settings {
  color: var(--ink-soft);
}

.settings__row,
.revenue__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.settings dd,
.revenue dd {
  margin: 0;
}

.swatches {
  display: flex;
  gap: 6px;
}

.swatch {
  width: 20px;
  height: 20px;
}

.swatch--light {
  width: 22px;
  height: 22px;
  border: 1px solid var(--line-strong);
  background: var(--bg-alt);
}

.swatch--accent {
  background: var(--accent);
}

.swatch--indigo {
  background: var(--mock-indigo);
}

.settings__field {
  padding: 4px 10px;
  border: 1px solid var(--line);
  color: var(--ink);
}

.settings__value {
  color: var(--ink);
}

/* إيراد العرض */
.revenue__row {
  align-items: stretch;
  color: var(--muted);
}

.revenue__row--total {
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 16px;
  color: var(--ink);
}

.revenue__row--total b {
  color: var(--accent);
}

/* ===== كيف تبدأ ===== */

.start {
  gap: 44px;
  padding-block: clamp(80px, 12vh, 130px);
}

.steps {
  gap: clamp(24px, 3.5vw, 56px);
}

.steps__item {
  padding-top: 26px;
  border-top-width: 1px;
}

.steps__num {
  font-weight: 400;
  color: var(--accent);
}

.steps__item h3 {
  font-size: clamp(22px, 2.2vw, 28px);
  letter-spacing: -.01em;
}

.start-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
}

.start-cta__text {
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 700;
  letter-spacing: -.01em;
}

/* ===== الحركة ===== */

.anim-dot { animation: check-dot 8s ease infinite; }
.anim-pick { animation: pick-option 8s ease infinite; }
.anim-in { animation: slide-in 8s ease-out infinite; }
.anim-fill { animation: fill-bar 8s ease infinite; }
.anim-ma { animation: swap-first 8s ease infinite; }
.anim-mb { animation: swap-second 8s ease infinite; opacity: 0; }
.anim-pop { animation: pop-up 9s cubic-bezier(.2, .8, .2, 1) infinite; }
.anim-shade { animation: shade 9s ease infinite; }

.delay-05 { animation-delay: .5s; }
.delay-06 { animation-delay: .6s; }
.delay-1 { animation-delay: 1s; }
.delay-24 { animation-delay: 2.4s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@keyframes check-dot {
  0%, 22% { transform: scale(0); }
  28%, 90% { transform: scale(1); }
  96%, 100% { transform: scale(0); }
}

@keyframes pick-option {
  0%, 22% { background: var(--panel); border-color: var(--line); }
  28%, 90% { background: var(--mock-cream); border-color: var(--accent); }
  96%, 100% { background: var(--panel); border-color: var(--line); }
}

@keyframes slide-in {
  0% { opacity: 0; transform: translateY(-8px); }
  10%, 80% { opacity: 1; transform: none; }
  90%, 100% { opacity: 0; transform: none; }
}

@keyframes fill-bar {
  0%, 30% { transform: scaleX(.45); }
  55%, 90% { transform: scaleX(1); }
  100% { transform: scaleX(.45); }
}

@keyframes swap-first {
  0%, 45% { opacity: 1; }
  50%, 92% { opacity: 0; }
  97%, 100% { opacity: 1; }
}

@keyframes swap-second {
  0%, 45% { opacity: 0; }
  50%, 92% { opacity: 1; }
  97%, 100% { opacity: 0; }
}

@keyframes pop-up {
  0%, 6% { transform: translateY(110%); }
  16%, 86% { transform: none; }
  96%, 100% { transform: translateY(110%); }
}

@keyframes shade {
  0%, 6% { opacity: 0; }
  16%, 86% { opacity: 1; }
  96%, 100% { opacity: 0; }
}

/* ===== الشاشات الأصغر ===== */

@media (max-width: 860px) {
  .example__text,
  .stage {
    flex-basis: 100%;
  }
}

@media (max-width: 480px) {
  .stage {
    padding: 16px 12px;
  }

  .example__lead {
    font-size: 17px;
  }

  .start-cta .btn {
    width: 100%;
  }
}
