/* ==========================================================================
   Section 11 — Final CTA · "Ready to see how Finflow fits your institution?"
   Ported from the original dfa.html "Let's talk" (#dfa-book): centred
   heading and one button over a white-to-blue wash, with a dashed arrow
   that curves from the cursor to the button (js/sections/final-cta.js).
   Copy is the wireframe's, so there is no kicker or subheading.
   Changes from the original: scoped .fc- classes, shared .btn component,
   theme-aware wash (dark mode).
   ========================================================================== */

.final-cta {
  --fc-bg:    #FAF8F4;
  --fc-dot:    rgba(110,92,64,0.20);   /* same as section 7 */

  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(96px, 12vw, 160px) var(--page-px);
  background: var(--fc-bg);            /* same warm paper as section 7 */
  border-top: 1px solid var(--border);
}
:root[data-theme="dark"] .final-cta {
  --fc-bg:     #071733;
  --fc-dot:    rgba(147,190,240,0.16);
}

/* Dot grid, the same notebook page as section 7: an even grid that fades
   only at the top and bottom edges (replaces the earlier grain) */
.final-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(circle, var(--fc-dot) 1.4px, transparent 1.6px);
  background-size: 24px 24px;
  background-position: center 12px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
}

.fc-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.fc-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.fc-title {
  margin-bottom: 36px;
  font-size: var(--fs-section-title);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.fc-cta { position: relative; z-index: 1; padding: 14px 28px; font-size: 15px; }



/* ─── "Finflow fits" ──────────────────────────────────────────────────────
   The phrase the eye should land on: brand blue, with a soft marker
   highlight that sweeps in behind the lower half of the words once, as
   the heading is revealed (0.35s after, 0.7s long). "your institution"
   stays plain ink, so it reads as the answer to the promise.
   Base state is highlighted (no JS / reduced motion).                    */
.fc-fit {
  color: var(--accent);
  background-image: linear-gradient(var(--fc-mark), var(--fc-mark));
  background-repeat: no-repeat;
  background-position: 0 88%;
  background-size: 100% 0.42em;
  padding: 0 0.08em;
  margin: 0 -0.08em;
  border-radius: 0.12em;
  -webkit-box-decoration-break: clone;
          box-decoration-break: clone;
  transition: background-size 0.7s cubic-bezier(0.65, 0, 0.35, 1) 0.35s;
}
.final-cta { --fc-mark: rgba(21,101,192,0.14); }
:root[data-theme="dark"] .final-cta { --fc-mark: rgba(111,177,242,0.22); }
html.has-js .fc-title:not(.is-visible) .fc-fit { background-size: 0% 0.42em; }

@media (prefers-reduced-motion: reduce) {
  .fc-fit { transition: none; }
}
