/*
 * FormVault Free Hero — [fv_free_hero] v3
 * Full-width two-column hero: left content + right floating document previews.
 */

/* ── Outer wrapper — breaks out of Blocksy container to full viewport width ── */
.fv-fh {
  background: linear-gradient(130deg, #0b1d5b 0%, #1a3799 38%, #2b5ce6 68%, #3b6ef5 100%);
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Prevent horizontal scrollbar caused by 100vw breakout */
body:has(.fv-fh) {
  overflow-x: hidden;
}

/* Allow ancestors to let the hero bleed past the container bounds */
.entry-content:has(.fv-fh),
.site-main:has(.fv-fh),
#primary:has(.fv-fh) {
  overflow: visible;
}

/* Sparkle dots scattered across background */
.fv-fh::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.75) 1.5px, transparent 1.5px),
    radial-gradient(circle, rgba(255,255,255,0.45) 1px,   transparent 1px),
    radial-gradient(circle, rgba(255,255,255,0.6)  1px,   transparent 1px),
    radial-gradient(circle, rgba(255,255,255,0.35) 1px,   transparent 1px);
  background-size: 260px 260px, 180px 180px, 320px 320px, 140px 140px;
  background-position: 40px 30px, 110px 95px, 200px 55px, 72px 210px;
  pointer-events: none;
}

/* Wave curve at bottom */
.fv-fh__wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  line-height: 0;
  z-index: 3;
}

.fv-fh__wave svg {
  display: block;
  width: 100%;
  height: 90px;
}

/* ── Inner two-column layout ──────────────────────────────────────────────── */
.fv-fh__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 48px;
  max-width: var(--theme-content-width, 1200px);
  margin: 0 auto;
  padding: 36px 40px 140px;
}

/* ── Left content ─────────────────────────────────────────────────────────── */
.fv-fh__content {
  flex: 1;
  min-width: 0;
}

/* Eyebrow pill */
.fv-fh__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.7px;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.fv-fh__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fbbf24;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(251,191,36,0.35);
  animation: fv-fh-pulse 2.2s ease-in-out infinite;
}

@keyframes fv-fh-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(251,191,36,0.35); }
  50%       { box-shadow: 0 0 0 6px rgba(251,191,36,0.15); }
}

/* Headline */
.fv-fh__headline {
  font-size: 46px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: #fff;
  margin: 0 0 14px;
}

.fv-fh__accent {
  color: #93c5fd;
}

/* Description */
.fv-fh__desc {
  font-size: 16px;
  color: rgba(255,255,255,0.82);
  line-height: 1.65;
  max-width: 480px;
  margin: 0 0 28px;
}

/* CTA buttons */
.fv-fh__btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.fv-fh__btn--primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 26px;
  background: #fff;
  color: #1e3a8a !important;
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none !important;
  border: 2px solid #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.22);
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}

.fv-fh__btn--primary:hover {
  background: #eff6ff;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.26);
}

.fv-fh__btn--secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 26px;
  background: rgba(255,255,255,0.08);
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none !important;
  border: 2px solid rgba(255,255,255,0.35);
  transition: background 0.15s, transform 0.15s;
  white-space: nowrap;
}

.fv-fh__btn--secondary:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-2px);
}

/* Trust checkmarks */
.fv-fh__checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 28px;
}

.fv-fh__check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255,255,255,0.88);
}

.fv-fh__check svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: rgba(255,255,255,0.65);
}

