/* =============================================
   FibSetups Design System (marketing)
   White-dominant fintech polish: Inter everywhere
   (tabular numerals), sapphire #0F766E accent,
   layered shadows, confident near-black footer.
   The red/gold/sapphire bars logo mark is the only
   place red and gold appear as accents.
   ============================================= */

:root {
  /* Brand */
  --brand-900: #083F3A;
  --brand-800: #0B5D57;
  --brand: #0F766E;
  --brand-600: #128C82;
  --brand-500: #2AA69B;

  /* Paper */
  --paper: #ffffff;
  --paper-2: #F7F9F9;
  --paper-3: #F1F4F4;

  /* Ink */
  --ink-900: #101418;
  --ink-700: #2E3740;
  --ink-500: #4C5660;
  --ink-400: #7C8893;
  --ink-300: #A4ADB6;

  /* Hairlines */
  --line: #E9EDEE;
  --line-strong: #DDE3E4;

  /* Data */
  --green: #1FA15B;
  --green-ink: #128A4E;
  --red: #D63B34;
  --red-ink: #B42B25;

  /* Night (the one confident dark section color, teal-cast) */
  --night: #0E1517;
  --night-2: #14201F;

  /* Type: Inter only; numerals use tabular-nums */
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

  /* Radii */
  --r-sm: 8px;
  --r-md: 11px;
  --r-lg: 14px;
  --r-xl: 20px;

  /* Layered shadow system (teal-tinted neutrals) */
  --shadow-xs: 0 1px 2px rgba(13, 35, 32, .05);
  --shadow-sm: 0 1px 2px rgba(13, 35, 32, .05), 0 3px 8px -2px rgba(13, 35, 32, .07);
  --shadow-md: 0 1px 2px rgba(13, 35, 32, .05), 0 6px 16px -4px rgba(13, 35, 32, .09), 0 16px 32px -16px rgba(13, 35, 32, .12);
  --shadow-lg: 0 2px 4px rgba(13, 35, 32, .05), 0 12px 24px -8px rgba(13, 35, 32, .1), 0 32px 64px -24px rgba(13, 35, 32, .18);
  --shadow-xl: 0 2px 4px rgba(13, 35, 32, .06), 0 18px 36px -12px rgba(13, 35, 32, .14), 0 48px 96px -28px rgba(13, 35, 32, .26);
}

/* ===== BASE ===== */
body.fibu-page { margin: 0; padding: 0; font-family: var(--sans); font-size: 17px; background: var(--paper); color: var(--ink-900); -webkit-font-smoothing: antialiased; line-height: 1.6; font-variant-numeric: tabular-nums; font-weight: 500; }

/* ===== BUTTONS (confident, micro-transitions) ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 17px;
  border-radius: var(--r-md);
  font-family: var(--sans);
  font-size: 13.5px; font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-xs); }
.btn-primary:hover { background: var(--brand-800); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-ghost { background: #fff; color: var(--ink-700); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); }
.btn-dark { background: var(--ink-900); color: #fff; }
.btn-dark:hover { background: #000; transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) {
  .btn, .btn:hover, .btn:active { transform: none; }
}

/* ===== NAV (white, hairline) ===== */
p:has(+ .v2-nav) { display: none; }

.v2-nav {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  transition: background .2s ease, box-shadow .2s ease;
}
.v2-nav.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  box-shadow: 0 1px 0 var(--line), 0 8px 24px -16px rgba(13, 35, 32, .14);
}
.v2-nav .nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 32px; max-width: 1280px; box-sizing: content-box; margin: 0 auto;
  padding-left: 32px; padding-right: 32px;
}
.v2-nav .nav-links { display: flex; align-items: center; gap: 28px; }
.v2-nav .nav-links a { display: inline-flex; align-items: center; gap: 7px; font-size: 15px; color: var(--ink-700); text-decoration: none; font-weight: 600; letter-spacing: -.005em; transition: color .15s ease; }
.v2-nav .nav-links a:hover { color: var(--brand); }
/* active top-level link + lit Platform dropdown when you are on one of its pages */
.v2-nav .nav-links a.nav-top.is-active,
.v2-nav .nav-links .v2-dropdown.is-active > .v2-dropdown-trigger { color: var(--ink-900); font-weight: 700; }
@media (max-width: 820px) { .v2-nav .nav-links { display: none; } }

