/*
 * Payin8 landing.
 *
 * Hand-written CSS with no build step and no external fonts: the page is served
 * straight from nginx out of `landing/`, so anything that needed compiling would
 * be a build to remember and a font request would be a third party between a
 * visitor and the first paint.
 */

:root {
  --ink: #0b1020;
  --ink-2: #1a2236;
  --muted: #5b6478;
  --line: #e5e8ef;
  --bg: #ffffff;
  --bg-alt: #f7f8fc;
  --brand: #4f7ff5;
  --brand-2: #6366f1;
  --accent: #06b6d4;
  --in: #16a34a;
  --out: #e11d48;

  --wrap: 1140px;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(11, 16, 32, 0.04), 0 8px 24px rgba(11, 16, 32, 0.06);

  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono",
    monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

a { color: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

p { margin: 0; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* -------------------------------------------------------------------------- */
/*  Buttons                                                                    */
/* -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease,
    border-color 0.12s ease;
}

.btn-lg { height: 48px; padding: 0 24px; font-size: 15px; }

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-2), var(--brand) 55%, var(--accent));
  box-shadow: 0 6px 18px rgba(79, 127, 245, 0.28);
}

.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(79, 127, 245, 0.34); }

.btn-outline { border-color: var(--line); background: #fff; }
.btn-outline:hover { border-color: #c9d0e0; }

.btn-ghost { color: var(--muted); }
.btn-ghost:hover { color: var(--ink); }

/* -------------------------------------------------------------------------- */
/*  Nav                                                                        */
/* -------------------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 26px;
  margin-left: 12px;
  font-size: 14px;
  font-weight: 500;
}

.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a:hover { color: var(--ink); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 40px;
  height: 40px;
  padding: 10px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 3px 0;
  background: var(--ink);
  border-radius: 2px;
}

/* `display: flex` here outranks the `hidden` attribute's own `display: none`,
   so the panel has to be told to respect it — otherwise the menu ships open. */
.nav-mobile[hidden] { display: none; }

.nav-mobile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 20px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.nav-mobile a {
  padding: 10px 0;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-2);
}

.nav-mobile .btn { margin-top: 8px; }

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

.hero {
  position: relative;
  padding: 88px 0 72px;
  overflow: hidden;
}

/* A wash of brand colour behind the fold, rather than an image to load. */
.hero::before {
  content: "";
  position: absolute;
  inset: -200px 0 auto;
  height: 620px;
  background:
    radial-gradient(680px 320px at 18% 22%, rgba(99, 102, 241, 0.16), transparent 70%),
    radial-gradient(560px 300px at 82% 12%, rgba(6, 182, 212, 0.14), transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(79, 127, 245, 0.28);
  background: rgba(79, 127, 245, 0.08);
  color: var(--brand-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: clamp(34px, 4.6vw, 54px);
  letter-spacing: -0.035em;
}

.lede {
  margin-top: 20px;
  max-width: 46ch;
  font-size: 17px;
  color: var(--muted);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero-note { margin-top: 18px; font-size: 13px; color: var(--muted); }

/* The mock console — the product in one glance, drawn rather than screenshotted
   so it stays sharp and weighs nothing. */
.panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
}

.dot { width: 9px; height: 9px; border-radius: 50%; background: #d7dbe6; }

.panel-title {
  margin-left: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

/* The stages of one deal. Abstract on purpose: what the panel shows is that a
   deal has a shape and an end, not what it was worth. */
.flow {
  margin: 0;
  padding: 8px 0;
  list-style: none;
  counter-reset: stage;
}

.flow li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  font-size: 14px;
  color: var(--ink-2);
}

/* The line joining one stage to the next, stopping before the last dot. */
.flow li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 30px;
  bottom: -6px;
  width: 2px;
  background: linear-gradient(var(--brand), rgba(79, 127, 245, 0.25));
}

.flow-dot {
  position: relative;
  z-index: 1;
  flex: none;
  width: 11px;
  height: 11px;
  margin-left: 1px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(79, 127, 245, 0.14);
}

.flow .live .flow-dot {
  background: var(--in);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.16);
}

.flow-main { flex: 1; min-width: 0; }

.flow-state {
  flex: none;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(79, 127, 245, 0.1);
  color: var(--brand-2);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.flow .live .flow-state { background: rgba(22, 163, 74, 0.1); color: var(--in); }

.panel-foot {
  display: flex;
  justify-content: space-between;
  padding: 13px 16px;
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  font-size: 13px;
  color: var(--muted);
}

.panel-foot strong { color: var(--in); }

/* -------------------------------------------------------------------------- */
/*  Strip                                                                      */
/* -------------------------------------------------------------------------- */

.strip { border-block: 1px solid var(--line); background: var(--bg-alt); }

.strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-block: 28px;
}

.strip-inner div { display: flex; flex-direction: column; gap: 2px; }
.strip-inner strong { font-size: 22px; letter-spacing: -0.02em; }
.strip-inner span { font-size: 13px; color: var(--muted); }

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

.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

.section-title { font-size: clamp(26px, 3vw, 36px); }

.section-lede {
  margin-top: 14px;
  margin-bottom: 44px;
  max-width: 62ch;
  font-size: 16px;
  color: var(--muted);
}

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.card h3 { margin-bottom: 8px; font-size: 17px; }
.card p { font-size: 14.5px; color: var(--muted); }

.ic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  border-radius: 11px;
  font-size: 17px;
  font-weight: 700;
}

.ic-in { color: var(--in); background: rgba(22, 163, 74, 0.1); }
.ic-out { color: var(--out); background: rgba(225, 29, 72, 0.09); }
.ic-bal { color: var(--brand-2); background: rgba(99, 102, 241, 0.1); }
.ic-rep { color: var(--accent); background: rgba(6, 182, 212, 0.12); }

/* -------------------------------------------------------------------------- */
/*  Coverage                                                                   */
/* -------------------------------------------------------------------------- */

.coverage-note { margin-top: 26px; font-size: 14.5px; color: var(--muted); }

/* -------------------------------------------------------------------------- */
/*  Integration                                                                */
/* -------------------------------------------------------------------------- */

.integration {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: start;
}

.code {
  border-radius: var(--radius);
  background: var(--ink);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.code pre {
  margin: 0;
  padding: 24px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.75;
  color: #cbd5e1;
}

.code .c { color: #64748b; }
.code .k { color: #a5b4fc; font-weight: 700; }
.code .s { color: #7dd3fc; }
.code .n { color: #6ee7b7; }

.steps { margin: 0; padding: 0; list-style: none; }

.steps li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.steps li:last-child { border-bottom: 0; }
.steps h3 { font-size: 16px; }
.steps p { margin-top: 5px; font-size: 14.5px; color: var(--muted); }

/* -------------------------------------------------------------------------- */
/*  Timeline & CTA                                                             */
/* -------------------------------------------------------------------------- */

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.timeline li {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: 14px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--brand-2), var(--accent));
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.timeline h3 { font-size: 16px; }
.timeline p { margin-top: 6px; font-size: 14px; color: var(--muted); }

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 44px;
  padding: 36px;
  border-radius: 18px;
  background: linear-gradient(135deg, #10152a, #1b2547);
  color: #fff;
}

.cta h2 { font-size: clamp(22px, 2.6vw, 30px); }
.cta p { margin-top: 8px; color: #a9b4cc; font-size: 15px; }

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

.footer { border-top: 1px solid var(--line); background: var(--bg-alt); }

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  padding-block: 48px;
}

.footer-brand p { margin-top: 12px; max-width: 34ch; font-size: 14px; color: var(--muted); }

.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.footer-cols h4 { margin-bottom: 12px; font-size: 13px; letter-spacing: 0.02em; }

.footer-cols a {
  display: block;
  padding: 5px 0;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}

.footer-cols a:hover { color: var(--ink); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

/* -------------------------------------------------------------------------- */
/*  Responsive                                                                 */
/* -------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: block; }

  .hero-inner,
  .integration,
  .footer-inner { grid-template-columns: 1fr; }

  .hero { padding-top: 56px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .strip-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .section { padding: 60px 0; }
  .grid-2, .grid-3, .grid-4, .timeline { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .cta { padding: 26px; }
}

/* Respect a reader who has asked for less movement. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
}
