/* Payment Adv - corporate site, direction A "Institutional Blue", high-craft pass
   Theme: light-locked (trust-first, compliance audience)
   Palette: cool neutrals + single cobalt accent
   Type: Geist (display/body) + Geist Mono (labels, figures)
   Radius system: 12px surfaces, 8px controls */

@font-face {
  font-family: "Geist";
  src: url("/fonts/GeistVF.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/GeistMonoVF.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --ink: #12161c;
  --muted: #525c68;
  --faint: #8a93a0;
  --line: #e2e6ec;
  --line-soft: #ecf0f4;
  --accent: #1c4fb8;
  --accent-ink: #163e91;
  --accent-soft: #eef2fb;
  --ok: #17663a;
  --err: #b3261e;
  --mono: "Geist Mono", ui-monospace, "SF Mono", monospace;
  --radius-surface: 12px;
  --radius-control: 8px;
  --container: 1140px;
  --shadow-panel: 0 1px 2px rgba(18, 22, 28, 0.04), 0 8px 24px rgba(28, 55, 90, 0.07), 0 24px 64px rgba(28, 55, 90, 0.07);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent); color: #fff; }

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 248, 250, 0.85);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.wordmark {
  font-size: 17.5px;
  font-weight: 660;
  letter-spacing: -0.015em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 9px;
}
.wordmark:hover { text-decoration: none; }
.wordmark .mark {
  width: 26px;
  height: 26px;
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(22, 62, 145, 0.25));
}
.wordmark span.tail { color: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}
.nav-links a {
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 490;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-links a.btn-primary { color: #ffffff; }
.nav-links a.btn-primary:hover { color: #ffffff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 555;
  line-height: 1;
  padding: 14px 24px;
  border-radius: var(--radius-control);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), transform 0.12s var(--ease), border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(22, 62, 145, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.btn-primary:hover {
  background: var(--accent-ink);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(22, 62, 145, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: 0 1px 2px rgba(18, 22, 28, 0.04);
}
.btn-secondary:hover { border-color: #c6cdd6; text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 84px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(18, 22, 28, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(18, 22, 28, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(120% 90% at 30% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(120% 90% at 30% 0%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(640px 560px at 92% -10%, rgba(28, 79, 184, 0.10), transparent 70%),
    radial-gradient(520px 420px at -6% 105%, rgba(28, 79, 184, 0.05), transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 72px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  box-shadow: 0 1px 2px rgba(18, 22, 28, 0.04);
}
.hero-badge .flag { width: 14px; height: 10px; border-radius: 2px; overflow: hidden; display: inline-block; }
.hero h1 {
  margin-top: 26px;
  font-size: clamp(38px, 4.6vw, 62px);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.05;
  max-width: 15ch;
  text-wrap: balance;
}
.hero h1 .u {
  position: relative;
  white-space: nowrap;
}
.hero h1 .u::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 0.06em;
  height: 0.11em;
  background: var(--accent);
  opacity: 0.9;
  border-radius: 2px;
  z-index: -1;
}
.hero-sub {
  margin-top: 24px;
  font-size: 18px;
  color: var(--muted);
  max-width: 46ch;
  line-height: 1.65;
}
.hero-actions {
  margin-top: 36px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Registry panel: real company data styled as a verified extract */
.fact-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-surface);
  box-shadow: var(--shadow-panel);
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.fact-panel:hover {
  transform: translateY(-3px);
  box-shadow: 0 1px 2px rgba(18, 22, 28, 0.04), 0 12px 32px rgba(28, 55, 90, 0.09), 0 32px 80px rgba(28, 55, 90, 0.09);
}
.fact-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: linear-gradient(to bottom, #fbfcfe, #f6f8fb);
  border-bottom: 1px solid var(--line);
}
.fact-head .t {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 550;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}
.fact-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 570;
  color: var(--ok);
}
.fact-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22a45c;
  box-shadow: 0 0 0 3px rgba(34, 164, 92, 0.16);
}
.fact-body { padding: 6px 24px; }
.fact-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 14.5px 0;
}
.fact-row + .fact-row { border-top: 1px solid var(--line-soft); }
.fact-label { font-size: 13px; color: var(--faint); flex-shrink: 0; }
.fact-value { font-size: 14.5px; font-weight: 560; text-align: right; }
.fact-value.mono { font-size: 14px; }
.fact-src {
  padding: 12px 24px 14px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
  letter-spacing: 0.02em;
}

/* ---------- Platform strip ---------- */
.platforms {
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.platforms-inner {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 26px 0;
  flex-wrap: wrap;
}
.platforms .cap { font-size: 14px; color: var(--faint); }
.plat {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 15.5px;
  font-weight: 560;
  opacity: 0.75;
  filter: grayscale(1);
  transition: opacity 0.2s ease, filter 0.2s ease;
}
.plat:hover { opacity: 1; filter: grayscale(0.4); }
.plat img { width: 21px; height: 21px; display: block; }

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section h2 {
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 640;
  letter-spacing: -0.025em;
  line-height: 1.12;
  text-wrap: balance;
}
.section-lede {
  margin-top: 18px;
  color: var(--muted);
  font-size: 17px;
  max-width: 58ch;
  line-height: 1.65;
}
.section-body { margin-top: 20px; color: var(--muted); max-width: 62ch; }
.section-body p + p { margin-top: 14px; }
.section-body strong { color: var(--ink); font-weight: 600; }

/* ---------- About + CPA diagram ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: 80px;
  align-items: start;
}
.cpa-figure {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-surface);
  padding: 28px;
}
.cpa-figure svg { width: 100%; height: auto; display: block; }
.cpa-caption {
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}
.cpa-caption strong { color: var(--ink); font-weight: 600; }

/* ---------- Numbers strip ---------- */
.numbers { border-top: 1px solid var(--line-soft); margin-top: 88px; padding-top: 48px; }
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.num-cell .n {
  font-family: var(--mono);
  font-size: 40px;
  font-weight: 620;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1;
}
.num-cell .n em { font-style: normal; color: var(--accent); }
.num-cell .d {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  max-width: 20ch;
}

/* ---------- How it works: timeline ---------- */
.timeline {
  margin-top: 56px;
  list-style: none;
  position: relative;
  max-width: 760px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 14px;
  bottom: 14px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent) 0%, var(--line) 65%, var(--line) 100%);
  border-radius: 2px;
}
.timeline li {
  position: relative;
  padding: 0 0 40px 76px;
}
.timeline li:last-child { padding-bottom: 0; }
.tl-num {
  position: absolute;
  left: 0;
  top: -2px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(18, 22, 28, 0.05);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}
