/* ==========================================================================
   FinMighty — Design System (Phase 0)
   Shared across every page. Do not fork this file per-page — extend it.
   ========================================================================== */

:root {
  /* ---- Brand colors (matched to logo) ---- */
  --color-navy: #14245c;          /* logo text / darkest headings */
  --color-primary: #0035c1;       /* primary = logo's dark blue "F" — used on all card/form/section buttons */
  --color-primary-dark: #00298f;  /* hover state for primary */
  --color-primary-light: #eaf0fd; /* pale blue section backgrounds */

  --color-secondary: #6fb1ff;         /* secondary = logo's sky blue accent — used only on CTA/advertisement buttons (Get Started, Talk to us, Get in Touch) */
  --color-secondary-dark: #4a9bff;    /* hover state for secondary */
  --color-secondary-text: #14245c;    /* navy text on secondary buttons for readable contrast */

  /* ---- Accent colors (Investment / Loan / Insurance) ---- */
  --color-invest: #1a5fd0;        /* investment blue */
  --color-invest-bg: #eaf1fd;
  --color-loan: #5489cb;          /* loan pink/red */
  --color-loan-bg: #fdecf1;
  --color-insurance: #396b7c;     /* insurance green */
  --color-insurance-bg: #e9f7f1;

  /* ---- Neutrals ---- */
  --color-text: #222b3a;
  --color-text-muted: #5c6579;
  --color-text-faint: #8891a3;
  --color-border: #e4e8f0;
  --color-bg: #ffffff;
  --color-bg-alt: #f6f9fd;
  --color-footer-bg: #202b52;
  --color-footer-text: #b9c2df;
  --color-footer-border: #24316e;

  /* ---- Typography ---- */
  --font-heading: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  /* ---- Radius / shadow ---- */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --shadow-card: 0 4px 24px rgba(20, 36, 92, 0.07);
  --shadow-card-hover: 0 10px 32px rgba(20, 36, 92, 0.12);

  /* ---- Layout ---- */
  --container-width: 1360px;
  --header-height: 80px;
}

/* ---- Reset ---- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: var(--header-height); }
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-navy);
  line-height: 1.25;
  font-weight: 600;
}
:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 48px 0;
}
.section--tight { padding: 32px 0; }
.section--alt { background: var(--color-bg-alt); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-primary);
  background: var(--color-primary-light);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}

.section-title {
  text-align: center;
  font-size: 30px;
  margin-bottom: 8px;
}
.section-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 16px;
  max-width: 560px;
  margin: 0 auto 30px;
}
.section-heading-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 8px;
}
.section-heading-row .rule {
  width: 40px;
  height: 2px;
  background: var(--color-border);
}
.section-heading-row h2 { font-size: 26px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover { background: var(--color-primary-dark); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}
.btn-outline:hover { background: var(--color-primary-light); }
.btn-secondary {
  background: var(--color-secondary);
  color: var(--color-secondary-text);
}
.btn-secondary:hover { background: var(--color-secondary-dark); transform: translateY(-1px); }
.btn-white {
  background: #fff;
  color: var(--color-primary);
}
.btn-white:hover { background: #eef3fd; }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---- Global card hover styling ---- */
.service-card,
.solution-card,
.value-card,
.contact-info-card,
.insight-card,
.reach-card,
.insurer-badge,
.store-badge,
.trust-item {
  transition: background-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
  border: 1px solid transparent;
}
.service-card:hover,
.solution-card:hover,
.value-card:hover,
.contact-info-card:hover,
.insight-card:hover,
.reach-card:hover,
.insurer-badge:hover,
.store-badge:hover,
.trust-item:hover {
  background-color: var(--color-primary-light) !important;
  border-color: rgba(26, 63, 176, 0.18);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}
