:root {
  --bg: #f7fafc;
  --surface: #ffffff;
  --surface-muted: #f3f7fb;
  --text: #0f172a;
  --text-muted: #475569;
  --primary: #0284c7;
  --primary-dark: #0369a1;
  --teal: #0f766e;
  --mint: #99f6e4;
  --purple-soft: #e9d5ff;
  --border: #dbe7f3;
  --shadow-soft: 0 12px 32px rgba(15, 23, 42, 0.08);
  --shadow-hover: 0 18px 42px rgba(2, 132, 199, 0.18);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --container: min(1140px, calc(100% - 2.5rem));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: linear-gradient(180deg, #f8fcff 0%, #f7fafc 40%, #f9fbff 100%);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.small-container {
  width: min(860px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.section-pad {
  padding: 5.5rem 0;
}

.soft-bg {
  background: linear-gradient(180deg, #f8fbff 0%, #f2f8ff 100%);
  border-top: 1px solid #eaf2fb;
  border-bottom: 1px solid #eaf2fb;
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.45rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.65rem, 3.2vw, 2.5rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.08rem;
}

p {
  margin: 0;
  color: var(--text-muted);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-color: #e4edf7;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.navbar {
  height: 84px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.2rem;
  color: #0b3f72;
}

.logo-mark {
  display: block;
  width: 158px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links a {
  font-weight: 500;
  color: #1e293b;
  padding: 0.4rem 0.15rem;
  transition: color 0.25s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-ctas {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.65rem 1.1rem;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #06b6d4);
  color: #fff;
  box-shadow: 0 10px 22px rgba(2, 132, 199, 0.25);
}

.btn-primary:hover {
  box-shadow: var(--shadow-hover);
  background: linear-gradient(135deg, var(--primary-dark), #0891b2);
}

.btn-ghost {
  background: #fff;
  color: #0f3b5d;
  border-color: #cfe0f0;
}

.btn-ghost:hover {
  border-color: #9fc2e0;
  box-shadow: 0 10px 20px rgba(2, 132, 199, 0.12);
}

.btn-link {
  color: #1f3b56;
  background: transparent;
}

.btn-link:hover {
  color: var(--primary);
}

.mobile-toggle {
  display: none;
  background: #fff;
  border: 1px solid #d5e3f2;
  width: 46px;
  height: 40px;
  border-radius: 10px;
  padding: 0.5rem;
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  height: 2px;
  border-radius: 4px;
  background: #0f172a;
  margin: 5px 0;
  transition: transform 0.3s ease, opacity 0.2s ease;
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid transparent;
}

.mobile-menu.open {
  max-height: 420px;
  border-color: #e1edf9;
}

.mobile-menu a {
  display: block;
  width: var(--container);
  margin-inline: auto;
  padding: 0.8rem 0;
  border-bottom: 1px solid #edf3fa;
}

.hero {
  padding-top: 2.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.03fr 1fr;
  gap: 2.3rem;
  align-items: center;
}

.hero-sub {
  margin-top: 1.25rem;
  font-size: 1.03rem;
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.7rem;
}

.hero-note {
  margin-top: 1rem;
  color: #256076;
  font-size: 0.93rem;
}

.hero-dashboard {
  background: linear-gradient(160deg, #ffffff, #f3f9ff 48%, #eef7ff);
  border: 1px solid #d9e9f7;
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
}

.panel {
  background: #fff;
  border: 1px solid #e2edf8;
  border-radius: var(--radius-md);
  padding: 0.8rem;
  box-shadow: 0 5px 12px rgba(15, 23, 42, 0.04);
}

.panel h3 {
  font-size: 0.8rem;
  margin-bottom: 0.45rem;
  color: #334155;
}

.metric {
  font-size: 1.35rem;
  font-weight: 750;
  color: #0b3f72;
}

.panel-overdue { grid-column: span 2; }
.panel-aging { grid-column: span 2; }
.panel-status { grid-column: span 2; }
.panel-reminders { grid-column: span 3; }
.panel-notes { grid-column: span 3; }
.panel-timeline { grid-column: span 3; }
.panel-cash { grid-column: span 2; }
.panel-sync { grid-column: span 1; }

.panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.panel li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.84rem;
  padding: 0.2rem 0;
  color: #334155;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.24rem 0.55rem;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.current { background: #e2fbe8; color: #17643b; border-color: #b6ebc8; }
.overdue { background: #fee2e2; color: #9f1239; border-color: #fecaca; }
.reminder { background: #e0f2fe; color: #075985; border-color: #bae6fd; }
.promise { background: #f3e8ff; color: #6b21a8; border-color: #e9d5ff; }
.escalated { background: #ffedd5; color: #9a3412; border-color: #fed7aa; }
.paid { background: #dcfce7; color: #166534; border-color: #bbf7d0; }

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  margin-right: 0.45rem;
}

.trust-strip {
  margin-top: 2.4rem;
}

.trust-grid {
  background: #fff;
  border: 1px solid #deebf8;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 1.1rem 1.2rem;
  display: grid;
  gap: 0.9rem;
}

.trust-title {
  font-weight: 600;
  color: #1e3a5f;
}

.logo-row,
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.logo-row span,
.trust-badge {
  border: 1px solid #ddeaf7;
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  background: #f8fbff;
  font-size: 0.84rem;
  color: #334155;
}

.section-head {
  max-width: 760px;
  margin-bottom: 2rem;
}

.card-grid {
  display: grid;
  gap: 1rem;
}

.pain-grid {
  grid-template-columns: repeat(4, 1fr);
}

.feature-grid {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover,
.step-card:hover,
.integration-card:hover,
.showcase-card:hover,
.price-card:hover {
  transform: translateY(-4px);
  border-color: #b9d5ec;
  box-shadow: 0 14px 30px rgba(2, 132, 199, 0.11);
}

.card p {
  margin-top: 0.7rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.step-card {
  background: #fff;
  border: 1px solid #dce9f5;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.step-num {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #0891b2, #0ea5e9);
  color: #fff;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.benefit-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.benefit-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.benefit-list li {
  background: #fff;
  border: 1px solid #dcebf7;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  font-weight: 500;
  color: #1e3a5f;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.showcase-card {
  background: #fff;
  border: 1px solid #dbe8f5;
  border-radius: var(--radius-md);
  padding: 1.1rem;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.showcase-card:nth-child(1) { grid-column: span 8; }
.showcase-card:nth-child(2) { grid-column: span 4; }
.showcase-card:nth-child(3) { grid-column: span 4; }
.showcase-card:nth-child(4) { grid-column: span 4; }
.showcase-card:nth-child(5) { grid-column: span 4; }
.showcase-card:nth-child(6) { grid-column: span 12; }

.showcase-card table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.8rem;
  font-size: 0.84rem;
}

.showcase-card th,
.showcase-card td {
  text-align: left;
  padding: 0.5rem 0.35rem;
  border-bottom: 1px solid #edf3fa;
}

.aging-cards {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}

.aging-cards div {
  border: 1px solid #d9e8f6;
  border-radius: 10px;
  background: #f8fcff;
  padding: 0.7rem;
  display: grid;
  gap: 0.2rem;
}

.aging-cards strong {
  color: #075985;
}

.integration-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.integration-card {
  background: #fff;
  border: 1px solid #dbe9f6;
  border-radius: var(--radius-md);
  padding: 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.primary-int {
  background: linear-gradient(160deg, #ecfeff, #f4f8ff);
  border-color: #b7def7;
}

.testimonial-grid {
  grid-template-columns: repeat(3, 1fr);
}

.testimonial-grid p {
  color: #1e293b;
  font-weight: 500;
}

.testimonial-grid h3 {
  margin-top: 1rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.price-card {
  background: #fff;
  border: 1px solid #d7e6f4;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.price {
  font-size: 2rem;
  font-weight: 800;
  color: #075985;
  margin-top: 0.45rem;
}

.price-note {
  margin-top: 0.4rem;
  font-size: 0.9rem;
}

.price-card ul {
  margin: 1rem 0 1.1rem;
  padding-left: 1rem;
  color: #334155;
}

.popular {
  border-color: #7dd3fc;
  box-shadow: 0 14px 32px rgba(2, 132, 199, 0.2);
  transform: translateY(-5px);
}

.popular-tag {
  position: absolute;
  top: -12px;
  left: 1.1rem;
  background: linear-gradient(135deg, #06b6d4, #0284c7);
  color: #fff;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  background: #fff;
  border: 1px solid #d9e7f4;
  border-radius: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 1rem 1.1rem;
  font-size: 1rem;
  font-weight: 600;
  color: #0f2740;
  cursor: pointer;
  position: relative;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  color: #0c4a6e;
  transition: transform 0.2s ease;
}

.faq-item.active .faq-question::after {
  content: "−";
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  padding: 0 1.1rem 1rem;
  color: #475569;
}

.final-cta {
  padding-top: 4rem;
}

.final-cta-inner {
  background: linear-gradient(135deg, #0c4a6e, #0369a1 55%, #0891b2);
  border-radius: 24px;
  padding: clamp(2rem, 4vw, 3rem);
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.final-cta-inner h2,
.final-cta-inner p {
  color: #fff;
}

.final-cta-inner .hero-actions {
  justify-content: center;
}

.final-cta-inner .btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.final-cta-inner .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
}

.site-footer {
  padding: 2rem 0 2.6rem;
  background: #0f172a;
  color: #cbd5e1;
  margin-top: 4.5rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.footer-grid a {
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.footer-grid a:hover {
  color: #fff;
}

.footer-note {
  margin-top: 1rem;
  text-align: center;
  color: #94a3b8;
  font-size: 0.85rem;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .navbar {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .nav-links,
  .nav-ctas {
    display: none;
  }

  .mobile-toggle,
  .mobile-menu {
    display: block;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-dashboard {
    grid-template-columns: repeat(4, 1fr);
  }

  .panel-overdue,
  .panel-aging,
  .panel-status,
  .panel-reminders,
  .panel-notes,
  .panel-timeline,
  .panel-cash,
  .panel-sync {
    grid-column: span 2;
  }

  .pain-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-grid,
  .steps-grid,
  .pricing-grid,
  .testimonial-grid,
  .integration-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .showcase-card:nth-child(n) {
    grid-column: span 6;
  }

  .showcase-card:nth-child(6) {
    grid-column: span 12;
  }
}

@media (max-width: 760px) {
  .section-pad {
    padding: 4rem 0;
  }

  .hero {
    padding-top: 1.4rem;
  }

  .hero-dashboard {
    grid-template-columns: 1fr 1fr;
    padding: 0.75rem;
  }

  .panel-overdue,
  .panel-aging,
  .panel-status,
  .panel-reminders,
  .panel-notes,
  .panel-timeline,
  .panel-cash,
  .panel-sync {
    grid-column: span 2;
  }

  .pain-grid,
  .feature-grid,
  .steps-grid,
  .pricing-grid,
  .testimonial-grid,
  .integration-grid,
  .benefit-layout {
    grid-template-columns: 1fr;
  }

  .showcase-grid {
    grid-template-columns: 1fr;
  }

  .showcase-card:nth-child(n) {
    grid-column: span 1;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .btn-link {
    padding-inline: 0;
  }

  .logo-mark {
    width: 140px;
  }
}
