/* ============================================================
 * Rayl Payments product page — MoneyMotion-inspired structure,
 * Rayl dark editorial style. Loaded after styles.css.
 * ============================================================ */

.pay-hero,
.pay-methods,
.pay-stats {
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
}

/* === HERO === */
.pay-hero {
  padding: 80px 0 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  align-items: center;
  gap: 56px;
  text-align: left;
  position: relative;
  isolation: isolate;
}

.pay-hero .announcement {
  grid-column: 1 / -1;
  justify-self: start;
  margin-bottom: 8px;
}

.pay-hero .hero-copy { width: 100%; }
.pay-hero .hero-trust { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 20px; }
.pay-hero .hero-trust-label { font-size: 12px; }

.pay-hero-visual {
  position: relative;
  isolation: isolate;
}

@media (max-width: 960px) {
  .pay-hero { grid-template-columns: 1fr; gap: 36px; }
}

/* === METHODS STRIP === */
.pay-methods {
  margin-top: 8px;
  margin-bottom: 64px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.pay-methods-label {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 0 0 16px;
}

.pay-methods-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 14px;
}

.pay-methods-row img {
  height: 38px;
  width: auto;
  padding: 7px 12px;
  border-radius: 9px;
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
  object-fit: contain;
  opacity: 0.92;
  transition: opacity 180ms ease, transform 180ms ease;
}

.pay-methods-row img:hover { opacity: 1; transform: translateY(-2px); }

/* Monochrome logos (Klarna/SEPA) already render in their own colour — keep
   them on a transparent chip so the white art shows on dark. */
.pay-methods-row img.pay-logo-mono,
.pay-method-chips img.pay-logo-mono {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
}

/* === FEATURE GRID === */
.pay-feature-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.pay-feature {
  position: relative;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(13, 13, 13, 0.55);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 240ms ease, border-color 240ms ease;
}

.pay-feature:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 138, 61, 0.35);
}

.pay-feature-wide {
  grid-column: span 1;
  flex-direction: row;
  align-items: center;
  gap: 24px;
}

.pay-feature-wide .pay-feature-body { flex: 1; display: flex; flex-direction: column; gap: 12px; }

.pay-feature-tag {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffb050;
}

.pay-feature h3 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0;
}

.pay-feature p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

@media (max-width: 760px) {
  .pay-feature-grid { grid-template-columns: 1fr; }
  .pay-feature-wide { flex-direction: column; align-items: stretch; }
}

/* feature mini-visuals */
.pay-method-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: center;
  max-width: 260px;
}

.pay-method-chips img {
  height: 32px;
  width: auto;
  padding: 6px 9px;
  border-radius: 8px;
  background: #ffffff;
  object-fit: contain;
}

.pay-stat-row {
  display: flex;
  gap: 10px;
}

.pay-stat-row div {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(13, 13, 13, 0.6);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pay-stat-row small {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.pay-stat-row strong {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}

.pay-mini-globe {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.pay-mini-globe span {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,138,61,0.7), rgba(86,100,255,0.5));
  opacity: 0.6;
}
.pay-mini-globe span:nth-child(2) { opacity: 0.4; }
.pay-mini-globe span:nth-child(3) { opacity: 0.25; }

.pay-checkout {
  width: 220px;
  flex-shrink: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(13, 13, 13, 0.7);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pay-checkout-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}

.pay-checkout-row b { color: var(--text); }

.pay-checkout-pay {
  margin-top: 4px;
  height: 40px;
  border-radius: 9px;
  background: linear-gradient(135deg, #ffd27a, #ff8a3d 55%, #ff4d2e);
  color: #1a0d05;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* === PAYOUTS checks === */
.pay-checks {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pay-checks li {
  position: relative;
  padding-left: 28px;
  font-size: 14.5px;
  color: var(--text);
}

.pay-checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  color: #0a1a0e;
  background: linear-gradient(135deg, #4ade80, #22c55e);
}

/* === PRICING === */
.pay-pricing-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}

.pay-plan {
  position: relative;
  padding: 30px 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(13, 13, 13, 0.55);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pay-plan-featured {
  border-color: rgba(255, 138, 61, 0.5);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 138, 61, 0.1), transparent 60%),
    rgba(13, 13, 13, 0.65);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.pay-plan-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffd27a, #ff8a3d);
  color: #1a0d05;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pay-plan h3 {
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0;
}

.pay-price {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pay-price span {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted-2);
}

.pay-plan > p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.pay-plan ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.pay-plan li {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  color: var(--text);
}

.pay-plan li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #4ade80;
  font-weight: 900;
  font-size: 13px;
}

.pay-plan-cta {
  margin-top: 6px;
  width: 100%;
  justify-content: center;
  text-align: center;
}

@media (max-width: 860px) {
  .pay-pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }
}

/* === STATS === */
.pay-stats {
  margin: 24px auto 80px;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px 24px;
}

.pay-stat { display: flex; flex-direction: column; gap: 4px; position: relative; }

.pay-stat + .pay-stat::before {
  content: "";
  position: absolute;
  left: -12px; top: 4px; bottom: 4px;
  width: 1px;
  background: var(--line);
}

.pay-stat strong { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.pay-stat span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

@media (max-width: 640px) {
  .pay-stats { grid-template-columns: repeat(2, 1fr); }
}

/* === DEVELOPERS === */
.pay-dev-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.pay-code {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(8, 8, 8, 0.9);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.pay-code-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.pay-code-dot { width: 10px; height: 10px; border-radius: 50%; }
.pay-code-dot:nth-child(1) { background: #ff605c; }
.pay-code-dot:nth-child(2) { background: #ffbd44; }
.pay-code-dot:nth-child(3) { background: #00ca4e; }

.pay-code-name {
  margin-left: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  color: var(--muted-2);
}

.pay-code pre {
  margin: 0;
  padding: 22px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13.5px;
  line-height: 1.75;
  color: #e0e0e0;
  overflow-x: auto;
}

.pay-code .cm { color: #6f7a82; font-style: italic; }
.pay-code .kw { color: #ff8a3d; font-weight: 700; }
.pay-code .fn { color: #ffd27a; }
.pay-code .str { color: #4ade80; }
.pay-code .num { color: #8ad6ff; }
.pay-code .bool { color: #c084fc; }

.pay-dev-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pay-dev-cards article {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(13, 13, 13, 0.55);
  transition: transform 220ms ease, border-color 220ms ease;
}

.pay-dev-cards article:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 138, 61, 0.35);
}

.pay-dev-cards h3 { font-size: 16px; font-weight: 800; margin: 0 0 4px; }
.pay-dev-cards p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.5; }

@media (max-width: 860px) {
  .pay-dev-grid { grid-template-columns: 1fr; }
}
