/* Paylists Shared Styles */
@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;0,9..40,700;1,9..40,400&display=swap');

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

:root {
  --navy: #070d1a;
  --navy2: #0e1a30;
  --green: oklch(55% 0.17 152);
  --green-light: oklch(68% 0.16 152);
  --green-pale: oklch(96% 0.05 152);
  --off-white: #f6f8fc;
  --text: #0c1320;
  --mid: #4f5f74;
  --border: #e2e8f0;
  --radius: 12px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: white;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* NAV */
nav#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 60px;
  transition: background 0.3s, box-shadow 0.3s;
}
nav#navbar.scrolled {
  background: rgba(7,13,26,0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img { height: 32px; width: auto; }
.nav-links { display: flex; gap: 4px; list-style: none; }
.nav-links a {
  display: inline-flex; align-items: center; gap: 6px;
  color: rgba(255,255,255,0.7); text-decoration: none;
  font-size: 14px; font-weight: 500; transition: color 0.2s, background 0.2s;
  padding: 7px 12px; border-radius: 8px;
}
.nav-links a svg { opacity: 0.6; transition: opacity 0.2s; flex-shrink: 0; }
.nav-links a:hover { color: white; background: rgba(255,255,255,0.07); }
.nav-links a:hover svg { opacity: 1; }
.nav-cta { display: flex; gap: 12px; align-items: center; }
.btn-ghost {
  color: rgba(255,255,255,0.8); font-size: 15px;
  background: none; border: none; cursor: pointer;
  font-family: inherit; font-weight: 500;
  text-decoration: none; transition: color 0.2s;
}
.btn-ghost:hover { color: white; }
.btn-primary {
  background: var(--green); color: white;
  padding: 10px 22px; border-radius: 8px;
  font-size: 15px; font-weight: 600;
  border: none; cursor: pointer;
  font-family: inherit; text-decoration: none;
  transition: background 0.2s, transform 0.15s; display: inline-block;
}
.btn-primary:hover { background: var(--green-light); transform: translateY(-1px); }

/* PAGE HERO (inner pages) */
.page-hero {
  background: var(--navy);
  padding: 140px 24px 80px;
  text-align: center;
  position: relative; overflow: hidden;
}
.page-hero-glow {
  position: absolute; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, oklch(55% 0.17 152 / 0.15) 0%, transparent 70%);
  top: -100px; left: 50%; transform: translateX(-50%);
  pointer-events: none;
}
.page-hero-label {
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--green-light); margin-bottom: 16px;
}
.page-hero h1 {
  font-size: clamp(28px, 4vw, 52px); font-weight: 700;
  color: white; letter-spacing: -1.5px; line-height: 1.15;
  max-width: 760px; margin: 0 auto 20px; text-wrap: balance;
}
.page-hero p {
  font-size: 18px; color: rgba(255,255,255,0.55);
  max-width: 580px; margin: 0 auto; text-wrap: pretty; line-height: 1.7;
}

/* SECTION COMMONS */
section { padding: 80px 24px; }
.container { max-width: 1100px; margin: 0 auto; }
.container-narrow { max-width: 760px; margin: 0 auto; }
.section-label {
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--green); margin-bottom: 14px;
}
.section-title {
  font-size: clamp(26px, 3.5vw, 42px); font-weight: 700;
  line-height: 1.15; letter-spacing: -1px; color: var(--text);
  text-wrap: balance; margin-bottom: 16px;
}
.section-sub {
  font-size: 18px; color: var(--mid); max-width: 580px;
  text-wrap: pretty; line-height: 1.7;
}
.section-header { margin-bottom: 56px; }
.section-header.centered { text-align: center; }
.section-header.centered .section-sub { margin: 0 auto; }

/* BUTTONS */
.btn-primary-lg {
  background: var(--green); color: white;
  padding: 16px 32px; border-radius: 10px;
  font-size: 16px; font-weight: 600;
  border: none; cursor: pointer; font-family: inherit;
  text-decoration: none; display: inline-block;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 8px 32px oklch(55% 0.17 152 / 0.35);
}
.btn-primary-lg:hover { background: var(--green-light); transform: translateY(-2px); }
.btn-outline-lg {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.15);
  color: white; padding: 16px 32px; border-radius: 10px;
  font-size: 16px; font-weight: 500; cursor: pointer;
  font-family: inherit; text-decoration: none; display: inline-block;
  transition: background 0.2s, transform 0.15s;
}
.btn-outline-lg:hover { background: rgba(255,255,255,0.10); transform: translateY(-2px); }

/* FOOTER */
footer {
  background: #040a14;
  color: rgba(255,255,255,0.65);
  padding: 60px 60px 40px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 60px; }
