/* ============================================================
   WebitPay — Global Stylesheet
   Apple-inspired minimalism, fintech-grade precision
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&family=DM+Serif+Display:ital@0;1&display=swap');

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:   #0a0a0a;
  --ink:     #1a1a1a;
  --charcoal:#3a3a3a;
  --muted:   #6e6e73;
  --border:  #e0e0e5;
  --surface: #f7f7f8;
  --white:   #ffffff;
  --accent:  #AA217C;

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'DM Sans', -apple-system, sans-serif;

  --radius-sm:  8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-xs: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-sm: 0 4px 16px rgba(0,0,0,.06), 0 1px 4px rgba(0,0,0,.04);

  --max-w: 1080px;
  --nav-h: 68px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.2; letter-spacing: -0.01em; }

h1 { font-size: clamp(2.6rem, 5.5vw, 4.2rem); color: var(--black); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); color: var(--black); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem);   color: var(--black); }
h4 { font-size: 1.1rem;                         color: var(--ink);  }

p  { color: var(--charcoal); font-weight: 300; font-size: 1.0625rem; }

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

/* ── Navigation ───────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,.07);
}

.nav-inner {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--black);
  letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 10px;
}

.nav-logo-mark {
  width: 28px; height: 28px;
/*  background: var(--black);*/
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
}

.nav-logo-mark svg { width: 16px; height: 16px; }

.nav-links {
  display: flex; align-items: center; gap: 8px;
  list-style: none;
}

.nav-links a {
  font-size: .875rem;
  font-weight: 400;
  color: var(--charcoal);
  padding: 6px 14px;
  border-radius: 20px;
  transition: color .2s, background .2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--black); background: rgba(0,0,0,.05); }

.nav-mobile-btn {
  display: none;
  background: none; border: none; cursor: pointer; padding: 6px;
}

.nav-mobile-btn span {
  display: block; width: 22px; height: 1.5px;
  background: var(--black); margin: 5px 0;
  transition: transform .25s, opacity .25s;
}

/* ── Layout Shell ─────────────────────────────────────────── */
.page-wrap { padding-top: var(--nav-h); }

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

/* ── Section Spacing ──────────────────────────────────────── */
.section       { padding: 96px 0; }
.section-sm    { padding: 64px 0; }
.section-lg    { padding: 128px 0; }

/* ── Divider ──────────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  padding: 120px 0 100px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
  padding: 5px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
}

.hero h1 { max-width: 820px; margin: 0 auto 28px; }

.hero-lead {
  max-width: 560px;
  margin: 0 auto 52px;
  font-size: 1.125rem;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.75;
}

.hero-cta-group {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  flex-wrap: wrap;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: .9375rem;
  font-weight: 400;
  cursor: pointer;
  border: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s;
  text-decoration: none;
  letter-spacing: -.01em;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--black);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.12);
}

.btn-primary:hover { box-shadow: 0 6px 20px rgba(0,0,0,.2), 0 0 0 1px rgba(0,0,0,.12); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
}

.btn-ghost:hover { background: var(--surface); border-color: #c8c8ce; }

/* ── Pillars / Feature Grid ───────────────────────────────── */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.pillar-card {
  background: var(--white);
  padding: 44px 38px;
}

.pillar-card:first-child { border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
.pillar-card:last-child  { border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }

.pillar-icon {
  width: 40px; height: 40px;
  background: var(--surface);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}

.pillar-icon svg { width: 20px; height: 20px; stroke: var(--black); }

.pillar-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.pillar-card p  { font-size: .9375rem; line-height: 1.7; }

/* ── Two-col Split ────────────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.split-text h2 { margin-bottom: 20px; }
.split-text p  { margin-bottom: 16px; }
.split-text p:last-of-type { margin-bottom: 28px; }

.split-panel {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 48px 44px;
  border: 1px solid var(--border);
}

.stat-row {
  display: flex; flex-direction: column; gap: 28px;
}

.stat-item { border-bottom: 1px solid var(--border); padding-bottom: 24px; }
.stat-item:last-child { border-bottom: none; padding-bottom: 0; }

.stat-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--black);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label { font-size: .875rem; color: var(--muted); }

/* ── Compliance Badges ────────────────────────────────────── */
.badge-strip {
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: center;
}

.badge {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: .8125rem;
  font-weight: 400;
  color: var(--charcoal);
  background: var(--white);
}

.badge svg { width: 14px; height: 14px; stroke: var(--muted); flex-shrink: 0; }

/* ── Section Label ────────────────────────────────────────── */
.section-label {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
  display: block;
}

/* ── Centered intro block ─────────────────────────────────── */
.section-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section-intro h2 { margin-bottom: 16px; }

/* ── Legal / Prose pages ──────────────────────────────────── */
.legal-hero {
  padding: 80px 0 56px;
  border-bottom: 1px solid var(--border);
}

.legal-hero .breadcrumb {
  font-size: .8125rem; color: var(--muted);
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 6px;
}

.legal-hero .breadcrumb a { color: var(--muted); transition: color .2s; }
.legal-hero .breadcrumb a:hover { color: var(--black); }
.legal-hero .breadcrumb svg { width: 12px; height: 12px; stroke: var(--muted); }

.legal-hero p { margin-top: 12px; font-size: 1rem; color: var(--muted); }

.legal-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 72px;
  padding-top: 72px;
  padding-bottom: 120px;
  align-items: start;
}

.legal-toc {
  position: sticky; top: calc(var(--nav-h) + 32px);
}

.legal-toc-title {
  font-size: .75rem; font-weight: 500; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 16px; display: block;
}

