/* ============================================================
   COUNTAM — styles.css
   Matches Framer template visual design with Countam branding
   ============================================================ */

/* --- Fonts (Nunito headings + Poppins body — Countam brand fonts) --- */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@600;700;800;900&family=Poppins:wght@300;400;500;600&display=swap');

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; overflow-x: hidden; }
body { overflow-x: hidden; }

/* Pre-promote scroll-animated elements to their own compositor layer */
.extra-card, .pricing-card, .step-card,
.accordion-item, .faq-item, .feature-graphic-wrap,
.features-title-block, .how-title, .faq-title, .pricing-header,
#contact .cta-container > * {
  will-change: transform, opacity;
}
body {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--text-body);
  background-color: var(--bg);
  line-height: 1.5;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Nunito', sans-serif;
  font-weight: 500;
  color: #000;
  hyphens: none;
  word-break: keep-all;
  overflow-wrap: normal;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- CSS Variables --- */
:root {
  --blue: #009CFF;
  --yellow: #FFF353;
  --green: #00DB20;
  --black: #000;
  --white: #fff;
  --bg: #f8f8f8;
  --text-dark: #000;
  --text-body: #3a3a3d;
  --text-muted: #3a3a3d;
  --border: rgba(58, 58, 61, 0.12);
  --max-width: 1084px;
  --section-px: 30px;
}

/* --- Container --- */
.container {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--section-px);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 100px;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
  cursor: pointer;
  transition: opacity 0.18s ease, transform 0.15s ease;
  border: none;
  white-space: nowrap;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--blue);
  color: #fff;
  padding: 14px 24px;
  min-height: 48px;
}
.btn-secondary {
  background: rgba(0,0,0,0.06);
  color: var(--black);
  padding: 14px 24px;
  min-height: 48px;
}
.btn-outline {
  background: transparent;
  color: var(--black);
  border: 1.5px solid var(--border);
  padding: 14px 24px;
  min-height: 48px;
}
.btn-lg {
  padding: 18px 32px;
  font-size: 16px;
  min-height: 56px;
}

/* --- Framer-Style CTA Button (hero primary)
       Structure mirrors Framer exactly:
       outer anchor → yellow shadow div (below) + blue content div (above)
       Yellow div is position:absolute, bottom:-4px, width:100%, height:48px
       Blue div has inset glow box-shadow + duplicate blurred text for hover
-----------------------------------------------------------------*/
.cta-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  overflow: visible;
  white-space: nowrap;
}

/* Yellow drop shadow layer underneath the button */
.cta-btn-shadow {
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 48px;
  background: var(--yellow);
  border-radius: 100px;
  z-index: 0;
}

/* Blue content layer (the visible button face) */
.cta-btn-content {
  position: relative;
  z-index: 1;
  background: var(--blue);
  border-radius: 100px;
  padding: 12px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* Inset glow matching Framer's exact box-shadow */
  box-shadow:
    inset 0px 1px 2px 0px rgba(247, 255, 18, 0.32),
    inset 0px 5px 6px 0px rgba(255, 255, 255, 0.32);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cta-btn:hover .cta-btn-content {
  transform: translateY(-2px);
}
.cta-btn:active .cta-btn-content {
  transform: translateY(0);
}

/* Title container: stacks primary and glow text (glow is absolute, for hover effect) */
.cta-btn-title {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Primary text (always visible) */
.cta-text-primary {
  position: relative;
  z-index: 1;
  transition: filter 0.2s ease;
}
.cta-text-primary p {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin: 0;
  white-space: nowrap;
}

/* Glow duplicate text — blurred, scales up on hover for Framer glow effect */
.cta-text-glow {
  position: absolute;
  z-index: 0;
  filter: blur(5px);
  transform: scale(0.8);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.cta-text-glow p {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin: 0;
  white-space: nowrap;
}
.cta-btn:hover .cta-text-glow {
  opacity: 0.7;
  transform: scale(1);
}

/* --- Section Label Pill --- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border-radius: 100px;
  padding: 6px 16px;
  box-shadow: 0px 4px 16px 0px rgba(0, 0, 0, 0.06);
}
.section-label .dot {
  width: 8px;
  height: 8px;
  border-radius: 100px;
  background: var(--green);
  flex-shrink: 0;
}
.section-label span:last-child {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--black);
  line-height: 1;
}

/* --- Section Header (centered) --- */
.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  margin-bottom: 56px;
}
.section-header h2 {
  font-size: 36px;
  letter-spacing: -3px;
  line-height: 1.2;
  max-width: 520px;
}
.section-subtext {
  font-size: 16px;
  color: var(--text-body);
  max-width: 440px;
  line-height: 1.55;
}

/* ============================================================
   NAV
   ============================================================ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(248, 248, 248, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.nav-container {
  max-width: 1084px;       /* exact Framer container width */
  margin: 0 auto;
  padding: 24px 30px;      /* exact Framer padding */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
/* Logo + links grouped together on the left */
.nav-left {
  display: flex;
  align-items: center;
  gap: 56px;               /* exact Framer gap between logo and link list */
}
.nav-logo img { width: 110px; height: 37px; }  /* exact Framer logo dimensions */
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;               /* exact Framer gap between links */
}
.nav-links a {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;         /* exact Framer font-size */
  font-weight: 500;
  color: var(--black);
  transition: opacity 0.15s;
}
.nav-links a:hover { opacity: 0.6; }
.nav-cta { padding: 10px 20px; min-height: 40px; font-size: 14px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
}

/* ============================================================
   HERO — side-by-side layout: text left, dashboard right
   ============================================================ */
#hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 140px var(--section-px) 0;
  min-height: 100svh;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* Bottom fade overlay — position absolute on #hero, fades hero image into page bg */
.hero-blur-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to bottom, #f8f8f800 0%, #f8f8f8cc 60%, #f8f8f8 100%);
  z-index: 2;
  pointer-events: none;
}