.footer-brand .footer-logo { display: block; margin-bottom: 16px; }
.footer-brand .footer-logo img { height: 28px; width: auto; }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 280px; color: rgba(255,255,255,0.65); }
.footer-col h4 { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.9); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: rgba(255,255,255,0.65); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.footer-col a:hover { color: rgba(255,255,255,0.8); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 32px; display: flex; justify-content: space-between;
  align-items: center; font-size: 13px; flex-wrap: wrap; gap: 12px; color: rgba(255,255,255,0.7);
}
.footer-bottom a { color: rgba(255,255,255,0.7); text-decoration: none; }
.footer-bottom a:hover { color: white; }
.footer-legal { font-size: 12px; color: rgba(255,255,255,0.55); max-width: 800px; line-height: 1.6; margin-top: 16px; }

/* DataRep badge block */
.footer-datarep {
  display: flex; align-items: center; gap: 22px;
  padding: 24px 0 28px;
  margin-bottom: 8px;
  border-top: 1px solid rgba(255,255,255,0.06);
  flex-wrap: wrap;
}
.footer-datarep > a { display: inline-block; flex-shrink: 0; }
.footer-datarep img {
  width: 130px; height: auto; display: block;
  border-radius: 4px;
}
.footer-datarep p {
  font-size: 13px; color: rgba(255,255,255,0.7);
  line-height: 1.65; max-width: 520px; margin: 0;
}
.footer-datarep p strong { color: white; }
.footer-datarep p a { color: var(--green-light); text-decoration: none; white-space: nowrap; }
.footer-datarep p a:hover { color: white; }

/* HAMBURGER */
.nav-burger {
  display: none; background: none; border: none; cursor: pointer;
  padding: 8px; border-radius: 8px; color: white;
}
.nav-burger:hover { background: rgba(255,255,255,0.08); }
.nav-burger svg { display: block; }

/* ============================================================
   MOBILE — applies across all pages
   ============================================================ */
@media (max-width: 860px) {
  /* Nav: collapse links + show hamburger */
  nav#navbar { padding: 14px 18px; }
  .nav-links {
    position: fixed; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(7,13,26,0.98); backdrop-filter: blur(12px);
    padding: 12px 18px 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform 0.2s, opacity 0.2s;
    max-height: calc(100vh - 64px); overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links li { width: 100%; }
  .nav-links a {
    width: 100%; padding: 12px 14px; font-size: 16px;
    border-radius: 8px;
  }
  .nav-cta .btn-ghost { display: none; }
  .nav-cta .btn-primary { padding: 8px 16px; font-size: 14px; }
  .nav-burger { display: inline-flex; }

  /* Section spacing */
  section { padding: 56px 18px; }
  .page-hero { padding: 110px 18px 56px; }

  /* Footer */
  footer { padding: 48px 22px 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 40px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
  .footer-bottom > div { flex-direction: column; gap: 6px !important; }

  /* Inline 2-column grids → stack */
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:1fr 1.2fr"],
  [style*="grid-template-columns: 1fr 1.2fr"],
  [style*="grid-template-columns:1.2fr 1fr"],
  [style*="grid-template-columns: 1.2fr 1fr"],
  [style*="grid-template-columns:1fr 1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  /* Inline gap overrides — collapse big desktop gaps on mobile */
  [style*="gap:80px"], [style*="gap: 80px"],
  [style*="gap:60px"], [style*="gap: 60px"],
  [style*="gap:48px"], [style*="gap: 48px"] {
    gap: 28px !important;
  }
  /* Sidebar grid (dashboard mock) → stack so it doesn't squash */
  [style*="grid-template-columns:180px 1fr"],
  [style*="grid-template-columns: 180px 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Common component grids → 1 col */
  .features-grid, .steps, .steps-v, .solve-grid,
  .pricing-grid, .team-grid, .values-grid, .stats-grid,
  .hero-stats { grid-template-columns: 1fr !important; }

  /* Dashboard mock — let inner grid wrap */
  .dash-body { grid-template-columns: 1fr !important; padding: 16px !important; }
  .dash-invoice-row { flex-wrap: wrap; gap: 6px 12px; }

  /* Hero stats divider hides on stacked layout */
  .hero-stat-divider { display: none; }

  /* Buttons full-width in stacked rows */
  .btn-primary-lg, .btn-outline-lg { padding: 14px 22px; font-size: 15px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-actions a { text-align: center; }
}

@media (max-width: 480px) {
  section { padding: 44px 16px; }
  .page-hero { padding: 96px 16px 40px; }
  .page-hero h1 { letter-spacing: -1px; }
  footer { padding: 40px 18px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