/* Social proof popup */
.fv-fh__social-proof {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 12px;
  padding: 10px 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.fv-fh__sp-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fv-fh__sp-icon svg {
  width: 18px;
  height: 18px;
}

.fv-fh__sp-text {
  font-size: 11px;
  color: #475569;
  line-height: 1.5;
}

.fv-fh__sp-name {
  display: block;
  color: #0f172a;
  font-weight: 700;
  font-size: 12px;
  line-height: 1.2;
  margin-bottom: 2px;
}

.fv-fh__sp-action {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}

.fv-fh__sp-time {
  color: #94a3b8;
}

/* ── Right: document preview stack ───────────────────────────────────────── */
.fv-fh__docs {
  position: relative;
  width: 500px;
  height: 360px;
  flex-shrink: 0;
}

/* Top-right stat badge */
.fv-fh__stat-badge {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 12px;
  padding: 10px 14px;
  z-index: 10;
}

.fv-fh__stat-icon {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}

.fv-fh__stat-icon svg { width: 18px; height: 18px; }

.fv-fh__stat-val {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.fv-fh__stat-lbl {
  font-size: 11px;
  color: rgba(255,255,255,0.75);
  line-height: 1;
}

/* Document card stack */
.fv-fh__doc-stack {
  position: absolute;
  inset: 55px 60px 60px 10px;
}

.fv-fh__doc {
  position: absolute;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.22);
  overflow: hidden;
  aspect-ratio: 8.5 / 11;
}

.fv-fh__doc--back {
  top: 0; right: 0;
  width: 50%;
  transform: rotate(5deg);
  transform-origin: bottom right;
  z-index: 1;
}

.fv-fh__doc--mid {
  top: 10px; left: 0;
  width: 50%;
  transform: rotate(-4deg);
  transform-origin: bottom left;
  z-index: 2;
}

.fv-fh__doc--front {
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 56%;
  z-index: 3;
  box-shadow: 0 24px 60px rgba(0,0,0,0.28);
}

/* Mock doc header */
.fv-fh__doc-head {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 7px 10px;
}

.fv-fh__doc-title {
  font-size: 8px;
  font-weight: 800;
  color: #334155;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0 0 2px;
}

.fv-fh__doc-subtitle {
  font-size: 7px;
  color: #94a3b8;
  margin: 0;
}

/* Mock doc body */
.fv-fh__doc-body {
  padding: 8px 10px;
}

.fv-fh__doc-row {
  display: flex;
  gap: 5px;
  margin-bottom: 5px;
}

.fv-fh__doc-line {
  height: 5px;
  background: #f1f5f9;
  border-radius: 3px;
  flex-shrink: 0;
}

.fv-fh__doc-line--a    { flex: 0 0 38%; }
.fv-fh__doc-line--b    { flex: 0 0 52%; }
.fv-fh__doc-line--c    { flex: 0 0 44%; }
.fv-fh__doc-line--d    { flex: 0 0 68%; }
.fv-fh__doc-line--e    { flex: 0 0 28%; }
.fv-fh__doc-line--full { flex: 1; }
.fv-fh__doc-line--dark { background: #e2e8f0; }
.fv-fh__doc-line--blue { background: #bfdbfe; }

/* Doc body text content */
.fv-fh__doc-text {
  font-size: 5.5px;
  color: #334155;
  line-height: 1.4;
  margin: 0 0 1.5px;
  overflow: hidden;
  white-space: nowrap;
}
.fv-fh__doc-text--bold  { font-weight: 700; color: #0f172a; }
.fv-fh__doc-text--sm    { font-size: 4.5px; color: #64748b; }
.fv-fh__doc-text--label {
  font-size: 4.5px;
  font-weight: 700;
  color: #1e3a8a;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-top: 3px;
  margin-bottom: 1px;
}
.fv-fh__doc-2col {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  margin-bottom: 2px;
}
.fv-fh__doc-2col > div { flex: 1; min-width: 0; }
.fv-fh__doc-divider { height: 1px; background: #e2e8f0; margin: 3px 0; }
.fv-fh__doc-footer-text {
  font-size: 5px;
  color: #94a3b8;
  font-style: italic;
  text-align: center;
  margin-top: 4px;
}

/* Doc table */
.fv-fh__doc-table {
  margin-top: 3px;
  border: 1px solid #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
}

.fv-fh__doc-trow {
  display: flex;
  gap: 2px;
  padding: 2px 3px;
  border-bottom: 1px solid #f1f5f9;
}

.fv-fh__doc-trow:last-child { border-bottom: none; }
.fv-fh__doc-trow--head { background: #eff6ff; }

.fv-fh__doc-tcell {
  flex: 1;
  font-size: 4.5px;
  color: #475569;
  overflow: hidden;
  white-space: nowrap;
  line-height: 1.5;
}

.fv-fh__doc-trow--head .fv-fh__doc-tcell {
  font-weight: 700;
  color: #1e3a8a;
  font-size: 4px;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

/* Bottom format badges */
.fv-fh__fmt-badges {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  z-index: 10;
}

.fv-fh__fmt-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 10px;
  padding: 8px 12px;
}

.fv-fh__fmt-badge svg { width: 16px; height: 16px; flex-shrink: 0; color: #fff; }

.fv-fh__fmt-badge-val {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  white-space: nowrap;
}

.fv-fh__fmt-badge-lbl {
  font-size: 10px;
  color: rgba(255,255,255,0.7);
  font-weight: 400;
  display: block;
  line-height: 1;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .fv-fh__inner {
    flex-direction: column-reverse;
    padding: 40px 24px 100px;
    gap: 32px;
  }

  .fv-fh__docs {
    width: 100%;
    height: 320px;
  }

  /* Center the 3-document stack on mobile, keeping its original width
     (desktop uses an offset inset of 10/60; symmetric 35/35 = same width, centered). */
  .fv-fh__doc-stack {
    left: 35px;
    right: 35px;
  }

  .fv-fh__headline { font-size: 34px; letter-spacing: -0.8px; }
  .fv-fh__content  { text-align: center; }

  .fv-fh__eyebrow  { margin-left: auto; margin-right: auto; }
  .fv-fh__desc     { max-width: 100%; margin-left: auto; margin-right: auto; }
  .fv-fh__btns     { justify-content: center; }
  .fv-fh__checks   { justify-content: center; }
  .fv-fh__social-proof { margin: 0 auto; }
}

@media (max-width: 520px) {
  .fv-fh__docs { height: 260px; }
  .fv-fh__headline { font-size: 27px; }
  .fv-fh__inner { padding: 32px 20px 90px; }
}