.v2-nav .logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink-900); }
.v2-nav .logo-name { font-size: 17px; letter-spacing: -0.02em; font-weight: 800; }
.v2-nav .logo-name span { color: var(--brand); }

/* ===== FOOTER (near-black, teal-cast) ===== */
.v2-footer {
  background: linear-gradient(180deg, var(--night) 0%, #0B1112 100%);
  color: rgba(228, 232, 235, .72);
  padding: 64px 0 32px;
  position: relative; z-index: 2;
  font-family: var(--sans);
}
.v2-footer .footer-inner { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.v2-footer .ft-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 980px) { .v2-footer .ft-grid { grid-template-columns: 1fr 1fr; } }
.v2-footer .ft-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.v2-footer .ft-logo .logo-name { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; color: #fff; }
.v2-footer .ft-col-head { font-size: 11px; font-weight: 700; color: rgba(228,232,235,.45); text-transform: uppercase; letter-spacing: .14em; margin-bottom: 14px; }
.v2-footer .ft-links { display: flex; flex-direction: column; gap: 8px; }
.v2-footer .ft-links a { color: rgba(228,232,235,.8); text-decoration: none; font-size: 13px; font-weight: 500; transition: color .15s ease; }
.v2-footer .ft-links a:hover { color: #fff; }

.v2-footer .ft-disclaimer { margin-top: 48px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.08); font-size: 11px; color: rgba(228,232,235,.38); line-height: 1.7; }
.v2-footer .ft-disclaimer p { margin: 0 0 12px; }
.v2-footer .ft-disclaimer a { color: rgba(228,232,235,.52); text-decoration: underline; }
.v2-footer .ft-disclaimer strong { color: rgba(228,232,235,.72); font-weight: 600; }
.v2-footer .ft-bottom { margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; font-weight: 500; letter-spacing: .02em; color: rgba(228,232,235,.45); }
.v2-footer .ft-bottom a { color: rgba(228,232,235,.45); text-decoration: none; }

/* Bars logo mark (the red/gold/teal SVG) */
.logo-mark { width: 36px; height: 27px; display: inline-flex; background: none !important; border: none !important; }
.logo-mark svg { width: 100%; height: 100%; display: block; }

/* ===== SHARED: browser-chrome screenshot frame ===== */
.sq-frame {
  position: relative;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.sq-frame-bar {
  display: flex; align-items: center; gap: 12px;
  height: 38px; padding: 0 14px;
  background: linear-gradient(180deg, #FBFCFC 0%, #F3F6F6 100%);
  border-bottom: 1px solid var(--line);
}
.sq-frame-bar .fb-ctl { display: flex; gap: 6px; flex: none; }
.sq-frame-bar .fb-ctl i { width: 10px; height: 10px; border-radius: 50%; background: #D9DFE1; border: 1px solid #CFD6D8; display: block; }
.sq-frame-bar .fb-url {
  flex: 1; max-width: 360px; margin: 0 auto;
  text-align: center; font-size: 11px; font-weight: 600; letter-spacing: .02em;
  color: var(--ink-400);
  background: #fff; border: 1px solid var(--line);
  border-radius: 7px; padding: 4px 14px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sq-frame-bar .fb-spc { flex: none; width: 48px; }
.sq-frame img, .sq-frame video { display: block; width: 100%; height: auto; }
/* tall app screenshots cropped to a landscape window inside the frame */
.sq-frame img.sq-crop { aspect-ratio: 4 / 3; object-fit: cover; object-position: center top; }
@media (max-width: 600px) {
  .sq-frame-bar { height: 32px; padding: 0 10px; }
  .sq-frame-bar .fb-spc { width: 32px; }
}

/* ===== PREMIUM FRAMED-SCREENSHOT STAGE: refined chrome + floating cards + bg graphics ===== */
/* Positioning context so floating cards + background graphics sit around the frame. */
.sq-stage { position: relative; }
.sq-stage .sq-frame { position: relative; z-index: 2; }

/* refined chrome: a lock glyph in the url pill, an expand glyph on the right */
.sq-frame-bar .fb-url { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.sq-frame-bar .fb-lock { width: 10px; height: 10px; flex: none; opacity: .5; }
.sq-frame-bar .fb-exp { flex: none; width: 26px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink-400); }
.sq-frame-bar .fb-exp svg { width: 13px; height: 13px; opacity: .5; }

/* bigger, softer, more premium frame (layered shadow with a teal underglow) */
.sq-frame-xl {
  border-radius: 18px;
  box-shadow: 0 2px 6px rgba(16,24,32,.04),
              0 18px 50px -14px rgba(16,24,32,.22),
              0 44px 90px -34px rgba(15,118,110,.20);
}

/* background graphics behind the frame: diagonal hatch (lower-left) + gradient bloom (upper-right) */
.sq-bg-graphics { display: none; }  /* removed the background gradient/hatch per feedback */
.sq-bg-graphics-off { position: absolute; inset: -7% -9% -11% -9%; z-index: 0; pointer-events: none; }
.sq-bg-graphics::before {
  content: ""; position: absolute; left: -1%; bottom: -3%; width: 46%; height: 64%; border-radius: 16px;
  background-image: repeating-linear-gradient(135deg, rgba(226,59,46,.16) 0 1.5px, transparent 1.5px 10px);
  -webkit-mask-image: linear-gradient(135deg, #000 0%, transparent 72%);
          mask-image: linear-gradient(135deg, #000 0%, transparent 72%);
}
.sq-bg-graphics::after {
  content: ""; position: absolute; right: -5%; top: -9%; width: 54%; height: 62%; border-radius: 50%;
  background: radial-gradient(120% 120% at 78% 22%, rgba(20,154,183,.22) 0%, rgba(15,118,110,.10) 38%, transparent 70%);
}

/* floating accent cards that pop off the frame edges.
   Scoped under .sq-stage so they beat the .sqlp and .sqfp universal reset
   (margin 0 / padding 0), which would otherwise zero the padding. */
.sq-stage .sq-float {
  position: absolute; z-index: 3; background: #fff;
  border: 1px solid rgba(16,24,32,.12); border-radius: 16px;
  box-shadow: 0 26px 56px -16px rgba(16,24,32,.36), 0 6px 16px rgba(16,24,32,.10);
  padding: 22px 26px;
}
.sq-stage .sq-float-tl { top: 8%; left: -7%; }
.sq-stage .sq-float-br { bottom: 7%; right: -7%; }
.sq-stage .sqf-head { display: flex; align-items: center; gap: 10px; font-size: 15.5px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.sq-stage .sqf-grade { font-size: 13px; font-weight: 800; padding: 3px 9px; border-radius: 7px; line-height: 1.3; }
.sq-stage .sqf-grade.ap { background: #0F766E; color: #fff; }
.sq-stage .sqf-sub { margin-top: 9px; font-size: 13px; line-height: 1.5; color: var(--ink2); font-variant-numeric: tabular-nums; }
.sq-stage .sqf-stat { font-size: 32px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.sq-stage .sqf-stat .u { font-size: .56em; color: #1FA15B; font-weight: 700; margin-left: 2px; }
.sq-stage .sqf-cap { margin-top: 9px; font-size: 12.5px; color: var(--ink2); }

@media (max-width: 860px) {
  .sq-stage .sq-float-tl { left: 1%; top: 5%; }
  .sq-stage .sq-float-br { right: 1%; bottom: 5%; }
  .sq-stage .sq-float { padding: 16px 18px; }
  .sq-stage .sqf-stat { font-size: 22px; }
}
@media (max-width: 600px) {
  .sq-float { display: none; }       /* avoid clutter on phones */
  .sq-bg-graphics { display: none; }
}

/* ===== SHARED: scroll reveal primitives (gated on .fibm-js) ===== */
html.fibm-js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .65s cubic-bezier(.22,.61,.36,1), transform .65s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}
html.fibm-js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html.fibm-js [data-reveal] { opacity: 1; transform: none; transition: none; }
}
