/* ==========================================================================
   Homepage — scoped styles (no Tailwind build required)
   ========================================================================== */

.fi-home-page.fi-page .fi-page-content {
    padding: 0;
    gap: 0;
}

.fi-home-page .fi-home {
    color: #111827;
    line-height: 1.5;
}

.fi-home-page .fi-home *,
.fi-home-page .fi-home *::before,
.fi-home-page .fi-home *::after {
    transition: none;
}

.fi-home-page .fi-home a,
.fi-home-page .fi-home .fi-home-btn,
.fi-home-page .fi-home .fi-home-card,
.fi-home-page .fi-home .fi-home-pill {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.fi-home-page .fi-home-container {
    width: 100%;
    max-width: 80rem;
    margin-inline: auto;
    padding-inline: 1.5rem;
}

.fi-home-page .fi-home-section {
    padding-block: 5rem;
}

.fi-home-page .fi-home-section--compact {
    padding-block: 4rem;
}

.fi-home-page .fi-home-section--tight {
    padding-block: 3rem;
}

.fi-home-page .fi-home-section-head {
    max-width: 42rem;
    margin-inline: auto;
    margin-bottom: 4rem;
    text-align: center;
}

.fi-home-page .fi-home-eyebrow {
    display: inline-block;
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #2563eb;
}

.fi-home-page .fi-home-title {
    margin: 0 0 1rem;
    font-size: clamp(1.875rem, 4vw, 2.25rem);
    font-weight: 700;
    line-height: 1.2;
    color: #111827;
}

.fi-home-page .fi-home-title--lg {
    font-size: clamp(2.25rem, 5vw, 3rem);
}

.fi-home-page .fi-home-lead {
    margin: 0;
    font-size: 1.125rem;
    color: #4b5563;
}

.fi-home-page .fi-home-gradient-text {
    background: linear-gradient(135deg, #2563eb, #9333ea);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hero */
.fi-home-page .fi-home-hero {
    position: relative;
    overflow: hidden;
    padding-block: 5rem;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 45%, #faf5ff 100%);
}

.fi-home-page .fi-home-hero__blob {
    position: absolute;
    border-radius: 9999px;
    filter: blur(64px);
    pointer-events: none;
}

.fi-home-page .fi-home-hero__blob--one {
    top: -6rem;
    width: 18rem;
    height: 18rem;
    background: rgba(191, 219, 254, 0.45);
    inset-inline-end: -6rem;
}

.fi-home-page .fi-home-hero__blob--two {
    bottom: -8rem;
    width: 24rem;
    height: 24rem;
    background: rgba(233, 213, 255, 0.35);
    inset-inline-start: -4rem;
}

.fi-home-page .fi-home-hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .fi-home-page .fi-home-hero__grid {
        grid-template-columns: 1fr 1fr;
    }
}

.fi-home-page .fi-home-badge {
    display: inline-flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.fi-home-page .fi-home-hero__heading {
    margin: 0 0 1.5rem;
    font-size: clamp(2rem, 5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.1;
    color: #111827;
}

.fi-home-page .fi-home-hero__subtitle {
    margin: 0 0 2rem;
    max-width: 36rem;
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    line-height: 1.7;
    color: #4b5563;
}

.fi-home-page .fi-home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem;
    margin-bottom: 2.5rem;
}

.fi-home-page .fi-home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
}

.fi-home-page .fi-home-btn--primary {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25);
}

.fi-home-page .fi-home-btn--primary:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.fi-home-page .fi-home-btn--outline {
    background: #ffffff;
    color: #2563eb;
    border-color: #bfdbfe;
}

.fi-home-page .fi-home-btn--outline:hover {
    background: #eff6ff;
    border-color: #93c5fd;
}

.fi-home-page .fi-home-btn--ghost {
    background: transparent;
    color: #374151;
}

.fi-home-page .fi-home-btn--ghost:hover {
    background: #f3f4f6;
}

.fi-home-page .fi-home-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.fi-home-page .fi-home-trust__item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.fi-home-page .fi-home-trust__item svg {
    width: 1.25rem;
    height: 1.25rem;
    color: #22c55e;
    flex-shrink: 0;
}

/* Dashboard preview */
.fi-home-page .fi-home-preview {
    animation: fi-home-float 6s ease-in-out infinite;
}

@keyframes fi-home-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.fi-home-page .fi-home-preview__frame {
    padding: 0.25rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, #60a5fa, #a855f7);
    box-shadow: 0 25px 50px rgba(37, 99, 235, 0.2);
}

.fi-home-page .fi-home-preview__card {
    overflow: hidden;
    border-radius: 0.875rem;
    background: #ffffff;
}

.fi-home-page .fi-home-preview__toolbar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f3f4f6;
    background: #f9fafb;
}