/* Inner row: text left column + dashboard right column */
.hero-inner {
  position: relative;
  z-index: 3;
  max-width: 1280px;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 60px;
  flex: 1;
}
/* Text + CTA block: fixed left column, left-aligned */
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  flex: 0 0 460px;
  max-width: 460px;
  text-align: left;
  padding-bottom: 80px; /* breathing room above dashboard bottom */
}
.hero-headline {
  font-size: 52px;
  font-weight: 500;
  letter-spacing: -2.5px;
  line-height: 1.1;
  color: var(--black);
}
.hero-subtext {
  font-size: 17px;
  color: var(--text-body);
  line-height: 1.55;
}
.hero-ctas {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 6px;
}
/* Dashboard: right column, bottom-anchored so image sits at the hero floor.
   mask-image fades the bottom of the dashboard to transparent so the floating
   animation dissolves softly into the page rather than hitting a hard clip edge. */
.hero-dashboard {
  flex: 1;
  min-width: 0;
  align-self: flex-end;
  will-change: transform, opacity;
  -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 92%);
  mask-image: linear-gradient(to bottom, black 50%, transparent 92%);
}
.dashboard-glass {
  background: rgba(255, 255, 255, 0.56);
  backdrop-filter: blur(56px);
  -webkit-backdrop-filter: blur(56px);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-radius: 32px;
  padding: 12px;
  overflow: hidden;
  box-shadow: 0 2px 40px rgba(0, 0, 0, 0.08);
}
.dashboard-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 22px;
  object-fit: cover;
  object-position: top;
}

/* ============================================================
   TEXT TICKER
   Matches Framer logo carousel: top border, 105px gradient fades,
   infinite horizontal scroll. Two duplicate tracks for seamless loop.
   ============================================================ */
#ticker {
  position: relative;
  overflow: hidden;
  padding: 0 0 64px;
}

/* Gradient fade masks — exact Framer values (105px wide) */
.ticker-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 105px;
  z-index: 2;
  pointer-events: none;
}
.ticker-fade--left  { left:  0; background: linear-gradient(90deg, #f8f8f8 0%, rgba(248,248,248,0) 100%); }
.ticker-fade--right { right: 0; background: linear-gradient(90deg, rgba(248,248,248,0) 0%, #f8f8f8 100%); }

/* Scroll container — clips overflow but not the fades */
.ticker-inner {
  display: flex;
  flex-direction: row;
  width: 100%;
  overflow: hidden;
}

/* Each track is a full row of items; two tracks side-by-side = seamless loop */
.ticker-track {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-shrink: 0;
  gap: 0;
  padding: 28px 0;
  animation: ticker-scroll 30s linear infinite;
  will-change: transform;
}

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* Pause on hover */
#ticker:hover .ticker-track { animation-play-state: paused; }

/* Individual text item */
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 48px;
  white-space: nowrap;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-body);
  padding: 0 48px 0 0;
}

/* Separator dot — Countam green */
.ticker-sep {
  color: var(--green);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

/* ============================================================
   FEATURE SECTION 01 — Accordion + Screenshot
   Framer: padding 120px 30px 72px, two-column 1084px
   ============================================================ */
#features {
  padding: 120px var(--section-px) 72px;
  display: flex;
  justify-content: center;
}
.features-two-col {
  max-width: var(--max-width);
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 60px;
}
/* Left column — max-width 437px */
.features-left {
  flex: 0 0 437px;
  max-width: 437px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.features-title-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  max-width: 380px;
}
.features-title-block h2 {
  font-size: 36px;
  letter-spacing: -3px;
  line-height: 1.2;
  text-align: left;
}
/* Accordion feature list */
.features-accordion {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.accordion-item {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  cursor: pointer;
  overflow: hidden;
}
.accordion-item:last-child { border-bottom: 1px solid var(--border); }
.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.accordion-title {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--black);
  line-height: 1.3;
}
.accordion-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
  color: var(--text-body);
}
.accordion-item.open .accordion-icon { transform: rotate(45deg); }
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.accordion-item.open .accordion-body { max-height: 200px; padding-top: 12px; }
.accordion-body p {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.6;
}

/* Right column — screenshot card */
.features-right {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  align-self: stretch;
}
/* ── Feature graphic panels ─────────────────────────── */
.feature-graphic-wrap {
  position: relative;
  width: 100%;
  align-self: center;
}

/* Base panel — hidden by default */
.fchart-panel {
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 8px 32px 0 rgba(0,0,0,0.08);
  padding: 28px 24px 20px;
  display: none;
  flex-direction: column;
  gap: 18px;
  opacity: 0;
}
.fchart-panel.active {
  display: flex;
  opacity: 1;
}

/* Panel header */
.fchart-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.fchart-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.fchart-value {
  font-family: 'Nunito', sans-serif;
  font-size: 30px;
  font-weight: 800;
  color: var(--black);
  letter-spacing: -1.5px;
  line-height: 1;
}
.fchart-change {
  font-size: 12px;
  font-weight: 500;
  margin-top: 5px;
}
.fchart-change.up   { color: var(--green); }
.fchart-change.down { color: #e53e3e; }
.fchart-period {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(0,0,0,0.05);
  border-radius: 100px;
  padding: 4px 12px;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.03em;
}

/* SVG chart area */
.fchart-svg {
  width: 100%;
  height: auto;
  max-height: 175px;
  display: block;
  overflow: visible;
}

/* Legend */
.fchart-legend {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 4px;
}
.fchart-legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-body);
}
.fchart-legend-item i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}