/* Icon chips keep their own accent color even while the card behind them turns light blue */
.service-card:hover .service-card__icon,
.solution-card:hover .solution-card__icon {
  transform: scale(1.06);
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-navy);
  border-bottom: none;
  height: var(--header-height);
  display: flex;
  align-items: center;
  box-shadow: 0 2px 20px rgba(6, 14, 40, 0.22);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-logo__mark {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
  background: #fff;
  border-radius: 50%;
  padding: 5px;
}
.site-logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.site-logo__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 21px;
  color: #ffffff;
}
.site-logo__tagline {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
}

/* ---- Nav is a dropdown menu at every screen size, opened via the hamburger ---- */
.site-nav {
  display: none;
  position: absolute;
  top: calc(var(--header-height) + 12px);
  right: 24px;
  left: auto;
  min-width: 230px;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card-hover);
  padding: 8px;
  max-height: calc(100vh - var(--header-height) - 24px);
  overflow-y: auto;
  z-index: 99;
}
.site-nav.is-open { display: flex; }
.site-nav a {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  position: relative;
  flex: none;
  text-align: left;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, background 0.2s ease;
}
.site-nav a:hover { color: var(--color-primary); background: var(--color-bg-alt); }
.site-nav a.is-active { color: var(--color-primary); background: var(--color-bg-alt); }
.site-nav a.is-active::after { display: none; }

/* ---- Right-side cluster: pill CTA + hamburger, grouped together ---- */
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.header-cta { flex-shrink: 0; }
.header-cta .btn {
  border-radius: var(--radius-pill);
  padding: 12px 24px;
}