.fi-home-page .fi-home-preview__dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 9999px;
}

.fi-home-page .fi-home-preview__dot--red { background: #f87171; }
.fi-home-page .fi-home-preview__dot--yellow { background: #facc15; }
.fi-home-page .fi-home-preview__dot--green { background: #4ade80; }

.fi-home-page .fi-home-preview__title {
    flex: 1;
    text-align: center;
    font-size: 0.75rem;
    color: #9ca3af;
}

.fi-home-page .fi-home-preview__body {
    padding: 1.25rem;
}

.fi-home-page .fi-home-preview__metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.fi-home-page .fi-home-preview__metric {
    padding: 0.75rem;
    border-radius: 0.5rem;
    background: #f9fafb;
}

.fi-home-page .fi-home-preview__metric-label {
    margin: 0;
    font-size: 0.6875rem;
    color: #6b7280;
}

.fi-home-page .fi-home-preview__metric-value {
    margin: 0.25rem 0 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
}

.fi-home-page .fi-home-preview__metric-growth {
    margin: 0.25rem 0 0;
    font-size: 0.6875rem;
    color: #16a34a;
}

.fi-home-page .fi-home-preview__chart {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    background: linear-gradient(90deg, #eff6ff, #faf5ff);
}

.fi-home-page .fi-home-preview__bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.5rem;
    height: 6rem;
}

.fi-home-page .fi-home-preview__bar {
    flex: 1;
    border-radius: 0.375rem 0.375rem 0 0;
    background: linear-gradient(180deg, #60a5fa, #2563eb);
}

.fi-home-page .fi-home-preview__chart-label {
    margin: 0.75rem 0 0;
    font-size: 0.6875rem;
    color: #6b7280;
}

.fi-home-page .fi-home-preview__tasks {
    display: grid;
    gap: 0.5rem;
}

.fi-home-page .fi-home-preview__task {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    background: #f9fafb;
    font-size: 0.75rem;
    color: #374151;
}

.fi-home-page .fi-home-preview__task-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    flex-shrink: 0;
}

/* Stats */
.fi-home-page .fi-home-stats {
    border-block: 1px solid #f3f4f6;
    background: #ffffff;
    padding-block: 3rem;
}

.fi-home-page .fi-home-stats__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    text-align: center;
}

@media (min-width: 768px) {
    .fi-home-page .fi-home-stats__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.fi-home-page .fi-home-stats__value {
    margin: 0;
    font-size: clamp(1.875rem, 4vw, 2.5rem);
    font-weight: 800;
}

.fi-home-page .fi-home-stats__label {
    margin: 0.25rem 0 0;
    font-size: 0.875rem;
    color: #4b5563;
}

/* Cards grid */
.fi-home-page .fi-home-grid {
    display: grid;
    gap: 1.5rem;
}

.fi-home-page .fi-home-grid--2 {
    grid-template-columns: 1fr;
}

.fi-home-page .fi-home-grid--3 {
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .fi-home-page .fi-home-grid--2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .fi-home-page .fi-home-grid--3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .fi-home-page .fi-home-grid--3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.fi-home-page .fi-home-card {
    padding: 1.5rem;
    border: 1px solid #f3f4f6;
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.fi-home-page .fi-home-card:hover {
    border-color: #bfdbfe;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
}

.fi-home-page .fi-home-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    margin-bottom: 1.25rem;
    border-radius: 0.75rem;
    background: #eff6ff;
    color: #2563eb;
}

.fi-home-page .fi-home-card:hover .fi-home-card__icon {
    background: #2563eb;
    color: #ffffff;
}

.fi-home-page .fi-home-card__icon svg {
    width: 1.75rem;
    height: 1.75rem;
}

.fi-home-page .fi-home-card__title {
    margin: 0 0 0.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
}

.fi-home-page .fi-home-card__text {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #4b5563;
}

/* Steps */
.fi-home-page .fi-home-step {
    text-align: center;
}

.fi-home-page .fi-home-step__number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.5rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, #3b82f6, #9333ea);
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25);
}

.fi-home-page .fi-home-step__title {
    margin: 0 0 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
}

.fi-home-page .fi-home-step__text {
    margin: 0;
    color: #4b5563;
}

/* Feature row */
.fi-home-page .fi-home-feature {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    border: 1px solid #f3f4f6;
    border-radius: 0.75rem;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.fi-home-page .fi-home-feature__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.5rem;
    background: #dbeafe;
    color: #2563eb;
}

.fi-home-page .fi-home-feature__icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.fi-home-page .fi-home-feature__title {
    margin: 0 0 0.25rem;
    font-weight: 600;
    color: #111827;
}

.fi-home-page .fi-home-feature__text {
    margin: 0;
    font-size: 0.875rem;
    color: #4b5563;
}

/* Integrations */
.fi-home-page .fi-home-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.fi-home-page .fi-home-pill {
    padding: 0.625rem 1.25rem;
    border-radius: 9999px;
    background: #f3f4f6;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
}

.fi-home-page .fi-home-pill:hover {
    background: #dbeafe;
    color: #1d4ed8;
}

/* About banner */
.fi-home-page .fi-home-banner {
    display: grid;
    gap: 3rem;
    padding: 2rem;
    border-radius: 1.5rem;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #ffffff;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .fi-home-page .fi-home-banner {
        grid-template-columns: 1fr 1fr;
        padding: 3rem;
    }
}

.fi-home-page .fi-home-banner__title {
    margin: 0 0 1rem;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
}

.fi-home-page .fi-home-banner__text {
    margin: 0 0 1rem;
    font-size: 1.125rem;
    line-height: 1.7;
    color: #dbeafe;
}

.fi-home-page .fi-home-banner__text:last-child {
    margin-bottom: 0;
}

.fi-home-page .fi-home-banner__highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.fi-home-page .fi-home-banner__highlight {
    padding: 1.25rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}

.fi-home-page .fi-home-banner__highlight svg {
    width: 2rem;
    height: 2rem;
    margin-bottom: 0.75rem;
    color: #ffffff;
}

.fi-home-page .fi-home-banner__highlight p {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
}

/* FAQ */
.fi-home-page .fi-home-faq {
    display: grid;
    gap: 0.75rem;
}

.fi-home-page .fi-home-faq__item {
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    background: #ffffff;
    overflow: hidden;
}

.fi-home-page .fi-home-faq__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.5rem;
    font-weight: 600;
    color: #111827;
    cursor: pointer;
    list-style: none;
}

