@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700&display=swap');
:root{--font-ui:"Figtree","Geist",ui-sans-serif,system-ui,Arial,sans-serif}
.text-ink-soft{color:#3C4A51 !important}
/* Nav polish: hover states, current-page marker, How-it-works dropdown. Desktop only for the panel. */

/* Link hover: vermilion underline grows in, no grey pill */
header nav a {
  transition: color .18s ease;
}
header nav a::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: #D9472B;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s cubic-bezier(.23, 1, .32, 1);
}
header nav a:hover {
  color: #142126;
}
header nav a:hover::before {
  transform: scaleX(1);
}
/* Current page marker, driven by html[data-path] set in nav.js (no React-owned class touched) */
html[data-path="/how-it-works/"] header nav a[href="/how-it-works/"],
html[data-path="/pricing/"] header nav a[href="/pricing/"],
html[data-path="/about/"] header nav a[href="/about/"],
html[data-path="/integrations/"] header nav a[href="/integrations/"] {
  color: #142126;
}
html[data-path="/how-it-works/"] header nav a[href="/how-it-works/"]::before,
html[data-path="/pricing/"] header nav a[href="/pricing/"]::before,
html[data-path="/about/"] header nav a[href="/about/"]::before {
  transform: scaleX(1);
}

@media (hover: hover) and (pointer: fine) and (min-width: 1024px) {
  /* Chevron on the dropdown trigger, pure CSS so the React-owned anchor is untouched */
  header nav a[href="/how-it-works/"]::after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-left: 7px;
    border-right: 1.6px solid currentColor;
    border-bottom: 1.6px solid currentColor;
    transform: rotate(45deg) translate(-1px, -1px);
    transition: transform .2s ease;
    vertical-align: 2px;
  }
  html.fwnav-open header nav a[href="/how-it-works/"] {
    color: #142126;
  }
  html.fwnav-open header nav a[href="/how-it-works/"]::before {
    transform: scaleX(1);
  }
  html.fwnav-open header nav a[href="/how-it-works/"]::after {
    transform: rotate(-135deg) translate(-1px, -1px);
  }
}

/* Log in link beside the Apply pill */
.fwnav-login {
  font-size: 14.5px;
  font-weight: 600;
  color: #44565D;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background-color .18s ease, color .18s ease;
}
.fwnav-login:hover { color: #D9472B; }

/* Lift the grey surfaces: same shapes, less wash */
.vsurf { background: radial-gradient(1200px 800px at 68% 42%, #fff 0, #fafcfc 55%, #f2f7f8 100%) !important; }
.bg-light-bg { background-color: #f4f8f9 !important; }

/* The panel */
.fwnav-panel {
  position: fixed;
  top: 76px;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  width: min(920px, calc(100vw - 48px));
  background: #fff;
  border: 1px solid rgba(20, 33, 38, .08);
  border-radius: 20px;
  box-shadow: 0 24px 60px -18px rgba(20, 33, 38, .22), 0 4px 14px rgba(20, 33, 38, .06);
  padding: 26px;
  display: none;
  grid-template-columns: 1.15fr 1fr 1.1fr;
  gap: 26px;
  z-index: 998;
  font-family: var(--font-ui, "Geist", ui-sans-serif, system-ui, Arial, sans-serif);
  opacity: 0;
  transition: opacity .18s ease, transform .22s cubic-bezier(.23, 1, .32, 1);
}
html.fwnav-open .fwnav-panel {
  display: grid;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
@media (max-width: 1023px), (hover: none) {
  .fwnav-panel { display: none !important; }
}

.fwnav-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #BB5540;
  margin: 0 0 12px;
}
.fwnav-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 9px 10px;
  margin: 0 -10px;
  border-radius: 12px;
  text-decoration: none;
  transition: background-color .16s ease;
}
.fwnav-item:hover { background: #FBF1ED; }
.fwnav-ico {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #FBEFEB;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fwnav-ico img { width: 20px; height: 20px; display: block; }
.fwnav-ico svg { width: 19px; height: 19px; stroke: #D9472B; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fwnav-t { font-size: 15px; font-weight: 600; color: #142126; line-height: 1.25; }
.fwnav-s { font-size: 13px; color: #5A6B71; line-height: 1.45; margin-top: 2px; }

.fwnav-intg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.fwnav-intg a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 4px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 600;
  color: #142126;
  transition: background-color .16s ease;
}
.fwnav-intg a:hover { background: #FBF1ED; color: #142126; }
.fwnav-intg img { width: 22px; height: 22px; }
.fwnav-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: #D9472B;
  text-decoration: none;
}
.fwnav-all:hover { text-decoration: underline; }

.fwnav-card {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  text-decoration: none;
  background: #142126;
  min-height: 100%;
}
.fwnav-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  object-position: top;
  display: block;
  opacity: .92;
}
.fwnav-card-body { padding: 14px 16px 16px; }
.fwnav-card-k {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #7FD1C0;
}
.fwnav-card-t { font-size: 15px; font-weight: 600; color: #fff; margin-top: 4px; line-height: 1.35; }
.fwnav-card-a { display: inline-flex; align-items: center; gap: 5px; font-size: 13.5px; font-weight: 600; color: #fff; margin-top: 10px; }
.fwnav-card:hover .fwnav-card-a { text-decoration: underline; }
