/* nepay — www.nepay.link
   Design system: Stripe-inspired. Navy ink, blurple primary, cyan accents,
   airy light sections, soft layered shadows, pill buttons. */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("assets/fonts/jakarta-var-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("assets/fonts/jakarta-italic-var-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Spline Sans Mono";
  src: url("assets/fonts/spline-mono-var-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #0a2540;
  --slate: #425466;
  --muted: #6b7c93;
  --blurple: #635bff;
  --blurple-dark: #4f43e0;
  --cyan: #00d4ff;
  --green: #3ecf8e;
  --green-dark: #0e6245;
  --bg: #ffffff;
  --bg-tint: #f6f9fc;
  --border: #e6ebf1;
  --sans: "Plus Jakarta Sans", -apple-system, "Segoe UI", sans-serif;
  --mono: "Spline Sans Mono", "SF Mono", "Cascadia Mono", monospace;
  --shadow-card: 0 6px 12px -2px rgba(50, 50, 93, 0.12), 0 3px 7px -3px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 13px 27px -5px rgba(50, 50, 93, 0.22), 0 8px 16px -8px rgba(0, 0, 0, 0.25);
  --radius: 10px;
  --gutter: clamp(1.25rem, 4.5vw, 4rem);
  --measure: 66ch;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  background: var(--bg);
  color: var(--slate);
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--blurple); text-decoration: none; }
a:hover { color: var(--blurple-dark); }
:focus-visible { outline: 2px solid var(--blurple); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--navy); color: #fff;
  padding: 0.5rem 1rem; z-index: 20; font-size: 0.85rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Masthead ---------- */

.masthead {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  padding: 0.95rem var(--gutter);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.wordmark {
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
  color: var(--navy);
}
.wordmark:hover { color: var(--navy); }
.wordmark .tld { color: var(--blurple); }
.masthead nav { display: flex; gap: 1.7rem; flex-wrap: wrap; align-items: center; }
.masthead nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--slate);
}
.masthead nav a:hover { color: var(--blurple); }

/* Stripe-style gradient hairline under the masthead */
.security-band {
  height: 3px;
  background: linear-gradient(90deg, #00d4ff 0%, #635bff 38%, #9966ff 68%, #ff5996 100%);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 6.4fr) minmax(0, 5.6fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  padding: clamp(3.2rem, 7vw, 6.5rem) var(--gutter) clamp(3.6rem, 8vw, 7rem);
  align-items: center;
  background: var(--bg-tint);
}
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } }

/* Skewed gradient wash behind the ledger card — the Stripe signature */
.hero::before {
  content: "";
  position: absolute;
  top: -32%; right: -14%;
  width: 62%; height: 130%;
  transform: rotate(-12deg);
  background:
    radial-gradient(42% 46% at 26% 26%, rgba(0, 212, 255, 0.30), transparent 68%),
    radial-gradient(48% 52% at 72% 40%, rgba(99, 91, 255, 0.30), transparent 70%),
    radial-gradient(44% 48% at 46% 82%, rgba(255, 89, 150, 0.20), transparent 70%);
  filter: blur(14px);
  pointer-events: none;
}
.hero > * { position: relative; }

.kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blurple);
  margin-bottom: 1.2rem;
}
.kicker::before { content: none; }

