/**
 * Trustify Home Page — premium fintech layout
 */

.tf-page-home {
    background: linear-gradient(180deg, #f6f8fa 0%, #ffffff 220px);
}

/* ---- Hero ---- */
/* Beat legacy old_assets #home { height:600px } so hero content is not clipped */
.tf-page-home #home.tf-home-hero,
.tf-page-home #home,
.tf-home-hero {
    position: relative;
    overflow: visible !important;
    padding: 52px 0 160px !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    margin-bottom: 0 !important;
    background-color: #f8fafb !important;
    background-image:
        linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.78) 42%, rgba(255, 255, 255, 0.92) 100%),
        radial-gradient(ellipse 72% 58% at 88% 6%, rgba(40, 74, 102, 0.06) 0%, transparent 58%),
        radial-gradient(ellipse 48% 42% at 6% 88%, rgba(40, 74, 102, 0.03) 0%, transparent 54%),
        url('../img/home_bg.jpg') !important;
    background-repeat: no-repeat !important;
    background-size: auto, auto, auto, cover !important;
    background-position: center, center, center, center right !important;
    border-bottom: 1px solid var(--tf-border);
}

.tf-home-hero::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -40px;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(40, 74, 102, 0.05) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.tf-home-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 32px) 32px;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, min(400px, 0.85fr));
    gap: clamp(28px, 4vw, 48px);
    align-items: start;
    overflow: visible;
}

.tf-home-hero__inner > .tf-home-hero__copy {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    min-width: 0;
    padding-top: 12px;
}

.tf-home-hero__inner > .tf-home-hero__calc {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    min-width: 0;
    padding-bottom: 32px;
}

.tf-home-hero__copy {
    max-width: 560px;
    padding-top: 8px;
}

.tf-home-hero__company {
    margin: 0 0 10px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--tf-primary-light);
}

.tf-home-hero__eyebrow {
    display: inline-block;
    margin: 0 0 16px;
    padding: 6px 14px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--tf-primary);
    background: rgba(40, 74, 102, 0.06);
    border: 1px solid rgba(40, 74, 102, 0.1);
    border-radius: 999px;
}

.tf-home-hero__title {
    font-size: clamp(1.875rem, 3.5vw, 2.75rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: var(--tf-text);
    margin: 0 0 18px;
}

.tf-home-hero__lead {
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--tf-text-muted);
    margin: 0 0 24px;
    max-width: 480px;
}

.tf-home-hero__trust {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tf-home-hero__trust li {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--tf-primary);
    background: var(--tf-white);
    border: 1px solid var(--tf-border);
    padding: 7px 14px;
    border-radius: 999px;
}

.tf-home-hero__trust i {
    margin-right: 6px;
    font-size: 0.75rem;
    opacity: 0.85;
}

.tf-home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

@media (max-width: 992px) {
    .tf-home-hero {
        padding: 36px 0 120px;
    }

    .tf-home-hero__inner {
        grid-template-columns: 1fr;
        padding-bottom: 40px;
    }

    .tf-home-hero__inner > .tf-home-hero__copy {
        grid-column: 1;
        grid-row: 1;
        align-self: start;
    }

    .tf-home-hero__inner > .tf-home-hero__calc {
        grid-column: 1;
        grid-row: 2;
        padding-bottom: 40px;
    }

    .tf-home-hero__copy {
        max-width: none;
    }
}

/* ---- Shared home sections ---- */
.tf-home-section {
    padding: 80px 0;
}

.tf-home-section--bordered {
    border-top: 1px solid var(--tf-border);
}

.tf-home-section__header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 48px;
}

.tf-home-section__eyebrow {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tf-primary-light);
    margin-bottom: 12px;
}

.tf-home-section__title {
    font-size: clamp(1.75rem, 3vw, 2.375rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--tf-text);
    margin: 0 0 12px;
}

.tf-home-section__subtitle {
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--tf-text-muted);
    margin: 0;
}

/* Corridors strip */
.tf-home-corridors {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px 48px;
}

.tf-home-corridor {
    text-align: center;
    min-width: 88px;
}

.tf-home-corridor img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid var(--tf-border);
    box-shadow: var(--tf-shadow-sm);
    object-fit: cover;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tf-home-corridor:hover img {
    transform: translateY(-2px);
    box-shadow: var(--tf-shadow-md);
}

.tf-home-corridor span {
    display: block;
    margin-top: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--tf-text);
}

