:root {
  --navy: #123047;
  --navy-light: #1c435f;
  --teal: #2fd9b5;
  --teal-text: #0c8a6c;
  --bg: #f5f7f9;
  --card: #ffffff;
  --text: #1b2733;
  --muted: #64748b;
  --border: #e2e8f0;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
section { padding: 88px 0; }
@media (max-width: 640px) {
  section { padding: 56px 0; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: none;
}
.btn-primary { background: var(--teal); color: var(--navy); }
.btn-primary:hover { background: #24c7a4; }
.btn-ghost { background: transparent; color: var(--navy); border: 1px solid var(--border); }
.btn-ghost:hover { background: white; }
.btn-on-navy { background: white; color: var(--navy); }
.btn-on-navy:hover { background: var(--teal); }
.btn-ghost-on-navy { background: transparent; color: white; border: 1px solid rgba(255,255,255,0.35); }
.btn-ghost-on-navy:hover { border-color: white; }

/* Nav */
header.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245,247,249,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-brand { display: flex; align-items: center; }
.nav-brand img { height: 26px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a.navlink { font-size: 14px; font-weight: 600; color: var(--muted); }
.nav-links a.navlink:hover, .nav-links a.navlink.active { color: var(--navy); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-actions a.loginlink { font-size: 14px; font-weight: 700; color: var(--navy); padding: 10px 14px; }
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-row { height: 60px; }
  .nav-brand img { height: 22px; width: auto; }
  .nav-actions { gap: 6px; }
  .nav-actions a.loginlink { display: none; }
  .nav-actions .btn { padding: 9px 14px; font-size: 13px; white-space: nowrap; }
}

/* Page hero (non-home pages) */
.page-hero {
  background: linear-gradient(150deg, #0a1c2b 0%, #1c435f 55%, #0a1c2b 100%);
  color: white;
  padding: 72px 0 56px 0;
  text-align: center;
}
.page-hero .eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; font-weight: 800; color: var(--teal); margin-bottom: 14px; }
.page-hero h1 { font-size: 40px; margin: 0 0 14px 0; letter-spacing: -0.4px; }
.page-hero p { font-size: 17px; color: rgba(255,255,255,0.72); max-width: 600px; margin: 0 auto; }

/* Hero (home) */
.hero {
  background: linear-gradient(150deg, #0a1c2b 0%, #1c435f 55%, #0a1c2b 100%);
  color: white;
  padding: 84px 0 0 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.7;
}
.hero-glow {
  position: absolute; right: -160px; top: 60px; width: 480px; height: 480px; border-radius: 999px;
  background: radial-gradient(circle, rgba(47,217,181,0.16) 0%, rgba(47,217,181,0) 70%);
  pointer-events: none;
}
.hero-inner { position: relative; text-align: center; max-width: 760px; margin: 0 auto; padding: 0 24px; }
.hero .tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(47,217,181,0.14); border: 1px solid rgba(47,217,181,0.35);
  color: var(--teal); font-size: 13px; font-weight: 700;
  padding: 7px 16px; border-radius: 999px; margin-bottom: 24px;
}
.hero h1 { font-size: 50px; line-height: 1.14; font-weight: 800; margin: 0 0 20px 0; letter-spacing: -0.5px; }
.hero p.sub { font-size: 18px; line-height: 1.6; color: rgba(255,255,255,0.75); max-width: 620px; margin: 0 auto 34px auto; }
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 30px; }
.hero-ctas .btn { padding: 14px 28px; font-size: 16px; }
.trust-strip { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: center; font-size: 13px; color: rgba(255,255,255,0.65); margin-bottom: 56px; }
.trust-strip span { display: flex; align-items: center; gap: 6px; }
.trust-strip svg { flex-shrink: 0; }
@media (max-width: 640px) {
  .hero h1 { font-size: 32px; }
  .hero p.sub { font-size: 16px; }
  .page-hero h1 { font-size: 28px; }
}

/* Hero product mockup */
.hero-mockup-wrap { position: relative; padding: 0 24px 0 24px; }
.hero-mockup {
  max-width: 900px; margin: 0 auto;
  background: white; border-radius: 14px 14px 0 0;
  box-shadow: 0 -30px 80px rgba(0,0,0,0.25);
  overflow: hidden;
  display: flex;
}
.mockup-chrome-dots { display: flex; gap: 6px; padding: 12px 14px; background: #eef1f4; }
.mockup-chrome-dots span { width: 9px; height: 9px; border-radius: 999px; background: #d3d8de; }
.mockup-sidebar { width: 150px; background: var(--navy); flex-shrink: 0; padding: 14px 10px; display: flex; flex-direction: column; gap: 10px; }
.mockup-sidebar .m-brand { display: flex; align-items: center; gap: 6px; padding: 0 4px 10px 4px; border-bottom: 1px solid rgba(255,255,255,0.12); margin-bottom: 4px; }
.mockup-sidebar .m-brand img { width: 16px; height: 16px; border-radius: 4px; }
.mockup-sidebar .m-brand span { color: white; font-weight: 800; font-size: 10px; }
.mockup-nav-item { height: 8px; border-radius: 999px; background: rgba(255,255,255,0.14); }
.mockup-nav-item.active { background: var(--teal); }
.mockup-nav-item.wide { width: 80%; }
.mockup-nav-item.mid { width: 60%; }
.mockup-body { flex: 1; padding: 20px 22px; }
.mockup-stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.mockup-stat { background: var(--bg); border-left: 3px solid var(--teal); border-radius: 6px; padding: 10px 12px; }
.mockup-stat.blue { border-left-color: #378ADD; }
.mockup-stat.amber { border-left-color: #BA7517; }
.mockup-stat.navy { border-left-color: var(--navy); }
.mockup-stat .label { font-size: 8px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin-bottom: 5px; }
.mockup-stat .value { font-size: 15px; font-weight: 800; color: var(--navy); }
.mockup-chart { background: var(--bg); border-radius: 6px; padding: 14px; height: 100px; display: flex; align-items: flex-end; gap: 8px; }
.mockup-chart .bar { flex: 1; border-radius: 3px 3px 0 0; background: #d7f5ec; }
.mockup-chart .bar.high { background: var(--teal); }
@media (max-width: 760px) {
  .hero-mockup { display: none; }
}

/* Section headers */
.section-head { text-align: center; max-width: 620px; margin: 0 auto 56px auto; }
.section-head .eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; font-weight: 800; color: var(--teal-text); margin-bottom: 12px; }
.section-head h2 { font-size: 32px; margin: 0 0 14px 0; color: var(--navy); letter-spacing: -0.3px; }
.section-head p { font-size: 16px; color: var(--muted); margin: 0; }

/* Features grid */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(18,48,71,0.08); }
.feature-card .icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(47,217,181,0.14);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.feature-card h3 { font-size: 17px; margin: 0 0 8px 0; color: var(--navy); }
.feature-card p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.55; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

/* Product showcase (dashboard + PDF mockups) */
.showcase-section { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.showcase-row { display: flex; flex-direction: column; gap: 88px; }
.showcase-item { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.showcase-item.reverse .showcase-copy { order: 2; }
.showcase-item.reverse .showcase-visual { order: 1; }
.showcase-copy .eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; font-weight: 800; color: var(--teal-text); margin-bottom: 12px; }
.showcase-copy h3 { font-size: 26px; color: var(--navy); margin: 0 0 14px 0; letter-spacing: -0.3px; }
.showcase-copy p { font-size: 15px; color: var(--muted); margin: 0; line-height: 1.65; }
.showcase-visual {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}
@media (max-width: 860px) {
  .showcase-item, .showcase-item.reverse { grid-template-columns: 1fr; }
  .showcase-item.reverse .showcase-copy, .showcase-item.reverse .showcase-visual { order: unset; }
}

/* Small dashboard mockup card (used in showcase) */
.dash-card { background: white; border-radius: 10px; box-shadow: 0 12px 32px rgba(18,48,71,0.14); padding: 18px; }
.dash-card .row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 12px; }
.dash-card .stat { background: var(--bg); border-left: 3px solid var(--teal); border-radius: 6px; padding: 10px 12px; }
.dash-card .stat.blue { border-left-color: #378ADD; }
.dash-card .stat.amber { border-left-color: #BA7517; }
.dash-card .stat .label { font-size: 9px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin-bottom: 5px; }
.dash-card .stat .value { font-size: 16px; font-weight: 800; color: var(--navy); }
.dash-card .chart { background: var(--bg); border-radius: 6px; padding: 14px; height: 110px; display: flex; align-items: flex-end; gap: 8px; }
.dash-card .chart .bar { flex: 1; border-radius: 3px 3px 0 0; background: #d7f5ec; }
.dash-card .chart .bar.high { background: var(--teal); }

/* Invoice + PDF download mockup */
.invoice-card { background: white; border-radius: 10px; box-shadow: 0 12px 32px rgba(18,48,71,0.14); padding: 22px; position: relative; }
.invoice-card .inv-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.invoice-card .inv-head .brandmark { display: flex; align-items: center; gap: 6px; }
.invoice-card .inv-head .brandmark img { width: 18px; height: 18px; border-radius: 4px; }
.invoice-card .inv-head .brandmark span { font-weight: 800; color: var(--navy); font-size: 12px; }
.invoice-card .badge-paid { background: rgba(47,217,181,0.16); color: var(--teal-text); font-size: 10px; font-weight: 800; padding: 3px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.04em; }
.invoice-card .inv-line { height: 8px; border-radius: 999px; background: #eef1f4; margin-bottom: 9px; }
.invoice-card .inv-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--border); }
.invoice-card .inv-total .label { font-size: 12px; color: var(--muted); }
.invoice-card .inv-total .amount { font-size: 20px; font-weight: 800; color: var(--navy); }
.pdf-download-chip {
  position: absolute; right: -14px; bottom: -16px;
  background: var(--navy); color: white; border-radius: 10px;
  padding: 10px 16px; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
  box-shadow: 0 10px 24px rgba(18,48,71,0.3);
}
.pdf-download-chip svg { flex-shrink: 0; }
@media (max-width: 480px) {
  .pdf-download-chip { right: 8px; bottom: -14px; font-size: 11px; padding: 8px 12px; }
}

/* Why Finacount */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.why-card { text-align: center; padding: 0 12px; }
.why-card .icon { width: 52px; height: 52px; border-radius: 12px; background: rgba(47,217,181,0.14); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px auto; }
.why-card h3 { font-size: 18px; color: var(--navy); margin: 0 0 8px 0; }
.why-card p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.6; }
@media (max-width: 760px) { .why-grid { grid-template-columns: 1fr; gap: 36px; } }

/* Affordability banner */
.afford-banner {
  background: linear-gradient(135deg, rgba(47,217,181,0.1), rgba(47,217,181,0.03));
  border: 1px solid rgba(47,217,181,0.3);
  border-radius: 16px;
  padding: 40px 44px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  flex-wrap: wrap;
}
.afford-banner h3 { font-size: 22px; color: var(--navy); margin: 0 0 8px 0; }
.afford-banner p { font-size: 15px; color: var(--muted); margin: 0; max-width: 480px; }

/* Pricing */
.pricing-section { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.price-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 26px;
  display: flex; flex-direction: column;
  background: var(--bg);
}
.price-card.featured {
  border-color: var(--teal);
  background: white;
  box-shadow: 0 16px 40px rgba(18,48,71,0.1);
  position: relative;
}
.price-card.featured .badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--teal); color: var(--navy); font-size: 11px; font-weight: 800;
  padding: 4px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.04em;
}
.price-card h3 { font-size: 18px; color: var(--navy); margin: 0 0 6px 0; }
.price-card .price { font-size: 38px; font-weight: 800; color: var(--navy); margin: 0 0 4px 0; }
.price-card .price span { font-size: 15px; font-weight: 600; color: var(--muted); }
.price-card .seats { font-size: 13px; color: var(--muted); margin: 0 0 22px 0; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 26px 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.price-card li { font-size: 14px; color: var(--text); display: flex; align-items: flex-start; gap: 8px; }
.price-card li svg { flex-shrink: 0; margin-top: 2px; }
.price-card .btn { width: 100%; }
@media (max-width: 980px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pricing-grid { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; } }
.pricing-note { text-align: center; font-size: 13px; color: var(--muted); margin-top: 28px; }

.compare-table { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 14px; }
.compare-table th, .compare-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.compare-table th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.compare-table td.check { color: var(--teal-text); text-align: center; }

/* FAQ */
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: 10px; background: var(--card); overflow: hidden; }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 700; color: var(--navy);
  font-size: 15px; display: flex; align-items: center; justify-content: space-between;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 20px; color: var(--muted); font-weight: 400; }
.faq-item[open] summary::after { content: '−'; }
.faq-item .faq-body { padding: 0 22px 20px 22px; font-size: 14px; color: var(--muted); line-height: 1.6; }

/* Final CTA */
.final-cta { background: var(--navy); color: white; text-align: center; }
.final-cta h2 { font-size: 30px; margin: 0 0 14px 0; }
.final-cta p { font-size: 16px; color: rgba(255,255,255,0.7); margin: 0 0 28px 0; }

/* Footer */
footer { padding: 56px 0 28px 0; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; margin-bottom: 40px; }
.footer-brand { display: flex; align-items: center; margin-bottom: 12px; }
.footer-brand img { height: 24px; width: auto; }
.footer-tagline { font-size: 13px; color: var(--muted); max-width: 260px; line-height: 1.6; }
.footer-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 0 0 14px 0; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--text); }
.footer-col a:hover { color: var(--teal-text); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-top { grid-template-columns: 1fr; } }
