/* ==========================================================================
   KPay — Merchant integration page
   ========================================================================== */

.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + 84px) 24px 56px;
  text-align: center;
  overflow: hidden;
}
.page-orb-l { width: 480px; height: 480px; left: -10%; top: -30%; }
.page-orb-r { width: 420px; height: 420px; right: -10%; top: -20%; }
.page-hero-inner { position: relative; z-index: 5; max-width: 780px; margin: 0 auto; }
.page-hero-inner .kicker {
  font-size: 12.5px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--blue-300);
  margin-bottom: 18px;
}
.page-hero-inner h1 {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 900; letter-spacing: -.03em; line-height: 1.05;
  margin-bottom: 18px;
  background: linear-gradient(180deg, #fff 25%, var(--blue-200));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.page-hero-inner p { font-size: clamp(1rem, 1.6vw, 1.2rem); color: var(--text-muted); margin-bottom: 34px; }

/* ---------- steps ---------- */
.steps-sec { padding-top: 24px; }
.steps-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  position: relative;
  counter-reset: step;
}
.step-card { padding: 28px 24px; position: relative; }
.step-num {
  width: 46px; height: 46px;
  border-radius: 14px;
  display: grid; place-items: center;
  font-size: 15px; font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-800));
  box-shadow: 0 6px 20px rgba(37, 99, 235, .4);
  margin-bottom: 18px;
  font-variant-numeric: tabular-nums;
}
.step-card h3 { font-size: 1.08rem; font-weight: 800; margin-bottom: 9px; }
.step-card p { font-size: 13.5px; line-height: 1.7; color: var(--text-muted); }
.step-card::after {
  content: "";
  position: absolute; top: 50px; right: -14px;
  width: 14px; height: 2px;
  background: linear-gradient(90deg, rgba(96, 165, 250, .5), transparent);
}
.step-card:last-child::after { display: none; }

/* ---------- agency ---------- */
.agency-sec { background: var(--bg-soft); }
.agency-orb { width: 480px; height: 480px; right: -8%; top: -16%; }
.agency-layout {
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: 24px; align-items: stretch;
}
.agency-formula { padding: 34px 32px; }
.agency-badge {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 12.5px; font-weight: 700;
  color: var(--blue-200);
  background: rgba(59, 130, 246, .12);
  border: 1px solid rgba(96, 165, 250, .3);
  margin-bottom: 22px;
}
.formula {
  display: block;
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: clamp(.92rem, 1.6vw, 1.05rem);
  line-height: 1.85;
  color: var(--blue-100);
  background: rgba(10, 22, 40, .7);
  border: 1px solid rgba(96, 165, 250, .22);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin-bottom: 20px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}
.agency-example { font-size: 13.5px; line-height: 1.8; color: var(--text-muted); }
.agency-benefits { display: grid; gap: 14px; }
.benefit-card {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 22px 24px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: transform .3s var(--ease-out), border-color .3s;
  will-change: transform;
}
.benefit-card:hover { transform: translateX(5px); border-color: var(--border-strong); }
.benefit-icon { font-size: 1.7rem; line-height: 1.2; }
.benefit-card strong { display: block; font-size: 15px; margin-bottom: 4px; }
.benefit-card small { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ---------- tech ---------- */
.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tech-card { padding: 26px 24px; }
.tech-card .icon { font-size: 1.8rem; margin-bottom: 16px; line-height: 1; }
.tech-card h3 { font-size: 1rem; font-weight: 800; margin-bottom: 8px; }
.tech-card p { font-size: 13.5px; line-height: 1.7; color: var(--text-muted); }

/* ---------- contact ---------- */
.contact-sec { padding-bottom: 110px; }
.contact-orb-l { width: 440px; height: 440px; left: -8%; top: 0; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 960px; margin: 0 auto; }
.contact-card {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 34px 24px;
  text-align: center;
}
.contact-card .c-icon {
  width: 52px; height: 52px;
  border-radius: 16px;
  display: grid; place-items: center;
  margin-bottom: 12px;
  color: var(--blue-200);
  background: rgba(59, 130, 246, .12);
  border: 1px solid rgba(96, 165, 250, .3);
}
.contact-card .c-icon svg { width: 24px; height: 24px; }
.contact-card strong { font-size: 14px; color: var(--text-soft); font-weight: 600; }
.contact-card .c-value { font-size: 15px; font-weight: 800; color: var(--blue-200); }
.contact-card::after { content: none; }
.contact-card:hover { border-color: rgba(96, 165, 250, .5); }

@media (max-width: 1000px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .step-card::after { display: none; }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .agency-layout { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .steps-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