h1 {
  font-weight: 700;
  font-size: clamp(2.35rem, 5.2vw, 3.9rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: var(--navy);
  max-width: 16ch;
  text-wrap: balance;
}
h1 em {
  font-style: normal;
  background: linear-gradient(92deg, #635bff 10%, #00a2ff 55%, #00d4ff 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lede {
  margin-top: 1.3rem;
  max-width: 47ch;
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  font-weight: 400;
  color: var(--slate);
  text-wrap: pretty;
}
.hero-actions { margin-top: 2.1rem; display: flex; gap: 0.9rem; align-items: center; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  padding: 0.72rem 1.45rem;
  border-radius: 999px;
  background: var(--blurple);
  border: 1px solid var(--blurple);
  color: #fff;
  box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn::after { content: "→"; font-weight: 400; transition: transform 0.15s ease; }
.btn:hover {
  background: var(--blurple-dark);
  border-color: var(--blurple-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 7px 14px rgba(50, 50, 93, 0.12), 0 3px 6px rgba(0, 0, 0, 0.1);
}
.btn:hover::after { transform: translateX(3px); }
.btn-ghost {
  background: #fff;
  border-color: var(--border);
  color: var(--navy);
  box-shadow: 0 2px 5px rgba(50, 50, 93, 0.08);
}
.btn-ghost:hover { background: #fff; color: var(--blurple); border-color: #c9d2e0; }

/* The orchestration ledger — restyled as a dashboard card */
.ledger {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  font-family: var(--mono);
  font-size: 0.8rem;
}
.ledger-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.75rem 1.1rem;
  border-bottom: 1px solid var(--border);
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--navy);
}
.ledger-head .ref { color: var(--muted); font-weight: 500; }
.ledger ol { list-style: none; }
.ledger li {
  display: grid;
  grid-template-columns: 5.2ch minmax(0, 1fr) auto;
  gap: 0.8rem;
  padding: 0.6rem 1.1rem;
  border-bottom: 1px solid #f0f3f8;
  align-items: baseline;
  animation: ledger-in 0.5s ease both;
}
.ledger li:last-child { border-bottom: none; }
.ledger li:nth-child(1) { animation-delay: 0.15s; }
.ledger li:nth-child(2) { animation-delay: 0.55s; }
.ledger li:nth-child(3) { animation-delay: 0.95s; }
.ledger li:nth-child(4) { animation-delay: 1.35s; }
.ledger li:nth-child(5) { animation-delay: 1.75s; }
.ledger li:nth-child(6) { animation-delay: 2.15s; }
@keyframes ledger-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.ledger .t { color: var(--muted); font-size: 0.72rem; }
.ledger .ev { color: var(--navy); font-weight: 500; }
.ledger .ok {
  color: var(--green-dark);
  background: rgba(62, 207, 142, 0.14);
  border-radius: 999px;
  padding: 0.1rem 0.6rem;
  font-size: 0.68rem;
  font-weight: 500;
  justify-self: end;
}
.ledger .note {
  padding: 0.6rem 1.1rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.74rem;
}

/* ---------- Sections ---------- */

section { border-top: 1px solid var(--border); }
.hero + section, section#problem { border-top: none; }

.section-inner {
  padding: clamp(3rem, 6.5vw, 5.5rem) var(--gutter);
  max-width: 1200px;
  margin-inline: auto;
}

.section-label {
  display: inline-flex; align-items: baseline; gap: 0.6rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blurple);
  margin-bottom: 1.1rem;
}
.section-label .no { color: var(--cyan); }
.section-label::after { content: none; }

h2 {
  font-weight: 700;
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--navy);
  max-width: 26ch;
  margin-bottom: 1rem;
  text-wrap: balance;
}
.prose { max-width: var(--measure); color: var(--slate); text-wrap: pretty; }
.prose + .prose { margin-top: 0.9rem; }
.prose strong { color: var(--navy); font-weight: 700; }

/* Alternating tinted sections, Stripe-style */
#how, #security { background: var(--bg-tint); }

/* ---------- How it works ---------- */

.steps {
  list-style: none;
  margin-top: 2.4rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 1.1rem;
  border: none;
  background: none;
}
.steps li {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 1.5rem 1.35rem 1.6rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.steps li:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.steps .step-no {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  background: rgba(99, 91, 255, 0.1);
  color: var(--blurple);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  margin-bottom: 0.9rem;
  letter-spacing: 0.04em;
}
.steps h3 {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin-bottom: 0.45rem;
}
.steps p { font-size: 0.9rem; color: var(--slate); text-wrap: pretty; }

/* ---------- Providers ---------- */

.provider-grid {
  margin-top: 2.3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.3rem;
}
.provider {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  padding: 1.7rem 1.5rem 1.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.provider:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.provider h3 {
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  color: var(--navy);
  padding-right: 0;
}
.provider .sub {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}
.provider p { font-size: 0.94rem; color: var(--slate); text-wrap: pretty; }
.provider .provider-cta {
  margin-top: auto;
  padding-top: 0.7rem;
  font-size: 0.92rem;
  font-weight: 700;
}

.stamp-badge {
  position: static;
  align-self: flex-start;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.28rem 0.75rem;
  border: none;
  border-radius: 999px;
  transform: none;
  margin-bottom: 0.35rem;
}
.stamp-live { color: var(--green-dark); background: rgba(62, 207, 142, 0.16); transform: none; }
.stamp-soon { color: var(--blurple); background: rgba(99, 91, 255, 0.12); }
.stamp-open { color: var(--slate); background: var(--bg-tint); border: 1px solid var(--border); }

/* ---------- Platforms ---------- */

.platform-row {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}
.platform {
  display: flex; align-items: center; gap: 0.7rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 2px 5px rgba(50, 50, 93, 0.08);
  padding: 0.65rem 1.25rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
}
.platform .tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.18rem 0.6rem;
}
.platform .tag.now { color: var(--green-dark); background: rgba(62, 207, 142, 0.16); }
.platform .tag.soon { color: var(--muted); background: var(--bg-tint); }

/* ---------- Integrations: text + API code card ---------- */

.integrations-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2rem, 4.5vw, 4rem);
  align-items: center;
}
@media (max-width: 900px) { .integrations-grid { grid-template-columns: 1fr; } }