.fi-home-page .fi-home-faq__item summary::-webkit-details-marker {
    display: none;
}

.fi-home-page .fi-home-faq__item summary svg {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    color: #6b7280;
    transition: transform 0.2s ease;
}

.fi-home-page .fi-home-faq__item[open] summary svg {
    transform: rotate(180deg);
}

.fi-home-page .fi-home-faq__answer {
    padding: 0 1.5rem 1rem;
    color: #4b5563;
    line-height: 1.6;
}

/* CTA */
.fi-home-page .fi-home-cta {
    padding: 2.5rem;
    border-radius: 1.5rem;
    text-align: center;
    background: linear-gradient(90deg, #eff6ff, #faf5ff, #dbeafe);
}

@media (min-width: 768px) {
    .fi-home-page .fi-home-cta {
        padding: 3.5rem;
    }
}

.fi-home-page .fi-home-cta__title {
    margin: 0 0 1rem;
    font-size: clamp(1.75rem, 4vw, 2rem);
    font-weight: 700;
    color: #111827;
}

.fi-home-page .fi-home-cta__text {
    margin: 0 auto 2rem;
    max-width: 36rem;
    font-size: 1.125rem;
    color: #4b5563;
}

/* Section backgrounds */
.fi-home-page .fi-home-section--muted {
    background: #f9fafb;
}

.fi-home-page .fi-home-section--soft {
    background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
}

.fi-home-page .fi-home-section--bordered {
    border-block: 1px solid #f3f4f6;
}

/* RTL-safe text alignment */
[dir="rtl"] .fi-home-page .fi-home {
    text-align: right;
}

[dir="ltr"] .fi-home-page .fi-home {
    text-align: left;
}

[dir="rtl"] .fi-home-page .fi-home-section-head,
[dir="rtl"] .fi-home-page .fi-home-step,
[dir="rtl"] .fi-home-page .fi-home-stats__grid,
[dir="rtl"] .fi-home-page .fi-home-cta {
    text-align: center;
}
