/* FinTechCo site — shared styles (beyond styles.css) for marketing pages */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklch, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--border); }
.site-header .inner {
  max-width: 1280px; margin: 0 auto;
  padding: 14px 24px;
  display: flex; align-items: center; gap: 32px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; text-decoration: none; color: var(--text); }
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--green-600);
  display: grid; place-items: center;
  color: white;
}
nav.primary { display: flex; gap: 6px; }
nav.primary a {
  padding: 8px 14px;
  font-size: 14px; font-weight: 500;
  color: var(--text);
  border-radius: 999px;
  text-decoration: none;
  transition: background .15s;
}
nav.primary a:hover { background: var(--surface-2); }
nav.primary a.current { background: var(--surface-2); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.btn-sm { padding: 8px 14px; font-size: 13.5px; }
.link-btn {
  padding: 8px 14px; font-size: 13.5px; font-weight: 500;
  color: var(--text); border-radius: 999px;
  transition: background .15s; text-decoration: none;
  display: inline-flex; align-items: center;
}
.link-btn:hover { background: var(--surface-2); }

/* Section shell */
.section { max-width: 1280px; margin: 0 auto; padding: 80px 24px; }
.section-tight { padding: 48px 24px; }
.section-narrow { max-width: 960px; }

/* Typography */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px 5px 8px;
  background: var(--green-50);
  color: var(--green-700);
  border: 1px solid var(--green-100);
  border-radius: 999px;
  font-size: 12.5px; font-weight: 500;
  margin-bottom: 24px;
}
.eyebrow-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--green-500); display: grid; place-items: center; color: white; }

h1.display {
  font-size: clamp(42px, 6.8vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin: 0 0 24px;
}
h2.headline {
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin: 0 0 16px;
}
h3.sub {
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-weight: 600;
  margin: 0 0 10px;
}
.lead {
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--text-muted);
  line-height: 1.45;
  max-width: 56ch;
}
.kicker { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--green-700); margin-bottom: 14px; }

/* Page hero shell */
.page-hero {
  padding: 64px 24px 40px;
  max-width: 1280px; margin: 0 auto;
}
.page-hero-compact {
  text-align: center;
  max-width: 820px; margin: 0 auto;
  padding: 72px 24px 32px;
}

/* Section label sep */
.sec-label {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 32px;
  font-size: 13px; font-weight: 500; color: var(--text-muted);
}
.sec-label::before {
  content: ''; width: 28px; height: 1px; background: var(--text);
}

/* Card variants */
.soft-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px;
}
.tinted-card {
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: var(--r-xl);
  padding: 32px;
}
.dark-card {
  background: oklch(0.22 0.02 155);
  color: white;
  border-radius: var(--r-xl);
  padding: 40px;
}

/* Footer — shared */
footer.site {
  border-top: 1px solid var(--border);
  margin-top: 80px; padding: 56px 24px 36px;
  background: var(--bg-soft);
}
footer.site .inner { max-width: 1280px; margin: 0 auto; }
footer.site .cols { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 40px; padding-bottom: 40px; }
footer.site h5 { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 14px; }
footer.site ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
footer.site a { color: var(--text); text-decoration: none; font-size: 14px; }
footer.site a:hover { color: var(--green-700); }
.legal { display: flex; justify-content: space-between; padding-top: 28px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--text-muted); gap: 24px; flex-wrap: wrap; }
.legal p { margin: 0; max-width: 70ch; line-height: 1.5; }

/* Feature pairs */
.split-feature {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
  padding: 40px 0;
}
.split-feature.reverse > :first-child { order: 2; }
.split-feature .viz {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px;
  min-height: 360px;
  position: relative;
  overflow: hidden;
}

/* Bullet row */
.bullets { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 12px; }
.bullets li { font-size: 15px; display: flex; gap: 12px; align-items: flex-start; color: var(--text); }
.check-bullet {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--green-500); color: white;
  display: grid; place-items: center; flex-shrink: 0; margin-top: 2px;
}

/* Login modal */
.modal-overlay {
  position: fixed; inset: 0;
  background: oklch(0.1 0.01 155 / 0.5);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  z-index: 100;
  animation: fade .2s ease;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  width: 100%; max-width: 420px;
  padding: 40px 36px;
  box-shadow: var(--shadow-lg);
  animation: pop .18s ease-out both;
  position: relative;
}
@keyframes pop { from { opacity: 0; } to { opacity: 1; } }
.modal h3 { font-size: 24px; font-weight: 600; margin: 0 0 6px; letter-spacing: -0.02em; }
.modal-sub { font-size: 14px; color: var(--text-muted); margin: 0 0 28px; }
.modal label { font-size: 12px; font-weight: 500; color: var(--text-muted); display: block; margin-bottom: 6px; }
.modal .input { margin-bottom: 14px; }
.modal-close { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; display: grid; place-items: center; color: var(--text-muted); border-radius: 50%; }
.modal-close:hover { background: var(--surface-2); }
.divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; font-size: 12px; color: var(--text-muted); }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.oauth-btn {
  width: 100%; padding: 11px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface); font-size: 14px; font-weight: 500;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-bottom: 8px; transition: background .15s; text-decoration: none; color: var(--text);
}
.oauth-btn:hover { background: var(--surface-2); }

/* CTA strip */
.cta-strip {
  margin: 80px auto; max-width: 1280px; padding: 0 24px;
}
.cta-inner {
  background: var(--text); color: var(--bg);
  border-radius: var(--r-xl);
  padding: 56px 48px;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center;
}
.cta-inner h2 { color: var(--bg); margin: 0; font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.02em; line-height: 1.05; font-weight: 600; }
.cta-inner p { color: oklch(0.78 0.01 155); margin: 10px 0 0; font-size: 16px; max-width: 56ch; }
.cta-inner .actions { display: flex; gap: 10px; justify-self: end; }
.cta-inner .btn-primary { background: var(--green-500); }
.cta-inner .btn-primary:hover { background: var(--green-400); }
.cta-inner .btn-ghost { background: transparent; border-color: oklch(0.35 0.01 155); color: var(--bg); }
.cta-inner .btn-ghost:hover { background: oklch(0.25 0.01 155); }

/* Responsive */
@media (max-width: 960px) {
  nav.primary { display: none; }
  .split-feature { grid-template-columns: 1fr; gap: 32px; }
  .split-feature.reverse > :first-child { order: 0; }
  footer.site .cols { grid-template-columns: 1fr 1fr; }
  .cta-inner { grid-template-columns: 1fr; padding: 36px 28px; }
  .cta-inner .actions { justify-self: start; }
}

/* ── Page transitions ─────────────────────────────── */
@keyframes ftc-page-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
body { animation: ftc-page-in 0.2s ease; }
body.ftc-leaving {
  animation: none !important;
  opacity: 0 !important;
  transform: translateY(-6px) !important;
  transition: opacity 0.18s ease, transform 0.18s ease !important;
  pointer-events: none;
}

/* ── Scroll reveal ────────────────────────────────── */
.ftc-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.ftc-reveal.ftc-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Login error state ────────────────────────────── */
.login-error {
  font-size: 13px;
  color: var(--danger);
  margin: -8px 0 10px;
  display: none;
}