.nav-toggle {
  display: flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  transition: background 0.2s ease;
}
.nav-toggle:hover { background: rgba(255, 255, 255, 0.18); }
.nav-toggle svg path { stroke: #ffffff; }

@media (max-width: 1024px) {
  .site-header {
    height: auto;
    padding: 12px 0;
    position: sticky;
  }
  .site-header .container {
    position: relative;
    flex-wrap: nowrap;
  }
  .site-nav { right: 16px; }
  .header-cta .btn {
    padding: 10px 18px;
    min-width: 0;
    white-space: nowrap;
  }
}

@media (max-width: 640px) {
  .site-header .container { gap: 8px; }
  .header-cta .btn span { display: none; }
  .header-cta .btn { padding: 10px; }
  .site-nav { left: 16px; right: 16px; min-width: 0; }
}

@media (max-width: 400px) {
  .site-logo__mark { width: 40px; height: 40px; }
  .site-logo__tagline { display: none; }
  .site-logo__name { font-size: 16px; }
  .site-header .container { gap: 6px; }
  .header-right { gap: 8px; }
  .nav-toggle { width: 38px; height: 38px; }
  .header-cta .btn { width: 38px; height: 38px; padding: 0; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 8px 0 16px;
  position: relative;
  overflow: visible;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(135deg, var(--color-navy) 0%, #1b2f78 100%);
  border: 1px solid var(--color-footer-border);
  border-radius: var(--radius-lg);
  padding: 34px 40px;
  min-height: 128px;
  margin: -70px 0 32px;
  box-shadow: 0 16px 40px rgba(13, 26, 75, 0.28);
  position: relative;
  width: 100%;
  z-index: 2;
  flex-wrap: wrap;
}
@media (max-width: 900px) {
  .footer-top {
    margin: -56px 0 28px;
    padding: 26px 24px;
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 560px) {
  .footer-top { margin: -44px 0 24px; }
}
.footer-top__text h3 { color: #fff; font-size: 24px; margin-bottom: 6px; line-height: 1.15; }
.footer-top__text p { color: var(--color-footer-text); font-size: 13.5px; line-height: 1.4; margin: 0; }
.footer-top__contact {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-top__contact-item { display: flex; align-items: center; gap: 8px; }
.footer-top__contact-item strong { display: block; color: #fff; font-size: 13.5px; }
.footer-top__contact-item span { font-size: 11.5px; line-height: 1.2; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 16px;
  padding-bottom: 12px;
}
.footer-brand .site-logo__name { color: #fff; }
.footer-brand .site-logo__tagline { color: var(--color-footer-text); }
.footer-brand p {
  font-size: 12.8px;
  margin-top: 8px;
  color: var(--color-footer-text);
}
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.footer-social a {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease;
}
.footer-social a:hover { background: var(--color-primary); }

.footer-col h4 {
  color: #fff;
  font-size: 14px;
  margin-bottom: 12px;
  font-family: var(--font-heading);
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  font-size: 13px;
  color: var(--color-footer-text);
  transition: color 0.2s ease;
}
.footer-col ul li a:hover { color: #fff; }

.footer-col--contact ul li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--color-footer-text);
}

.footer-bottom {
  border-top: 1px solid var(--color-footer-border);
  padding: 10px 0;
}
.footer-bottom__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--color-footer-text);
}
.footer-bottom__row a { color: var(--color-footer-text); }
.footer-bottom__row a:hover { color: #fff; }
.footer-disclaimer {
  font-size: 10px;
  color: #7d88ab;
  padding: 8px 0 4px;
  line-height: 1.4;
  border-top: 1px solid var(--color-footer-border);
  margin: 0 auto 0;
  text-align: center;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  max-width: 100%;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-top { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   FORM FIELDS (shared — used by Contact page form + Contact popup modal)
   ========================================================================== */
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--color-text); margin-bottom: 6px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%; padding: 13px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 14px;
  background: var(--color-bg-alt);
  color: var(--color-text);
}
.form-field textarea { resize: vertical; min-height: 100px; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { outline: 2px solid var(--color-primary); background: #fff; }
.form-row-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 900px) {
  .form-row-2 { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   FORM VALIDATION HELPERS (shared)
   ========================================================================== */
.form-field--error input,
.form-field--error select,
.form-field--error textarea {
  border-color: #e23b6e !important;
  background: #fdecf1 !important;
}
.form-field__error-msg {
  display: none;
  color: #e23b6e;
  font-size: 12px;
  margin-top: 5px;
}
.form-field--error .form-field__error-msg { display: block; }

/* ==========================================================================
   SUCCESS MODAL (shared — leads / query submission confirmation)
   ========================================================================== */
.fm-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 26, 75, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.fm-modal-overlay.is-open { opacity: 1; visibility: visible; }
.fm-modal {
  background: #fff;
  border-radius: var(--radius-lg);
  max-width: 380px;
  width: 100%;
  padding: 36px 32px 30px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(13, 26, 75, 0.3);
  transform: translateY(14px) scale(0.97);
  transition: transform 0.25s ease;
}
.fm-modal-overlay.is-open .fm-modal { transform: translateY(0) scale(1); }
.fm-modal__icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--color-insurance-bg);
  color: var(--color-insurance);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.fm-modal h3 { font-size: 20px; margin-bottom: 8px; }
.fm-modal p { color: var(--color-text-muted); font-size: 14px; line-height: 1.6; margin-bottom: 22px; }
.fm-modal button { min-width: 140px; }

/* ==========================================================================
   CONTACT POPUP MODAL (shared — opened from any "Explore" button)
   ========================================================================== */
.fm-modal--form {
  max-width: 560px;
  text-align: left;
  padding: 36px 36px 32px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  position: relative;
}
.fm-modal--form h3 { font-size: 22px; }
.fm-modal--form > p.fm-modal-form__intro { margin-bottom: 24px; }
.fm-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-text-muted);
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.fm-modal__close:hover { background: var(--color-bg-alt); color: var(--color-text); }
@media (max-width: 560px) {
  .fm-modal--form { padding: 30px 22px 26px; }
}

/* ============================================================
   SCROLL-REVEAL ANIMATIONS (alternating left/right/up)
   Pure CSS transitions on opacity + transform (GPU-accelerated,
   no layout thrash) so this stays fast — no extra requests, no
   JS animation loop, only a one-time IntersectionObserver toggle.
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s cubic-bezier(.16,.84,.44,1), transform .7s cubic-bezier(.16,.84,.44,1);
  will-change: opacity, transform;
}
[data-reveal="left"]  { transform: translateX(-52px) translateY(0); }
[data-reveal="right"] { transform: translateX(52px) translateY(0); }
[data-reveal="up"]    { transform: translateY(30px); }
[data-reveal="zoom"]  { transform: scale(.94); }
[data-reveal].is-visible {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { transition: none !important; opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   APP DOWNLOAD PROMO POPUP
   ============================================================ */
.fm-app-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 50, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
  padding: 16px;
}
.fm-app-popup-overlay.is-open { opacity: 1; visibility: visible; }
.fm-app-popup {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: linear-gradient(160deg, #ffffff 0%, var(--color-primary-light) 100%);
  border-radius: 22px;
  padding: 34px 28px 28px;
  text-align: center;
  box-shadow: 0 30px 70px rgba(0, 30, 100, 0.35);
  transform: scale(.85) translateY(24px);
  opacity: 0;
  transition: transform .45s cubic-bezier(.2,1.1,.4,1), opacity .35s ease;
  overflow: hidden;
}
.fm-app-popup-overlay.is-open .fm-app-popup {
  transform: scale(1) translateY(0);
  opacity: 1;
}
.fm-app-popup::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, var(--color-secondary) 0%, transparent 70%);
  opacity: .35;
  border-radius: 50%;
}
.fm-app-popup__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(20, 36, 92, 0.08);
  color: var(--color-navy);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease;
  z-index: 1;
}
.fm-app-popup__close:hover { background: rgba(20, 36, 92, 0.16); }
.fm-app-popup__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
  position: relative;
}
.fm-app-popup__logo {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(0, 53, 193, 0.28);
  margin-bottom: 16px;
  position: relative;
  animation: fmAppPopupFloat 3s ease-in-out infinite;
}
@keyframes fmAppPopupFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.fm-app-popup h3 {
  font-family: var(--font-heading, inherit);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-navy);
  margin: 0 0 10px;
  position: relative;
}
.fm-app-popup p {
  font-size: 14.5px;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0 0 22px;
  position: relative;
}
.fm-app-popup__stars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-bottom: 18px;
  color: #f5a623;
  font-size: 13px;
  font-weight: 600;
}
.fm-app-popup__stars span { color: var(--color-text-muted); font-weight: 500; margin-left: 4px; }
.fm-app-popup__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: var(--color-primary);
  color: #fff;
  font-size: 15.5px;
  font-weight: 600;
  padding: 14px 20px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(0, 53, 193, 0.3);
  transition: background .15s ease, transform .15s ease;
  position: relative;
}
.fm-app-popup__cta:hover { background: var(--color-primary-dark); transform: translateY(-2px); }
.fm-app-popup__later {
  display: inline-block;
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--color-text-faint);
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  position: relative;
}
.fm-app-popup__later:hover { color: var(--color-text-muted); }
@media (max-width: 420px) {
  .fm-app-popup { padding: 28px 20px 22px; border-radius: 18px; }
}