/* ── Panel 1 — area line path (drawn by GSAP) ── */
#line-path {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
}

/* ── Panel 2 — horizontal bars ── */
.fbar-rows {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 4px 0;
}
.fbar-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fbar-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.fbar-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-body);
}
.fbar-amount {
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--black);
}
.fbar-track {
  height: 10px;
  background: rgba(0,0,0,0.05);
  border-radius: 100px;
  overflow: hidden;
}
.fbar-fill {
  height: 100%;
  border-radius: 100px;
  width: 0%;
  transition: none;
}
.fbar-net {
  background: linear-gradient(90deg, #009CFF 60%, #00DB20 100%);
}
.fbar-months {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
}
.fbar-month {
  font-size: 11px;
  font-weight: 500;
  color: #bbb;
  padding: 3px 8px;
  border-radius: 100px;
}
.fbar-month.active {
  color: var(--white);
  background: var(--blue);
}

/* ── Panel 3 — invoice list ── */
.finv-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.finv-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(0,0,0,0.02);
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.05);
  opacity: 0;
  transform: translateY(10px);
}
.finv-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.finv-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.finv-id {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.finv-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.finv-amount {
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--black);
  white-space: nowrap;
}
.finv-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  white-space: nowrap;
  letter-spacing: 0.04em;
}
.finv-badge.paid    { background: rgba(0,219,32,0.12);  color: #00a018; }
.finv-badge.pending { background: rgba(0,156,255,0.12); color: #007acc; }
.finv-badge.overdue { background: rgba(255,243,83,0.4); color: #9a8a00; }

/* Summary bar (invoice split) */
.finv-summary-bar {
  display: flex;
  height: 6px;
  border-radius: 100px;
  overflow: hidden;
  gap: 2px;
}
.finv-summary-fill {
  height: 100%;
  border-radius: 100px;
  transition: none;
}

/* Keep old class around in case referenced elsewhere */
.feature-screenshot {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 24px rgba(0,0,0,0.06);
}
.feature-screenshot img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   FEATURE SECTION 02 — Mini Cards Row
   Framer: padding 0 30px 120px, max-width 1048px, gap 36px
   ============================================================ */
#extra-features {
  padding: 48px var(--section-px) 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* Mini card row — max-width 1048px */
.extra-features-row {
  max-width: 1048px;
  width: 100%;
  display: flex;
  flex-direction: row;
  gap: 36px;
  align-items: flex-start;
}
.extra-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
/* Black icon box — Framer style */
.extra-icon {
  background: var(--black);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.extra-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--white);
  fill: none;
  stroke-width: 1.82;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.extra-card h3 {
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--black);
  line-height: 1.3;
}
.extra-card p {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.55;
}

/* ── Animated icon keyframes ───────────────────────────────────── */

/* Sales: bars grow from bottom, staggered */
.abar {
  transform-box: fill-box;
  transform-origin: bottom;
  animation: icon-bar-grow 2.8s ease-in-out infinite;
}
.abar-1 { animation-delay: 0s; }
.abar-2 { animation-delay: 0.18s; }
.abar-3 { animation-delay: 0.36s; }
@keyframes icon-bar-grow {
  0%, 100% { transform: scaleY(0.3); opacity: 0.3; }
  40%, 60%  { transform: scaleY(1);   opacity: 1; }
}

/* Sales: trend dot pulse */
.apulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: icon-dot-pulse 2.8s ease-in-out infinite;
}
@keyframes icon-dot-pulse {
  0%, 100% { transform: scale(0.4); opacity: 0.3; }
  50%       { transform: scale(1.8); opacity: 1; }
}

/* Purchases: receipt lines draw in one by one */
.arl {
  stroke-dasharray: 12;
  animation: icon-line-draw 2.8s ease-in-out infinite;
}
.arl-1 { animation-delay: 0s; }
.arl-2 { animation-delay: 0.32s; }
.arl-3 { animation-delay: 0.64s; }
@keyframes icon-line-draw {
  0%, 8%     { stroke-dashoffset: 12; opacity: 0; }
  35%, 72%   { stroke-dashoffset: 0;  opacity: 1; }
  90%, 100%  { stroke-dashoffset: -12; opacity: 0; }
}

/* Inventory: box faces pulse in/out */
.abox-outline {
  animation: icon-box-pulse 2.8s ease-in-out infinite;
}
.abox-h, .abox-v {
  animation: icon-box-lines 2.8s ease-in-out infinite;
}
.abox-h { animation-delay: 0.25s; }
.abox-v { animation-delay: 0.5s; }
@keyframes icon-box-pulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 1; }
}
@keyframes icon-box-lines {
  0%, 100% { opacity: 0.25; }
  50%       { opacity: 1; }
}

