/* Palette sampled from the Paystack developer-docs dark theme; token names mirror
   ../paystack-blog-v4/app/assets/css/main.css so this ports cleanly. */

@font-face {
  font-family: 'Boing';
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url('assets/fonts/boing_semibold.woff2') format('woff2');
}

@font-face {
  font-family: 'Graphik';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('assets/fonts/graphik_regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Graphik';
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url('assets/fonts/graphik_medium.woff2') format('woff2');
}

@font-face {
  font-family: 'Graphik';
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url('assets/fonts/graphik_semibold.woff2') format('woff2');
}

:root {
  --brand: #0b59e5;
  --accent-sky: #008bf4;

  /* nav / closing band */
  --surface-dark-deep: #0c1217;
  /* page */
  --surface-dark-primary: #10161b;
  /* cards and alternating bands */
  --surface-dark-secondary: #141a1f;
  /* strokes */
  --surface-dark-tertiary: #27303a;

  --content-dark-primary: #f7f7f7;
  --content-dark-secondary: #dfe3e7;
  --content-dark-tertiary: #bcc2c6;
  --content-dark-quaternary: #70757d;

  --font-heading: 'Boing', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Graphik', ui-sans-serif, system-ui, sans-serif;

  /* Matches the blog's px-3.5 / md:px-10 / xl:px-[120px] gutter scale. */
  --gutter: 0.875rem;
  --max-width: 1200px;
  --card-pad: 1.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
}

@media (min-width: 768px) {
  :root { --gutter: 2.5rem; --card-pad: 1.75rem; }
}

@media (min-width: 1024px) {
  :root { --card-pad: 2.25rem; }
}

@media (min-width: 1280px) {
  :root { --gutter: 7.5rem; }
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--surface-dark-primary);
  color: var(--content-dark-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video { display: block; max-width: 100%; }

/* Boing is reserved for display sizes: h1, h2, the step figures, the pull quote.
   Anything at subhead scale or below stays on Graphik. */
h1, h2 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h3 {
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1.25;
}

h1 { font-size: clamp(2rem, 1.25rem + 3.2vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem); }
h3 { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); }

a { color: inherit; text-decoration: none; }

.shell {
  width: 100%;
  max-width: calc(var(--max-width) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.accent {
  display: block;
  color: var(--accent-sky);
}

.kicker {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.kicker .label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-sky);
}

.centered { text-align: center; }
.centered .kicker { justify-content: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--radius-lg);
  background: var(--brand);
  color: #fff;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.875rem 1.5rem;
  transition: background-color 0.15s ease;
}

.btn:hover { background: #0a4cc4; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  color: var(--accent-sky);
  transition: opacity 0.15s ease;
}

.btn-ghost:hover { opacity: 0.7; }

/* Nav */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--surface-dark-deep);
  border-bottom: 1px solid var(--surface-dark-tertiary);
}

.site-nav .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4rem;
}

.logo {
  /* <use> carries no intrinsic size; ratio comes from the symbol's 127x23 viewBox. */
  height: auto;
  aspect-ratio: 127 / 23;
  color: var(--content-dark-primary);
}

.site-nav .logo { width: 105px; }

.nav-links {
  display: none;
  gap: 2rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--content-dark-tertiary);
}

.nav-links a:hover { color: var(--content-dark-primary); }

.site-nav .btn { padding: 0.625rem 1.125rem; font-size: 0.9375rem; }

@media (min-width: 768px) {
  .nav-links { display: flex; }
}

/* Hero */
.hero {
  background: var(--surface-dark-primary);
  padding-block: clamp(3rem, 1.5rem + 6vw, 6rem);
}

.hero .shell {
  display: grid;
  gap: clamp(2.5rem, 1rem + 5vw, 4.5rem);
  align-items: center;
}

@media (min-width: 1024px) {
  .hero .shell { grid-template-columns: 1fr 1fr; }
}

.hero h1 { margin-bottom: 1.25rem; }

.hero .sub {
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.1875rem);
  color: var(--content-dark-tertiary);
  max-width: 34rem;
  margin-bottom: 2rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 480px) {
  .hero .cta-row .btn { padding: 1rem 2rem; font-size: 1.0625rem; }
}

.trustline {
  font-size: 0.875rem;
  color: var(--content-dark-quaternary);
}

/* Checkout demo card */
.checkout-card {
  position: relative;
  background: var(--surface-dark-secondary);
  border: 1px solid var(--surface-dark-tertiary);
  border-radius: var(--radius-xl);
  padding: var(--card-pad);
  width: 100%;
  max-width: 34rem;
  justify-self: center;
}

.checkout-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--card-pad);
  right: var(--card-pad);
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--accent-sky);
}

.checkout-card .tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-sky);
  margin-bottom: 1.25rem;
}

.checkout-card .row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9375rem;
  color: var(--content-dark-tertiary);
  margin-bottom: 0.375rem;
}

.checkout-card .row.total {
  color: var(--content-dark-primary);
  font-weight: 600;
}