.code-card {
  background: var(--navy);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  font-family: var(--mono);
  font-size: 0.78rem;
}
.code-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.7rem 1.15rem;
  background: rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}
.code-head .ref { color: #7a8ca6; font-weight: 500; }
.code-card pre {
  margin: 0;
  padding: 1.1rem 1.15rem 1.25rem;
  overflow-x: auto;
  color: #c3d0e5;
  line-height: 1.6;
}
.code-card .cm { color: #64789a; }
.code-card .hl { color: var(--green); }

/* ---------- Security (dark navy section) ---------- */

#security { background: var(--navy); border-top: none; }
#security .section-label { color: var(--cyan); }
#security .section-label .no { color: var(--blurple); }
#security h2 { color: #fff; }

.trust-grid {
  margin-top: 2.4rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.1rem;
  border: none;
  background: none;
}
.trust-grid article {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
}
.trust-grid h3 {
  font-weight: 700;
  font-size: 1.02rem;
  color: #fff;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
}
.trust-grid h3::before {
  content: "✓";
  font-family: var(--mono);
  color: var(--cyan);
  font-size: 0.9rem;
}
.trust-grid p { font-size: 0.9rem; color: #a3b3cc; text-wrap: pretty; }

/* ---------- FAQ ---------- */

.faq { max-width: var(--measure); margin-top: 1.6rem; }
.faq details { border-bottom: 1px solid var(--border); }
.faq details:first-child { border-top: 1px solid var(--border); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.05rem 0;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--navy);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.faq summary:hover { color: var(--blurple); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--mono);
  color: var(--blurple);
  flex-shrink: 0;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 1.2rem; color: var(--slate); max-width: 60ch; text-wrap: pretty; }

/* ---------- Pricing / contact (gradient CTA) ---------- */

#pricing {
  position: relative;
  overflow: hidden;
  background: linear-gradient(115deg, #533aed 0%, #635bff 42%, #0090ff 100%);
  border-top: none;
}
#pricing::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 90% at 85% 10%, rgba(0, 212, 255, 0.35), transparent 60%);
  pointer-events: none;
}
.pricing-inner { position: relative; text-align: center; }
#pricing .section-label { color: rgba(255, 255, 255, 0.85); }
#pricing .section-label .no { color: var(--cyan); }
#pricing h2 { color: #fff; margin-inline: auto; }
#pricing .prose { color: rgba(255, 255, 255, 0.88); margin-inline: auto; }
.pricing-inner .hero-actions { justify-content: center; }
#pricing .btn {
  background: #fff;
  border-color: #fff;
  color: var(--blurple);
  box-shadow: 0 7px 14px rgba(10, 37, 64, 0.25);
}
#pricing .btn:hover { background: var(--bg-tint); color: var(--blurple-dark); }
.contact-line {
  margin-top: 1.5rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
}

/* ---------- Footer ---------- */

footer {
  background: var(--navy);
  color: #a3b3cc;
}
.footer-inner {
  max-width: 1200px;
  margin-inline: auto;
  padding: 2.4rem var(--gutter) 2.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  justify-content: space-between;
  align-items: baseline;
}
footer .wordmark { color: #fff; }
footer .wordmark .tld { color: var(--cyan); }
footer nav { display: flex; gap: 1.7rem; flex-wrap: wrap; }
footer nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: #a3b3cc;
}
footer nav a:hover { color: #fff; }
.footer-meta a { color: #a3b3cc; text-decoration: underline; text-underline-offset: 2px; }
.footer-meta a:hover { color: #fff; }
.footer-meta {
  width: 100%;
  font-size: 0.8rem;
  color: #7a8ca6;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 2rem;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.3rem;
}

/* ---------- Privacy / 404 doc pages ---------- */

.doc {
  max-width: 72ch;
  margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter) 4rem;
}
.doc h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--navy);
  margin-bottom: 0.5rem;
  max-width: none;
}
.doc .doc-date {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.doc h2 { font-size: 1.35rem; margin: 2.3rem 0 0.6rem; }
.doc p, .doc li { color: var(--slate); text-wrap: pretty; }
.doc p + p { margin-top: 0.8rem; }
.doc ul { padding-left: 1.2rem; margin-top: 0.6rem; }
.doc li { margin-bottom: 0.45rem; }
.doc a { font-weight: 600; }

@media (max-width: 480px) {
  .ledger { font-size: 0.7rem; }
  .ledger li { grid-template-columns: 4.4ch minmax(0, 1fr) auto; gap: 0.5rem; padding-inline: 0.75rem; }
  .ledger .ev { overflow-wrap: anywhere; }
  .ledger-head { padding-inline: 0.75rem; }
}