/* Payroll: check draws in, badge pulses */
.acheck {
  stroke-dasharray: 10;
  animation: icon-check-draw 2.8s ease-in-out infinite;
}
@keyframes icon-check-draw {
  0%, 12%   { stroke-dashoffset: 10; opacity: 0; }
  42%, 72%  { stroke-dashoffset: 0;  opacity: 1; }
  90%, 100% { stroke-dashoffset: -10; opacity: 0; }
}
.abadge {
  transform-box: fill-box;
  transform-origin: center;
  animation: icon-badge-pulse 2.8s ease-in-out infinite;
}
@keyframes icon-badge-pulse {
  0%, 100% { transform: scale(0.85); opacity: 0.5; }
  50%       { transform: scale(1);    opacity: 1; }
}

/* ============================================================
   PRICING
   ============================================================ */
#pricing {
  padding: 0 var(--section-px) 120px;
  display: flex;
  justify-content: center;
}
.pricing-inner {
  max-width: 1200px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}
.pricing-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.pricing-header h2 {
  font-size: 36px;
  letter-spacing: -3px;
  line-height: 1.2;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
}
.pricing-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.pricing-card--featured {
  background: var(--white);
  border-color: var(--green);
  border-width: 2px;
}
.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: #fff;
  border-radius: 100px;
  padding: 5px 14px;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.pricing-top { display: flex; flex-direction: column; gap: 10px; }
.pricing-card h3 {
  font-family: 'Nunito', sans-serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: 0;
  color: var(--black);
}
.price {
  font-family: 'Nunito', sans-serif;
  font-size: 38px;
  font-weight: 600;
  line-height: 1.05;
  color: var(--black);
  white-space: nowrap;
}
.price span {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-body);
}
.pricing-card--featured .price span { color: var(--text-muted); }
.pricing-desc {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.55;
}
.pricing-users {
  font-size: 14px;
  font-weight: 600;
  color: var(--green);
  flex: 1;
}
.pricing-note {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
#how-it-works {
  padding: 0 var(--section-px) 120px;
  display: flex;
  justify-content: center;
}
.how-inner {
  max-width: var(--max-width);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
}
.how-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.how-title h2 {
  font-size: 36px;
  letter-spacing: -3px;
  line-height: 1.2;
}
/* ── 12-col bento grid ── */
.steps-row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

/* Row 1 */
.step-card:nth-child(1) {
  grid-column: 1 / span 6;
  grid-row: 1;
  height: 290px;
  background: radial-gradient(ellipse at 25% 0%, rgba(191, 219, 254, 0.55) 0%, rgba(254, 249, 195, 0.4) 42%, #ffffff 68%);
}
.step-card:nth-child(2) { grid-column: 7 / span 3;  grid-row: 1; height: 290px; }
.step-card:nth-child(3) { grid-column: 10 / span 3; grid-row: 1; height: 290px; }

/* Row 2 */
.step-card:nth-child(4) { grid-column: 1 / span 3;  grid-row: 2; height: 300px; }
.step-card:nth-child(5) { grid-column: 4 / span 3;  grid-row: 2; height: 300px; }
.step-card:nth-child(6) {
  grid-column: 7 / span 6;
  grid-row: 2;
  height: 300px;
  background: radial-gradient(ellipse at 75% 0%, rgba(167, 243, 208, 0.55) 0%, rgba(254, 249, 195, 0.38) 40%, rgba(191, 219, 254, 0.2) 58%, #ffffff 72%);
}

.step-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s ease,
              border-color 0.3s ease;
  cursor: default;
}
.step-card:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.09);
  border-color: #d0d0d0;
}

/* Ghost step number */
.step-card::before {
  content: attr(data-step);
  position: absolute;
  top: 16px;
  right: 24px;
  font-family: 'Poppins', sans-serif;
  font-size: 96px;
  font-weight: 700;
  color: var(--black);
  opacity: 0.035;
  line-height: 1;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.step-card:hover::before {
  opacity: 0.07;
}

.step-number {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.45;
  margin-bottom: 12px;
}
.step-card h3 {
  font-family: 'Nunito', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--black);
  line-height: 1.3;
  margin-bottom: 10px;
}
.step-card p {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.65;
}
.step-connector {
  display: none;
}

/* ── Bento step card: animated SVG graphic (cards 1 & 6) ── */
.step-graphic-wrap {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 56%;
  padding: 18px 26px 0;
  pointer-events: none;
  overflow: hidden;
  color: rgba(20, 55, 140, 0.26);
}
.step-graphic-wrap svg {
  width: 100%;
  height: 100%;
}
/* Card 6 — green tint to match its gradient */
.step-card:nth-child(6) .step-graphic-wrap {
  color: rgba(15, 90, 55, 0.26);
}

/* Shared SVG element strokes */
.sgn, .sgl, .sg-chart, .sgp, .sg-arrow { stroke: currentColor; fill: none; }
.sgd { fill: currentColor; stroke: none; }
.sg-area { fill: currentColor; stroke: none; opacity: 0.07; }