.checkout-card .divider {
  height: 1px;
  background: var(--surface-dark-tertiary);
  margin: 1rem 0 1.25rem;
}

.field {
  background: var(--surface-dark-deep);
  border: 1px solid var(--surface-dark-tertiary);
  border-radius: var(--radius-md);
  padding: 0.875rem 1rem;
  font-size: 0.9375rem;
  color: var(--content-dark-secondary);
  margin-bottom: 0.875rem;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.875rem;
}

.pay-btn {
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
  padding-block: 1rem;
}

.secure-tag {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--content-dark-quaternary);
}

/* Stats */
.stats { background: var(--surface-dark-secondary); }

.stats .shell {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding-block: clamp(2rem, 1.5rem + 2vw, 2.75rem);
}

@media (min-width: 900px) {
  .stats .shell { grid-template-columns: repeat(4, 1fr); }
}

.stat {
  text-align: center;
  padding: 1rem 0.5rem;
}

.stat + .stat { border-left: 1px solid var(--surface-dark-tertiary); }

@media (max-width: 899px) {
  .stat:nth-child(odd) { border-left: none; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--surface-dark-tertiary); }
}

.stat .num {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.125rem);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  margin-bottom: 0.375rem;
}

.stat .arrow { color: var(--accent-sky); }

.stat .label {
  font-size: 0.875rem;
  color: var(--content-dark-quaternary);
}

/* Generic section */
.section { padding-block: clamp(3.5rem, 2rem + 6vw, 6rem); }
.section.alt { background: var(--surface-dark-secondary); }
.section .head { margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 3.5rem); }

.card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
}

.f-card {
  background: var(--surface-dark-secondary);
  border: 1px solid var(--surface-dark-tertiary);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 1rem + 1.5vw, 2rem);
}

.section.alt .f-card { background: var(--surface-dark-primary); }

.f-card h3 { margin-bottom: 0.625rem; }

.f-card p,
.h-card p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--content-dark-tertiary);
}

.h-card .step {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 1.5rem + 2.5vw, 3.25rem);
  font-weight: 600;
  color: var(--accent-sky);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.h-card h3 { margin-bottom: 0.5rem; }

/* Demo video: a 742x1314 phone recording, so it gets a device-ish frame rather than
   stretching to the grid. Plays on scroll-in, see app.js. */
.section-sub {
  max-width: 38rem;
  margin: 1rem auto 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--content-dark-tertiary);
}

.demo-frame {
  width: 100%;
  max-width: 24rem;
  margin-inline: auto;
  padding: 0.5rem;
  border: 1px solid var(--surface-dark-tertiary);
  border-radius: var(--radius-xl);
  background: var(--surface-dark-secondary);
}

.section.alt .demo-frame { background: var(--surface-dark-primary); }

.demo-frame video {
  width: 100%;
  height: auto;
  aspect-ratio: 742 / 1314;
  border-radius: 0.625rem;
  background: #fff;
}

/* Proof */
.proof {
  padding-block: clamp(3.5rem, 2rem + 6vw, 5.5rem);
  background: var(--surface-dark-primary);
}

.proof blockquote {
  max-width: 50rem;
  margin-inline: auto;
  text-align: center;
}

.proof .quote {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.25rem, 0.9rem + 1.6vw, 2rem);
  line-height: 1.3;
  margin-bottom: 1.25rem;
}

.proof .attr {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-sky);
}

/* Closing CTA */
.cta-band {
  background: var(--surface-dark-deep);
  padding-block: clamp(3.5rem, 2rem + 6vw, 6rem);
  text-align: center;
}

.cta-band h2 { max-width: 44rem; margin: 0 auto 1rem; }

.cta-band p {
  color: var(--content-dark-tertiary);
  margin-bottom: 2rem;
}

.cta-band .fine {
  font-size: 0.8125rem;
  color: var(--content-dark-quaternary);
  margin-top: 1.25rem;
}

/* Footer */
.site-footer {
  background: var(--surface-dark-primary);
  padding-block: clamp(2.5rem, 2rem + 2vw, 3.5rem);
}

.footer-top {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .footer-top { grid-template-columns: 1fr auto; gap: 4rem; }
}

.footer-brand .logo { width: 110px; opacity: 0.9; }

.footer-brand p {
  margin-top: 0.875rem;
  max-width: 20rem;
  font-size: 0.875rem;
  color: var(--content-dark-quaternary);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .footer-links { grid-template-columns: repeat(2, auto); gap: 4rem; }
}

.link-col {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--content-dark-quaternary);
}

.link-col .h {
  color: var(--content-dark-primary);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.link-col a:hover { color: var(--accent-sky); }

.footer-bottom {
  border-top: 1px solid var(--surface-dark-tertiary);
  padding-top: 1.25rem;
  font-size: 0.8125rem;
  color: var(--content-dark-quaternary);
}

/* Reveal-on-scroll, mirrors the blog's reduced-motion stance below. */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal { opacity: 1; transform: none; }
}