.timeline h3 {
  font-size: 18.5px;
  font-weight: 620;
  letter-spacing: -0.012em;
}
.timeline p {
  margin-top: 6px;
  font-size: 15.5px;
  color: var(--muted);
  max-width: 52ch;
}

/* ---------- Services ---------- */
.service-list { margin-top: 48px; }
.service-row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px;
  padding: 34px 28px;
  margin: 0 -28px;
  border-radius: var(--radius-surface);
  transition: background-color 0.2s ease;
}
.service-row:hover { background: var(--bg); }
.service-row + .service-row { border-top: 1px solid var(--line-soft); }
.service-row h3 {
  font-size: 20px;
  font-weight: 630;
  letter-spacing: -0.015em;
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.service-row h3::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 2.5px;
  background: var(--accent);
  flex-shrink: 0;
  transform: translateY(-1px);
}
.service-row .svc-body p { color: var(--muted); font-size: 15.5px; max-width: 56ch; }
.svc-meta {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--faint);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 72px;
  align-items: start;
}
.contact-detail { margin-top: 36px; }
.contact-detail dt {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  margin-top: 24px;
}
.contact-detail dd { margin-top: 6px; font-size: 15.5px; font-weight: 530; }

.form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-surface);
  padding: 36px;
  box-shadow: var(--shadow-panel);
}
.form-title { font-size: 19px; font-weight: 630; letter-spacing: -0.012em; }
.form-sub { margin-top: 6px; margin-bottom: 26px; font-size: 14.5px; color: var(--muted); }
.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-size: 14px;
  font-weight: 560;
  margin-bottom: 8px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  padding: 13px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.form-field input:hover, .form-field textarea:hover { border-color: #c6cdd6; }
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(28, 79, 184, 0.13);
}
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--faint); }
.form-field textarea { min-height: 128px; resize: vertical; }
.form .btn { width: 100%; padding: 15px 24px; }
.form-note { margin-top: 16px; font-size: 13px; color: var(--muted); text-align: center; }
.form-status { margin-top: 16px; font-size: 14.5px; display: none; text-align: center; }
.form-status.ok { display: block; color: var(--ok); }
.form-status.err { display: block; color: var(--err); }
.hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

/* ---------- Footer ---------- */
.footer {
  position: relative;
  border-top: 1px solid var(--line);
  padding: 64px 0 40px;
  background: var(--surface);
  overflow: hidden;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  font-size: 14px;
  color: var(--muted);
  position: relative;
  z-index: 1;
}
.footer-brand .wordmark { margin-bottom: 14px; }
.footer-brand p { max-width: 30ch; line-height: 1.7; }
.footer-grid h4 {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 560;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 12px;
}
.footer-grid p { line-height: 1.75; }
.footer-grid a { color: var(--muted); }
.footer-grid a:hover { color: var(--ink); }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
  position: relative;
  z-index: 1;
}

/* ---------- Legal page ---------- */
.legal { padding: 80px 0 104px; }
.legal .container { max-width: 760px; }
.legal h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 650; letter-spacing: -0.025em; }
.legal .updated { margin-top: 12px; color: var(--faint); font-size: 14px; font-family: var(--mono); }
.legal h2 { margin-top: 46px; font-size: 20px; font-weight: 630; letter-spacing: -0.012em; }
.legal p, .legal ul { margin-top: 12px; color: var(--muted); font-size: 15.5px; }
.legal ul { padding-left: 22px; }
.legal li + li { margin-top: 6px; }

/* ---------- Scroll reveal (JS-gated: without JS everything stays visible) ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
html.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .fact-panel, .btn { transition: none; }
}

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .hero { padding: 56px 0 64px; }
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero h1 { max-width: none; }
  .numbers-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .section { padding: 72px 0; }
  .service-row { grid-template-columns: 1fr; gap: 10px; padding: 26px 20px; margin: 0 -20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .platforms-inner { gap: 28px; }
  .nav-links li.nav-sec { display: none; }
}
@media (max-width: 560px) {
  .numbers-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .num-cell .n { font-size: 34px; }
}
