:root {
  --primary: #1c583a;
  --primary-dark: #14422b;
  --primary-soft: rgba(28, 88, 58, 0.08);
  --navy: #1C2539;
  --heading: #181c32;
  --body: #5D666F;
  --accent-lime: #90FF03;
  --surface: #ffffff;
  --surface-alt: #f6f6f6;
  --surface-tint: #EDEFF3;
  --border: #E6E9F0;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 4px 16px rgba(28, 37, 57, 0.06);
  --shadow-md: 0 12px 32px rgba(28, 37, 57, 0.09);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--body);
  background-color: var(--surface);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Red Hat Display', sans-serif;
  color: var(--heading);
  margin: 0 0 0.75rem;
  line-height: 1.25;
  font-weight: 700;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-dark);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Top Bar (Finbiz style) */
.top-bar {
  background-color: var(--navy);
  color: #cbd5e1;
  font-size: 0.85rem;
  padding: 9px 0;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-lime);
  margin-right: 6px;
  box-shadow: 0 0 8px var(--accent-lime);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}

.brand-logo img {
  height: 42px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--heading);
  font-weight: 600;
  font-size: 0.95rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: 'Red Hat Display', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(28, 88, 58, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--heading);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-white {
  background: #ffffff;
  color: var(--navy);
}

.btn-white:hover {
  background: var(--accent-lime);
  color: var(--navy);
}

/* Breadcrumb / Page Banner (Matches sphinxsquare.com Finbiz header banner) */
.hero-section {
  background: linear-gradient(135deg, var(--navy) 0%, #101828 60%, #133825 100%);
  color: #ffffff;
  padding: 64px 0 76px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 44px;
  align-items: center;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.breadcrumb a {
  color: #ffffff;
}

.hero-section h1 {
  color: #ffffff;
  font-size: clamp(2rem, 3.8vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.hero-section h1 span {
  color: var(--accent-lime);
}

.hero-lead {
  font-size: 1.1rem;
  color: #dbe3ec;
  margin-bottom: 28px;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.stat-item strong {
  display: block;
  font-family: 'Red Hat Display', sans-serif;
  font-size: 1.5rem;
  color: #ffffff;
}

.stat-item span {
  font-size: 0.85rem;
  color: #cbd5e1;
}

/* Quick Test Card */
.test-card {
  background: #ffffff;
  color: var(--body);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-md);
}

.test-card h2 {
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.test-card p {
  font-size: 0.92rem;
  margin-bottom: 18px;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--surface-alt);
  color: var(--heading);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: #ffffff;
}

/* Sections */
.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--surface-alt);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.section-eyebrow {
  display: inline-block;
  font-family: 'Red Hat Display', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.35rem);
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.price-card.featured {
  border: 2px solid var(--primary);
  background: linear-gradient(180deg, #ffffff 0%, #f4faf7 100%);
}

.badge-popular {
  position: absolute;
  top: -13px;
  right: 24px;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}

.price-amount {
  font-family: 'Red Hat Display', sans-serif;
  font-size: 2.35rem;
  font-weight: 800;
  color: var(--heading);
  margin: 12px 0;
}

.price-amount small {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--body);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 26px;
  flex: 1;
}

.feature-list li {
  padding: 7px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.94rem;
}

.feature-list li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 800;
  margin-right: 10px;
}

/* Features & Devices Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: 16px;
}

/* SEO Editorial Guide */
.seo-article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.seo-article h2 {
  font-size: 1.75rem;
  margin-top: 28px;
}

.seo-article h2:first-child {
  margin-top: 0;
}

.seo-article h3 {
  font-size: 1.25rem;
  margin-top: 22px;
}

.toc-box {
  background: var(--surface-tint);
  border-left: 4px solid var(--primary);
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  margin-bottom: 28px;
}

.toc-box ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

/* FAQ */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
}

.faq-item summary {
  font-family: 'Red Hat Display', sans-serif;
  font-weight: 700;
  font-size: 1.06rem;
  color: var(--heading);
  cursor: pointer;
}

.faq-item p {
  margin: 12px 0 0;
  font-size: 0.96rem;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: #cbd5e1;
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer h4 {
  color: #ffffff;
  font-size: 1.05rem;
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #cbd5e1;
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--accent-lime);
}

.footer-bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.86rem;
  color: #94a3b8;
}

@media (max-width: 960px) {
  .hero-grid, .pricing-grid, .grid-3, .footer-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
}