/* ---- Hide the page scrollbar (page still scrolls with wheel / touch / keys) ---- */
html { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; width: 0; height: 0; }

/* ==========================================================================
   MOBILE APP PROMO — phone mockup, service-page promo band, sticky banner
   ========================================================================== */
.phone {
  --phone-w: 220px;
  position: relative;
  width: var(--phone-w);
  aspect-ratio: 390 / 844;
  border: 7px solid #0d1533;
  border-radius: 32px;
  background: #0d1533;
  box-shadow: 0 24px 50px rgba(10, 20, 60, .35);
  overflow: hidden;
  flex-shrink: 0;
}
.phone::before {
  content: ""; position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  width: 34%; height: 14px; border-radius: 10px; background: #0d1533; z-index: 2;
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; border-radius: 24px; }

.app-promo__wrap {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center;
  background: linear-gradient(120deg, var(--color-navy), var(--promo-color, var(--color-primary)));
  color: #fff; border-radius: var(--radius-lg); padding: 44px 48px 0; overflow: hidden; position: relative;
}
.app-promo__badge {
  display: inline-block; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3);
  border-radius: var(--radius-pill); padding: 5px 14px; font-size: 12.5px; font-weight: 600; margin-bottom: 14px;
}
.app-promo__text { padding-bottom: 44px; }
.app-promo__text h2 { color: #fff; font-size: 28px; margin-bottom: 10px; }
.app-promo__text > p { color: rgba(255,255,255,.85); font-size: 15px; max-width: 460px; margin-bottom: 16px; }
.app-promo__points { margin-bottom: 24px; }
.app-promo__points li { font-size: 14.5px; font-weight: 500; padding: 4px 0 4px 26px; position: relative; }
.app-promo__points li::before { content: "✓"; position: absolute; left: 0; font-weight: 700; }
.app-promo__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.app-promo__actions .store-badge { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); color: #fff; padding: 10px 18px; border-radius: var(--radius-sm); display: flex; align-items: center; gap: 10px; font-size: 12px; }
.app-promo__actions .store-badge strong { display: block; font-size: 14px; font-family: var(--font-heading); }
.app-promo__phone { justify-self: center; align-self: end; margin-bottom: -60px; --phone-w: 230px; }
.app-promo__phone .phone { transform: rotate(4deg); }
@media (max-width: 900px) {
  .app-promo__wrap { grid-template-columns: minmax(0, 1fr); padding: 32px 22px 0; text-align: center; }
  .app-promo__text > p { margin-left: auto; margin-right: auto; }
  .app-promo__points { display: inline-block; text-align: left; }
  .app-promo__actions { justify-content: center; }
  .app-promo__phone { margin-bottom: -90px; --phone-w: 200px; }
  .app-promo__wrap { padding-bottom: 0; }
}

/* Sticky app banner (advert style) — mobile only */
.fm-app-bar {
  position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 9000;
  display: none; align-items: center; gap: 12px;
  background: #fff; border-radius: 16px; padding: 10px 12px;
  box-shadow: 0 10px 34px rgba(10, 20, 60, .28);
  transform: translateY(140%); transition: transform .45s cubic-bezier(.2,1,.4,1);
}
.fm-app-bar.is-open { transform: none; }
.fm-app-bar img { width: 42px; height: 42px; border-radius: 10px; }
.fm-app-bar__text { flex: 1; min-width: 0; line-height: 1.25; }
.fm-app-bar__text strong { display: block; font-size: 14px; color: var(--color-navy); font-family: var(--font-heading); }
.fm-app-bar__text span { font-size: 12px; color: var(--color-text-muted); }
.fm-app-bar__cta { background: var(--color-primary); color: #fff; font-weight: 600; font-size: 13px; padding: 9px 16px; border-radius: var(--radius-pill); white-space: nowrap; }
.fm-app-bar__close { width: 28px; height: 28px; font-size: 20px; color: var(--color-text-muted); flex-shrink: 0; }
@media (max-width: 700px) { .fm-app-bar { display: flex; } }

/* Screenshot inside the existing popup */
.fm-app-popup__shot { width: 120px; margin: 0 auto 14px; --phone-w: 120px; border-width: 5px; border-radius: 22px; }
.fm-app-popup__shot img { border-radius: 16px; }

/* Cards that slide in from the side must never create a horizontal scrollbar on phones.
   "clip" (not "hidden") keeps position: sticky working. */
html, body { overflow-x: clip; max-width: 100%; }

/* Mobile polish for popups */
.fm-modal .fm-modal__close { min-width: 0; }
.fm-modal--form { max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); padding-top: 44px; }
.fm-app-popup { max-height: calc(100dvh - 32px); overflow-y: auto; }
.fm-app-bar { z-index: 500; }            /* always below the enquiry form and the app popup */
@media (max-height: 700px) {
  .fm-app-popup__shot { display: none; }  /* keep the button visible on short screens */
}
