/* Homepage: payment methods and comparison table */

.rails-section .section-head > p {
  font-family: var(--font-urdu);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.9;
  direction: rtl;
}

.rail-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 0;
}

.rail-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 132px;
  padding: 18px 14px;
  text-align: center;
  background: var(--surface-lowest);
}

.rail-card img {
  width: auto;
  max-width: 88px;
  height: 48px;
  object-fit: contain;
}

.rail-card figcaption {
  display: grid;
  gap: 2px;
}

.rail-card strong {
  display: block;
  font-family: var(--font-head);
  font-size: var(--text-14);
  line-height: 1.2;
}

.rail-card span {
  color: var(--muted);
  font-size: var(--text-10);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.comparison-table {
  max-width: 960px;
  margin-inline: auto;
  overflow-x: auto;
  background: var(--surface-lowest);
  -webkit-overflow-scrolling: touch;
}

.comparison-table thead th:nth-child(n) {
  padding: 16px 20px;
  background: #e6f2ec;
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
}

.comparison-table tbody td {
  padding: 18px 20px;
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.5;
}

.comparison-table tbody tr:nth-child(even) td {
  background: var(--primary-soft);
}

.comparison-table th + th,
.comparison-table td + td {
  border-inline-start: 1px solid color-mix(in srgb, var(--primary-2) 20%, var(--hairline));
}

.payouts-section {
  background: var(--surface-lowest);
}

.rail-card {
  border-radius: var(--radius-md);
  border-color: rgba(15, 54, 45, 0.08);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s ease;
}

.rail-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(26, 91, 75, 0.3);
}

.comparison-table {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.comparison-table table {
  min-width: 0;
}

.rails-section::before {
  display: none;
  width: 760px;
  height: 760px;
  left: 50%;
  top: -420px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle at center,
    transparent 0 46px,
    rgba(26, 91, 75, 0.07) 46px 47px
  );
  -webkit-mask-image: radial-gradient(circle, #000 30%, transparent 70%);
  mask-image: radial-gradient(circle, #000 30%, transparent 70%);
}

.rails-section::after {
  inset: auto 0 0 0;
  height: 200px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M16 10v12M10 16h12' stroke='%231a5b4b' stroke-opacity='.12' stroke-linecap='round'/%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(0deg, #000, transparent);
  mask-image: linear-gradient(0deg, #000, transparent);
}

.comparison-section::before {
  inset: 0;
  background-image: radial-gradient(rgba(26, 91, 75, 0.1) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, transparent 35%, #000 100%);
  mask-image: radial-gradient(ellipse at 50% 50%, transparent 35%, #000 100%);
}

.payouts-section::before {
  display: none;
  width: 520px;
  height: 520px;
  right: -180px;
  top: -200px;
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle at center,
    transparent 0 38px,
    rgba(197, 140, 43, 0.14) 38px 39px
  );
  -webkit-mask-image: radial-gradient(circle, #000 35%, transparent 72%);
  mask-image: radial-gradient(circle, #000 35%, transparent 72%);
}

.payouts-section::after {
  width: 360px;
  height: 240px;
  left: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(197, 140, 43, 0.3) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse at 0% 100%, #000, transparent 70%);
  mask-image: radial-gradient(ellipse at 0% 100%, #000, transparent 70%);
}

.rail-card figcaption span {
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
}

.rail-card strong {
  color: var(--ink);
}

.rails-section .section-head > p {
  color: #000;
}

@media (hover: none) {
  .rail-card:hover {
    transform: none;
  }

}

@media (max-width: 1120px) {
  .rail-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

}

@media (max-width: 760px) {
  .rail-card img {
    max-width: 72px;
    height: 40px;
  }

  .comparison-table tbody td {
    overflow-wrap: anywhere;
  }

  .rails-section::before {
    width: 520px;
    height: 520px;
  }

  .payouts-section::before {
    width: 340px;
    height: 340px;
    right: -140px;
    top: -140px;
  }

  .rail-card strong {
    font-family: var(--font-body);
    font-size: var(--m-h3);
    font-weight: 600;
    line-height: 1.3;
  }

  .rails-section .section-head > p {
    font-size: 1.2rem;
    line-height: 1.9;
  }

  .rail-card,
  .comparison-table {
    border-radius: var(--radius-md);
  }

  .rail-grid {
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rail-card {
    min-height: 118px;
    padding: 14px 10px;
  }

  .comparison-table thead th:nth-child(n) {
    padding: 12px;
    font-size: 0.9rem;
    font-weight: 600;
  }

}