/* Node gentle pulse */
.sgn { animation: sg-node 3.6s ease-in-out infinite; }
.sgn-d1 { animation-delay: 0.2s; }
.sgn-d2 { animation-delay: 0.4s; }
.sgn-hub { animation-delay: 0.6s; }
.sgn-d3 { animation-delay: 1.1s; }
.sgn-d4 { animation-delay: 1.3s; }
@keyframes sg-node {
  0%, 100% { opacity: 0.2; }
  50%       { opacity: 0.7; }
}

/* Connecting lines: draw in then exit */
.sgl {
  stroke-width: 1.4;
  stroke-dasharray: var(--sl, 160);
  stroke-dashoffset: var(--sl, 160);
  animation: sg-line 3.6s ease-in-out infinite var(--sd, 0s);
}
@keyframes sg-line {
  0%,  5% { stroke-dashoffset: var(--sl, 160); opacity: 0; }
  16%      { opacity: 0.65; }
  55%, 68% { stroke-dashoffset: 0; opacity: 0.65; }
  82%,100% { stroke-dashoffset: calc(-1 * var(--sl, 160)); opacity: 0; }
}

/* Pulse dots */
.sgd { animation: sg-dot 3.6s ease-in-out infinite var(--dd, 0s); }
@keyframes sg-dot {
  0%,  12% { opacity: 0; }
  32%, 58% { opacity: 0.75; }
  72%,100% { opacity: 0; }
}

/* Chart line: draw and loop */
.sg-chart {
  stroke-width: 2;
  animation: sg-chart-draw 4.2s ease-in-out infinite;
}
@keyframes sg-chart-draw {
  0%,  5% { stroke-dashoffset: 430; opacity: 0; }
  16%      { opacity: 0.75; }
  62%, 75% { stroke-dashoffset: 0;   opacity: 0.75; }
  90%,100% { stroke-dashoffset: -430; opacity: 0; }
}

/* Data point appear */
.sgp {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: sg-point 4.2s ease-out infinite var(--pd, 0s);
}
@keyframes sg-point {
  0%,  20% { opacity: 0; transform: scale(0.2); }
  38%, 72% { opacity: 1; transform: scale(1); }
  86%,100% { opacity: 0; transform: scale(0.2); }
}

/* Arrow draw */
.sg-arrow {
  stroke-dasharray: 26;
  stroke-dashoffset: 26;
  animation: sg-arrow-draw 4.2s ease-out infinite;
}
@keyframes sg-arrow-draw {
  0%,  60% { stroke-dashoffset: 26; opacity: 0; }
  74%       { opacity: 0.75; }
  78%, 80% { stroke-dashoffset: 0; opacity: 0.75; }
  90%,100% { stroke-dashoffset: -26; opacity: 0; }
}

/* ============================================================
   FAQ
   ============================================================ */
#faq {
  padding: 0 var(--section-px) 120px;
  display: flex;
  justify-content: center;
}
.faq-inner {
  max-width: var(--max-width);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
}
.faq-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.faq-title h2 {
  font-size: 36px;
  letter-spacing: -3px;
  line-height: 1.2;
}
.faq-title p {
  font-size: 15px;
  color: var(--text-body);
  max-width: 400px;
}
.faq-list {
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
}
.faq-item {
  border-top: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--black);
  text-align: left;
}
.faq-icon {
  font-size: 22px;
  font-weight: 300;
  color: var(--text-body);
  flex-shrink: 0;
  transition: transform 0.25s ease;
  line-height: 1;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 20px;
}
.faq-answer p {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.65;
}

/* ============================================================
   BOTTOM CTA
   ============================================================ */
#contact {
  padding: 0 var(--section-px) 120px;
  display: flex;
  justify-content: center;
}
.cta-container {
  max-width: 600px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.cta-container h2 {
  font-size: 36px;
  letter-spacing: -3px;
  line-height: 1.2;
}
.cta-container p {
  font-size: 16px;
  color: var(--text-body);
  line-height: 1.55;
}

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
  background: var(--black);
  padding: 64px var(--section-px) 0;
}
.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* ── Brand column ── */
.footer-brand {
  flex: 0 0 240px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-brand img { filter: brightness(0) invert(1); height: 32px; width: auto; }
.footer-tagline {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
  line-height: 1.5;
  letter-spacing: 0.02em;
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}
.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.55);
  transition: background 0.18s, color 0.18s;
}
.footer-social-link:hover {
  background: var(--blue);
  color: var(--white);
}

/* ── Nav column ── */
.footer-nav {
  flex: 1;
  padding-top: 4px;
}
.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
  list-style: none;
}
.footer-nav a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  transition: color 0.15s;
}
.footer-nav a:hover { color: var(--white); }

/* ── Contact column ── */
.footer-contact {
  flex: 0 0 280px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 4px;
}
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  line-height: 1.6;
  transition: color 0.15s;
}
a.footer-contact-item:hover { color: rgba(255,255,255,0.95); }
.footer-contact-item svg {
  flex-shrink: 0;
  margin-top: 3px;
  opacity: 0.7;
}
.footer-address { cursor: default; }