/* Feature cards */
.tf-home-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 768px) {
    .tf-home-features {
        grid-template-columns: repeat(3, 1fr);
    }
}

.tf-home-feature {
    background: var(--tf-white);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius-lg);
    padding: 32px 28px;
    text-align: center;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.tf-home-feature:hover {
    box-shadow: var(--tf-shadow-md);
    transform: translateY(-3px);
}

.tf-home-feature__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(40, 74, 102, 0.05);
    border-radius: var(--tf-radius);
    border: 1px solid var(--tf-border);
}

.tf-home-feature__icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.tf-home-feature h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--tf-text);
    margin: 0 0 10px;
}

.tf-home-feature p {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--tf-text-muted);
    margin: 0;
}

/* Split sections */
.tf-home-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 992px) {
    .tf-home-split {
        grid-template-columns: 1fr 1fr;
        gap: 64px;
    }
}

.tf-home-split__title {
    font-size: clamp(1.875rem, 3vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.12;
    color: var(--tf-text);
    margin: 0 0 20px;
}

.tf-home-split__text {
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--tf-text-muted);
    margin: 0;
}

.tf-home-split__media {
    display: flex;
    justify-content: center;
}

.tf-home-split__media img {
    max-width: 320px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 16px 32px rgba(40, 74, 102, 0.12));
}

/* Steps */
.tf-home-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 768px) {
    .tf-home-steps {
        grid-template-columns: repeat(3, 1fr);
    }
}

.tf-home-step {
    position: relative;
    padding: 28px 24px;
    background: var(--tf-white);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius-lg);
    text-align: center;
}

.tf-home-step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--tf-primary);
    color: var(--tf-white);
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.tf-home-step__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tf-home-step__icon img {
    width: 40px;
    height: 40px;
}

.tf-home-step h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--tf-text);
    margin: 0 0 8px;
}

.tf-home-step p {
    font-size: 0.9375rem;
    color: var(--tf-text-muted);
    line-height: 1.55;
    margin: 0;
}

/* CTA band */
.tf-home-cta {
    padding: 80px 24px;
    background: var(--tf-primary);
    text-align: center;
}

.tf-home-cta__panel {
    max-width: 720px;
    margin: 0 auto;
}

.tf-home-cta__title {
    font-size: clamp(1.75rem, 3vw, 2.375rem);
    font-weight: 700;
    color: var(--tf-white);
    letter-spacing: -0.02em;
    margin: 0 0 16px;
}

.tf-home-cta__text {
    font-size: 1.0625rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.88);
    margin: 0 0 28px;
}

/* Corridors grid (full) */
.tf-home-reaches {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.tf-home-reaches__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 40px;
}

.tf-home-reaches__head h2 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    color: var(--tf-text);
    margin: 0;
    max-width: 560px;
}

.tf-home-reaches__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 28px 20px;
}

.tf-home-reaches__item {
    text-align: center;
}

.tf-home-reaches__item img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid var(--tf-border);
    margin-bottom: 10px;
    transition: transform 0.2s ease;
}

.tf-home-reaches__item:hover img {
    transform: scale(1.05);
}

.tf-home-reaches__item span {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--tf-text-muted);
    line-height: 1.35;
}

/* App section */
.tf-home-app {
    padding: 80px 24px;
    background: #F8FAFB;
    border-top: 1px solid var(--tf-border);
}

.tf-home-app__panel {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    background: var(--tf-white);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius-xl);
    padding: 48px 32px;
    box-shadow: var(--tf-shadow-md);
}

.tf-home-app__panel h2 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    color: var(--tf-text);
    margin: 0 0 16px;
}

.tf-home-app__panel p {
    font-size: 1rem;
    color: var(--tf-text-muted);
    line-height: 1.6;
    margin: 0 0 24px;
}

.tf-home-app__stores {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.tf-home-app__stores img {
    height: 48px;
    width: auto;
}

/* Fade-in — visible by default so content is never blank if JS fails */
.tf-home-reveal {
    opacity: 1;
    transform: none;
}

html.tf-home-anim .tf-home-reveal:not(.is-visible) {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

html.tf-home-anim .tf-home-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Override legacy materialize home container */
.tf-page-home.personal-page-root {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.tf-page-home .container.personal-page-root {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
}

@media (max-width: 992px) {
    .tf-home-hero {
        padding: 36px 0 120px;
    }

    .tf-home-section {
        padding: 56px 0;
    }
}