.legal-toc ul {
  list-style: none;
  display: flex; flex-direction: column; gap: 2px;
}

.legal-toc a {
  display: block;
  font-size: .875rem; color: var(--muted);
  padding: 6px 12px;
  border-radius: 8px;
  transition: color .2s, background .2s;
  line-height: 1.4;
}

.legal-toc a:hover  { color: var(--black); background: var(--surface); }
.legal-toc a.active { color: var(--black); background: var(--surface); font-weight: 500; }

.legal-body { max-width: 720px; }

.legal-section { margin-bottom: 64px; }
.legal-section:last-child { margin-bottom: 0; }

.legal-section h2 {
  font-size: 1.4rem; margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.legal-section h3 {
  font-family: var(--font-body);
  font-size: 1rem; font-weight: 500;
  color: var(--black); margin: 28px 0 10px;
}

.legal-section p { margin-bottom: 14px; font-size: .9375rem; line-height: 1.75; }
.legal-section p:last-child { margin-bottom: 0; }

.legal-section ul {
  list-style: none; margin: 12px 0 14px;
  display: flex; flex-direction: column; gap: 8px;
}

.legal-section ul li {
  display: flex; gap: 10px;
  font-size: .9375rem; color: var(--charcoal);
  line-height: 1.65;
}

.legal-section ul li::before {
  content: '';
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--muted); flex-shrink: 0; margin-top: 9px;
}

.legal-meta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px;
  font-size: .8125rem; color: var(--muted);
  margin-bottom: 32px;
}

/* ── Info Cards ───────────────────────────────────────────── */
.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  margin: 24px 0;
}

.info-card h4 { font-family: var(--font-body); font-size: .8125rem; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }

.info-row { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); align-items: baseline; }
.info-row:last-child { border-bottom: none; }
.info-key { font-size: .875rem; color: var(--muted); min-width: 160px; flex-shrink: 0; }
.info-val { font-size: .9375rem; color: var(--ink); font-weight: 400; }
.info-placeholder { color: var(--muted); font-style: italic; }

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 40px;
  background: var(--white);
}

.footer-inner {
  display: flex; flex-direction: column; gap: 32px;
}

.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 24px;
}

.footer-brand { display: flex; flex-direction: column; gap: 8px; }

.footer-brand .logo {
  font-family: var(--font-display);
  font-size: 1.1rem; color: var(--black);
  display: flex; align-items: center; gap: 8px;
}

    .footer-brand .logo .mark {
        width: 22px;
        height: 22px;
/*        background: var(--black);*/
        border-radius: 5px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

.footer-brand .logo .mark svg { width: 12px; height: 12px; }

.footer-brand p { font-size: .8125rem; color: var(--muted); max-width: 280px; line-height: 1.6; }

.footer-links-group { display: flex; gap: 48px; flex-wrap: wrap; }

.footer-col h5 { font-family: var(--font-body); font-size: .8rem; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 14px; }

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }

.footer-col a { font-size: .875rem; color: var(--charcoal); transition: color .2s; }
.footer-col a:hover { color: var(--black); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.footer-bottom p { font-size: .8125rem; color: var(--muted); }

.footer-disclaimer { font-size: .75rem; color: var(--muted); line-height: 1.6; padding-top: 12px; border-top: 1px solid var(--border); }

/* ── Compliance page specifics ────────────────────────────── */
.compliance-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px;
  background: var(--border); border-radius: var(--radius-lg); overflow: hidden;
  margin-top: 32px;
}

.compliance-card {
  background: var(--white); padding: 36px 32px;
}

.compliance-card:first-child  { border-radius: var(--radius-lg) 0 0 0; }
.compliance-card:nth-child(2) { border-radius: 0 var(--radius-lg) 0 0; }
.compliance-card:nth-child(3) { border-radius: 0 0 0 var(--radius-lg); }
.compliance-card:last-child   { border-radius: 0 0 var(--radius-lg) 0; }

.compliance-card .c-icon {
  width: 36px; height: 36px; background: var(--surface);
  border-radius: 9px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.compliance-card .c-icon svg { width: 18px; height: 18px; stroke: var(--black); }
.compliance-card h3 { font-size: 1rem; margin-bottom: 8px; }
.compliance-card p  { font-size: .9rem; line-height: 1.7; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .pillars-grid {
    grid-template-columns: 1fr;
    background: none;
    gap: 1px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
  }
  .pillar-card:first-child { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .pillar-card:last-child  { border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
  .pillar-card + .pillar-card { border-top: 1px solid var(--border); }

  .split { grid-template-columns: 1fr; gap: 48px; }

  .legal-layout { grid-template-columns: 1fr; gap: 40px; }
  .legal-toc { position: static; }

  .compliance-grid { grid-template-columns: 1fr; }
  .compliance-card:first-child  { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .compliance-card:nth-child(2) { border-radius: 0; }
  .compliance-card:nth-child(3) { border-radius: 0; }
  .compliance-card:last-child   { border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
}

@media (max-width: 680px) {
  :root { --nav-h: 60px; }

  .container { padding: 0 20px; }
  .nav-inner  { padding: 0 20px; }

  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(20px);
    padding: 20px; gap: 4px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open a { padding: 12px 16px; border-radius: 10px; }

  .nav-mobile-btn { display: block; }

  .hero { padding: 72px 0 64px; }
  .section { padding: 72px 0; }
  .section-lg { padding: 88px 0; }

  .footer-top { flex-direction: column; }
  .footer-links-group { gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .info-row { flex-direction: column; gap: 4px; }
  .info-key { min-width: unset; }
}