/* ── Bottom bar ── */
.footer-bottom {
  padding: 20px 0;
}
.footer-bottom-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-bottom p {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}
.footer-bottom-links {
  display: flex;
  gap: 24px;
}
.footer-bottom-links a {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  transition: color 0.15s;
}
.footer-bottom-links a:hover { color: rgba(255,255,255,0.7); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* ── ≤ 1100px: large tablet ───────────────────────────────── */
@media (max-width: 1100px) {
  .features-two-col { gap: 40px; }
  .features-left { flex: 0 0 380px; max-width: 380px; }
  .extra-features-row { gap: 24px; }
}

/* ── ≤ 900px: tablet ─────────────────────────────────────── */
@media (max-width: 900px) {
  /* Section bottom padding: reduce from 120px */
  #extra-features, #pricing,
  #how-it-works, #faq, #contact { padding-bottom: 80px; }
  #features { padding: 80px var(--section-px) 64px; }

  /* Hero: stack text above dashboard */
  #hero { padding: 110px var(--section-px) 48px; min-height: auto; }
  .hero-inner { flex-direction: column; align-items: center; gap: 48px; }
  .hero-content {
    flex: none; max-width: 580px;
    align-items: center; text-align: center;
    padding-bottom: 0;
  }
  .hero-ctas { align-items: center; }
  .hero-dashboard { width: 100%; align-self: auto; }
  .hero-headline { font-size: 40px; letter-spacing: -1.8px; }

  /* Features: stack */
  .features-two-col { flex-direction: column; }
  .features-left { flex: none; max-width: 100%; }
  .features-right { width: 100%; }

  /* Extra features: 2×2 grid */
  .extra-features-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .extra-card { flex: none; }

  /* Pricing: 2 columns on tablet (not 1 — that's too narrow) */
  .pricing-grid { grid-template-columns: repeat(2, 1fr); max-width: none; }

  /* Steps: 2 columns, auto height so long titles don't get clipped */
  .steps-row { grid-template-columns: repeat(2, 1fr); }
  .step-card:nth-child(1),
  .step-card:nth-child(2),
  .step-card:nth-child(3),
  .step-card:nth-child(4),
  .step-card:nth-child(5),
  .step-card:nth-child(6) {
    grid-column: auto; grid-row: auto;
    height: auto; min-height: 280px;
  }

  /* Footer: stack */
  .footer-container { flex-direction: column; gap: 40px; }
  .footer-brand { flex: none; }
  .footer-contact { flex: none; flex-basis: auto; }
}

/* ── ≤ 768px: nav collapses ──────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: rgba(248, 248, 248, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 24px var(--section-px);
    gap: 20px;
    border-bottom: 1px solid var(--border);
    z-index: 9998;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  }
  .nav-links.open a { font-size: 16px; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
}

/* ── ≤ 640px: mobile ─────────────────────────────────────── */
@media (max-width: 640px) {
  :root { --section-px: 20px; }

  /* Section bottom padding: reduce further */
  #extra-features, #pricing,
  #how-it-works, #faq, #contact { padding-bottom: 60px; }
  #features { padding: 64px var(--section-px) 48px; }

  /* Section heading typography */
  .section-header h2,
  .features-title-block h2,
  .pricing-header h2,
  .how-title h2,
  .faq-title h2,
  .cta-container h2 {
    font-size: 26px;
    letter-spacing: -1px;
  }

  /* Hero */
  #hero { padding: 90px 20px 40px; }
  .hero-headline { font-size: 32px; letter-spacing: -1.2px; }
  .hero-subtext { font-size: 15px; }
  .hero-ctas { flex-direction: column; align-items: stretch; width: 100%; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .cta-btn { width: 100%; }
  .cta-btn-content { width: 100%; justify-content: center; }
  .cta-btn-shadow { left: 0; right: 0; }

  /* Extra features: 1 column */
  .extra-features-row { grid-template-columns: 1fr; }

  /* Pricing: 1 column, price font smaller */
  .pricing-grid { grid-template-columns: 1fr; }
  .price { font-size: 30px; }
  .pricing-card { padding: 24px 20px; }

  /* Steps: 1 column, compact */
  .steps-row { grid-template-columns: 1fr; gap: 16px; }
  .step-card:nth-child(1),
  .step-card:nth-child(2),
  .step-card:nth-child(3),
  .step-card:nth-child(4),
  .step-card:nth-child(5),
  .step-card:nth-child(6) {
    grid-column: auto; grid-row: auto;
    height: auto; min-height: 200px;
  }
  /* Card 1 has SVG + longer title — give it more room */
  .step-card:nth-child(1) { min-height: 280px; }
  .step-card { padding: 24px; }
  /* Disable hover transform on touch devices */
  @media (hover: none) {
    .step-card:hover {
      transform: none;
      box-shadow: none;
      border-color: var(--border);
    }
    .step-card:hover::before { opacity: 0.035; }
  }

  /* FAQ */
  .faq-question { font-size: 15px; }

  /* Footer bottom */
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer-container { gap: 32px; }
  .footer-brand { flex: none; }
  .footer-contact { flex: none; }

  /* Nav container padding */
  .nav-container { padding: 18px 20px; }
}

/* ============================================================
   FEATURE PANELS — NEW DESIGNS
   Panel 0: Financial Overview (KPI tiles + sparkline)
   Panel 1: Profit & Business Visibility (P&L rows)
   Panel 2: Compliance Readiness (arc + checklist)
   ============================================================ */

/* ── Panel 0: KPI Tiles ──────────────────────────────────────── */
.fov-tiles {
  display: flex;
  gap: 8px;
  margin: 14px 0 10px;
}
.fov-tile {
  flex: 1;
  background: #f5f7fb;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 10px;
  padding: 10px 12px;
}
.fov-tile--hi {
  background: rgba(0,156,255,0.06);
  border-color: rgba(0,156,255,0.18);
}
.fov-tile-label {
  font-family: 'Poppins', sans-serif;
  font-size: 10px;
  color: #999;
  margin: 0 0 3px;
}
.fov-tile-val {
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: #1a1a1a;
  margin: 0 0 3px;
}
.fov-tile-chg {
  font-family: 'Poppins', sans-serif;
  font-size: 10px;
  margin: 0;
}
.fov-tile-chg.up   { color: #00DB20; }
.fov-tile-chg.down { color: #ff4d4d; }

/* Sparkline */
.fov-spark {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 44px;
  margin-top: 6px;
  padding: 0 2px;
}
.fov-spark-bar {
  flex: 1;
  background: rgba(0,156,255,0.22);
  border-radius: 3px 3px 0 0;
  height: 0%;
  transition: none;
}
.fov-spark-bar--hi { background: #009CFF; }
.fov-spark-labels {
  display: flex;
  padding: 5px 2px 0;
}
.fov-spark-labels span {
  flex: 1;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: 9px;
  color: #bbb;
}

/* ── Panel 1: P&L Rows ───────────────────────────────────────── */
.fpl-rows {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 14px;
}
.fpl-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.fpl-label {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  color: #555;
  width: 108px;
  flex-shrink: 0;
}
.fpl-net-row .fpl-label {
  font-weight: 600;
  color: #1a1a1a;
}
.fpl-bar-wrap {
  flex: 1;
  height: 7px;
  background: rgba(0,0,0,0.05);
  border-radius: 4px;
  overflow: hidden;
}
.fpl-bar {
  height: 100%;
  width: 0%;
  border-radius: 4px;
  transition: none;
}
.fpl-amount {
  font-family: 'Nunito', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #333;
  width: 56px;
  text-align: right;
  flex-shrink: 0;
}
.fpl-cost {
  color: #aaa;
  font-weight: 400;
}
.fpl-divider {
  height: 1px;
  background: rgba(0,0,0,0.07);
  margin: 1px 0;
}

/* ── Panel 2: Compliance Arc + Checklist ─────────────────────── */
.fcmp-body {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 14px;
}
.fcmp-arc-wrap {
  position: relative;
  width: 110px;
  flex-shrink: 0;
}
.fcmp-arc-svg {
  width: 100%;
  display: block;
}
.fcmp-score {
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Nunito', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #009CFF;
  white-space: nowrap;
}
.fcmp-items {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
}
.fcmp-item {
  display: flex;
  align-items: center;
  gap: 7px;
}
.fcmp-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}
.fcmp-icon.fcmp-ready  { background: rgba(0,219,32,0.12); color: #00DB20; }
.fcmp-icon.fcmp-review { background: rgba(0,156,255,0.12); color: #009CFF; }
.fcmp-name {
  flex: 1;
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  color: #444;
}
.fcmp-badge {
  font-family: 'Poppins', sans-serif;
  font-size: 9px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  flex-shrink: 0;
}
.fcmp-badge.fcmp-ready  { background: rgba(0,219,32,0.1);  color: #00DB20; }
.fcmp-badge.fcmp-review { background: rgba(0,156,255,0.1); color: #009CFF; }

/* ============================================================
   DARK MODE — adapts to OS/browser preference automatically
   prefers-color-scheme: dark
   ============================================================ */
@media (prefers-color-scheme: dark) {

  /* ── CSS variable overrides ──────────────────────────────── */
  :root {
    --bg:         #111113;
    --white:      #1c1c1f;
    --black:      #f0f0f0;
    --text-dark:  #f0f0f0;
    --text-body:  rgba(240, 240, 240, 0.65);
    --text-muted: rgba(240, 240, 240, 0.65);
    --border:     rgba(255, 255, 255, 0.09);
  }

  /* ── Global heading color (overrides hardcoded #000) ─────── */
  h1, h2, h3, h4, h5, h6 { color: #f0f0f0; }

  /* ── Nav ─────────────────────────────────────────────────── */
  #navbar { background: rgba(17, 17, 19, 0.88); }
  .nav-links a { color: rgba(240,240,240,0.85); }
  /* Mobile open drawer */
  .nav-links.open {
    background: rgba(17, 17, 19, 0.97);
    border-bottom-color: rgba(255,255,255,0.08);
  }
  .nav-toggle span { background: rgba(240,240,240,0.85); }

  /* ── Hero ────────────────────────────────────────────────── */
  /* Dim the hero background image so text stays readable */
  .hero-bg img { opacity: 0.12; }
  /* Dark overlay with a deep blue shift — replaces the plain bg image */
  #hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
      radial-gradient(ellipse 80% 60% at 60% 30%, rgba(0, 80, 200, 0.28) 0%, transparent 70%),
      radial-gradient(ellipse 50% 40% at 20% 70%, rgba(0, 40, 120, 0.18) 0%, transparent 70%),
      linear-gradient(160deg, #0a0e1a 0%, #0d1b35 45%, #111113 100%);
    pointer-events: none;
  }
  /* Bottom fade transitions into dark bg — keep z-index below hero-inner (3) */
  .hero-blur-overlay {
    background: linear-gradient(to bottom,
      transparent 0%,
      rgba(17, 17, 19, 0.6) 50%,
      #111113 100%
    );
    height: 50%;
    z-index: 2;
  }
  /* Ensure hero text + buttons always sit above overlay and ::before layer */
  .hero-inner { z-index: 4; }

  /* Demo button: outline so it reads on dark bg */
  .hero-ctas .btn-secondary {
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    color: #f0f0f0;
  }
  .hero-ctas .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.55);
  }
  /* Dashboard card: dark glass */
  .dashboard-glass {
    background: rgba(20, 24, 38, 0.78);
    border-color: rgba(0, 156, 255, 0.15);
    box-shadow: 0 2px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0,156,255,0.06);
  }

  /* ── Ticker ──────────────────────────────────────────────── */
  .ticker-fade--left  { background: linear-gradient(90deg, #111113 0%, transparent 100%); }
  .ticker-fade--right { background: linear-gradient(90deg, transparent 0%, #111113 100%); }

  /* ── Section label pill ──────────────────────────────────── */
  .section-label {
    background: #1c1c1f;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  }

  /* ── Accordion (features) ────────────────────────────────── */
  .accordion-title { color: #f0f0f0; }
  .accordion-body p { color: var(--text-body); }

  /* ── Feature graphic panels ──────────────────────────────── */
  .fchart-panel {
    background: #1c1c1f;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  }
  .fchart-period { background: rgba(255,255,255,0.07); }

  /* Panel 0: KPI tiles */
  .fov-tile {
    background: #252529;
    border-color: rgba(255,255,255,0.07);
  }
  .fov-tile--hi {
    background: rgba(0,156,255,0.1);
    border-color: rgba(0,156,255,0.22);
  }
  .fov-tile-label { color: rgba(255,255,255,0.4); }
  .fov-tile-val   { color: #f0f0f0; }
  .fov-spark-bar  { background: rgba(0,156,255,0.18); }
  .fov-spark-labels span { color: rgba(255,255,255,0.3); }

  /* Panel 1: P&L rows */
  .fpl-label             { color: rgba(255,255,255,0.5); }
  .fpl-net-row .fpl-label { color: #f0f0f0; }
  .fpl-bar-wrap          { background: rgba(255,255,255,0.07); }
  .fpl-amount            { color: rgba(255,255,255,0.8); }
  .fpl-cost              { color: rgba(255,255,255,0.35); }
  .fpl-divider           { background: rgba(255,255,255,0.07); }
  .fbar-month            { color: rgba(255,255,255,0.3); }

  /* Panel 2: Invoice list */
  .finv-row {
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.06);
  }
  .finv-id     { color: rgba(255,255,255,0.4); }
  .finv-name   { color: #f0f0f0; }
  .finv-amount { color: #f0f0f0; }

  /* Panel 3: Compliance */
  .fcmp-name { color: rgba(255,255,255,0.65); }

  /* ── Extra feature cards ─────────────────────────────────── */
  .extra-icon {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
  }
  .extra-icon svg { stroke: rgba(255,255,255,0.85); }

  /* ── Testimonial cards ───────────────────────────────────── */
  .author-avatar {
    background: rgba(255,255,255,0.12);
    color: #f0f0f0;
  }
  /* ── Pricing ─────────────────────────────────────────────── */
  .pricing-card--featured { border-color: var(--green); }

  /* ── How It Works — bento step cards ────────────────────── */
  .step-card:nth-child(1) {
    background: radial-gradient(
      ellipse at 25% 0%,
      rgba(59, 130, 246, 0.22) 0%,
      rgba(234, 179, 8, 0.08) 42%,
      #1c1c1f 68%
    );
  }
  .step-card:nth-child(6) {
    background: radial-gradient(
      ellipse at 75% 0%,
      rgba(16, 185, 129, 0.22) 0%,
      rgba(234, 179, 8, 0.07) 40%,
      rgba(59, 130, 246, 0.1) 58%,
      #1c1c1f 72%
    );
  }
  .step-graphic-wrap { color: rgba(96, 165, 250, 0.45); }
  .step-card:nth-child(6) .step-graphic-wrap { color: rgba(52, 211, 153, 0.45); }
  .step-card::before { color: rgba(240,240,240,0.9); opacity: 0.03; }
  .step-card:hover::before { opacity: 0.06; }
  .step-card:hover { box-shadow: 0 24px 52px rgba(0,0,0,0.35); }

  /* ── FAQ ─────────────────────────────────────────────────── */
  .faq-icon { color: rgba(255,255,255,0.5); }
  .faq-answer p { color: var(--text-body); }

  /* ── Footer (already dark — minor polish) ────────────────── */
  #footer { background: #080809; }
  .footer-container { border-bottom-color: rgba(255,255,255,0.07); }

  /* ── Scrollbar (webkit) ──────────────────────────────────── */
  ::-webkit-scrollbar { width: 8px; }
  ::-webkit-scrollbar-track { background: #111113; }
  ::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }
  ::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.25); }
}
