/* ==========================================================================
   Creddo — home page (index.html)
   Loaded only by index.html, after styles.css. Everything is scoped to .home.
   Shares its visual language with eligibility-check.css.
   ========================================================================== */

.home {
    --hm-accent: #e3b86a;
    --hm-accent-ink: #9a6b12;
    --hm-hair: rgba(16, 25, 43, .08);
    --hm-section-y: 120px;
}

/* ---------- shared type ---------- */
.home .hm-section { padding: var(--hm-section-y) 0; background: #fff; }

.home .hm-eyebrow {
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 16px;
}

.home .hm-eyebrow--light { color: var(--hm-accent); }

.home .hm-head { max-width: 740px; margin: 0 auto 64px; text-align: center; }

.home .hm-section h2 {
    font-size: clamp(1.8rem, 3.3vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1.12;
}

.home .hm-lead {
    margin-top: 16px;
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--body);
}

.home .hm-text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
    font-weight: 600;
    color: var(--ink);
    border-bottom: 1px solid var(--line-2);
    padding-bottom: 3px;
    transition: border-color .2s ease;
}

.home .hm-text-link i { font-size: .8em; transition: transform .2s ease; }
.home .hm-text-link:hover { border-color: var(--ink); }
.home .hm-text-link:hover i { transform: translateX(3px); }

/* ==========================================================================
   HERO
   ========================================================================== */
.home .hm-hero { text-align: left; justify-content: flex-start; padding: calc(var(--nav-h) + 64px) 0 72px; }

.home .hm-hero .container { position: relative; z-index: 1; }

/* heavier wash on the left so the headline reads cleanly over the card video */
.home .hm-hero .hero-overlay {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, .92) 0%, rgba(0, 0, 0, .82) 38%, rgba(0, 0, 0, .45) 70%, rgba(0, 0, 0, .3) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, transparent 30%, transparent 70%, rgba(0, 0, 0, .5) 100%);
}

.home .hm-hero-content { max-width: 640px; }

.home .hm-hero .hm-eyebrow { margin-bottom: 22px; }

.home .hm-hero h1 {
    color: #fff;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -.04em;
    line-height: 1.04;
    margin-bottom: 24px;
}

.home .hm-accent { color: var(--hm-accent); }

.home .hm-hero-sub {
    max-width: 520px;
    font-size: 1.1rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, .72);
    margin-bottom: 38px;
}

.home .hm-hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px 30px;
    margin-bottom: 26px;
}

.home .hm-btn-light {
    background: #fff;
    color: var(--ink);
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}

.home .hm-btn-light i { font-size: .85em; transition: transform .2s ease; }
.home .hm-btn-light:hover { transform: translateY(-2px); background: #f3f4f6; }
.home .hm-btn-light:hover i { transform: translateX(3px); }

.home .hm-hero-link {
    font-weight: 600;
    font-size: .95rem;
    color: rgba(255, 255, 255, .85);
    border-bottom: 1px solid rgba(255, 255, 255, .3);
    padding-bottom: 2px;
    transition: color .2s ease, border-color .2s ease;
}

.home .hm-hero-link:hover { color: #fff; border-color: #fff; }

.home .hm-hero-assure {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 0;
    margin-bottom: 56px;
    font-size: .86rem;
    color: rgba(255, 255, 255, .62);
}

.home .hm-hero-assure li + li::before { content: "·"; margin: 0 12px; opacity: .6; }

.home .hm-hero-stats {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, auto);
    justify-content: start;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, .14);
}

.home .hm-hero-stats li {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 30px;
    border-left: 1px solid rgba(255, 255, 255, .14);
}

.home .hm-hero-stats li:first-child { padding-left: 0; border-left: 0; }

.home .hm-hero-stats strong {
    font-family: var(--font-head);
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -.02em;
    white-space: nowrap;
}

.home .hm-hero-stats .hero-stat-number { font-size: inherit; }

.home .hm-hero-stats li > span { font-size: .8rem; color: rgba(255, 255, 255, .58); white-space: nowrap; }

/* ==========================================================================
   LOGO STRIP
   ========================================================================== */
.home .hm-trusted { border-bottom: 1px solid var(--line); }

.home .hm-trusted .trusted-label {
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .18em;
}

.home .hm-trusted .bank-logo { filter: grayscale(1) opacity(.5); }

/* ==========================================================================
   PRODUCTS
   ========================================================================== */
.home .hm-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.home .hm-product {
    display: flex;
    flex-direction: column;
    padding: 36px 34px 32px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    color: inherit;
    background: #fff;
    transition: background .25s ease;
}

.home .hm-product:hover { background: var(--bg-soft); }

.home .hm-product-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.home .hm-product h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; }

.home .hm-tag {
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--hm-accent-ink);
    background: #fbf3e2;
    padding: 4px 10px;
    border-radius: 100px;
    white-space: nowrap;
}

.home .hm-product-figure { font-size: .9rem; color: var(--muted); margin-bottom: 22px; }

.home .hm-product-figure strong {
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--ink);
}

.home .hm-product ul {
    list-style: none;
    display: grid;
    gap: 10px;
    margin-bottom: 30px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.home .hm-product li {
    position: relative;
    padding-left: 18px;
    font-size: .92rem;
    line-height: 1.5;
    color: var(--body);
}

.home .hm-product li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .62em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--line-2);
}

.home .hm-product-cta {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: .92rem;
    color: var(--ink);
}

.home .hm-product-cta i { font-size: .8em; transition: transform .2s ease; }
.home .hm-product:hover .hm-product-cta i { transform: translateX(4px); }

.home .hm-product.is-featured .hm-product-cta { color: var(--primary); }

/* ==========================================================================
   HOW IT WORKS
   ========================================================================== */
.home .hm-steps-section { background: var(--bg-soft); }

.home .hm-steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line-2);
}

.home .hm-steps li { padding: 34px 30px 4px 0; }
.home .hm-steps li + li { padding-left: 30px; border-left: 1px solid var(--line-2); }

.home .hm-step-num {
    display: block;
    font-family: var(--font-head);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .08em;
    color: var(--hm-accent-ink);
    margin-bottom: 18px;
}

.home .hm-steps h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -.015em; margin-bottom: 8px; }
.home .hm-steps p { font-size: .93rem; line-height: 1.6; color: var(--body); }

/* ==========================================================================
   WHY CREDDO
   ========================================================================== */
.home .hm-why-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 80px;
    align-items: center;
}

.home .hm-why-media { position: relative; }

.home .hm-why-video {
    aspect-ratio: 4 / 3.4;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(160deg, #1d2431 0%, #0e131b 100%);
}

.home .hm-why-video video { width: 100%; height: 100%; object-fit: cover; display: block; }

.home .hm-why-badge {
    position: absolute;
    right: -20px;
    bottom: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid var(--hm-hair);
    border-radius: 14px;
    box-shadow: 0 18px 40px -16px rgba(16, 25, 43, .3);
}

.home .hm-why-badge strong { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; letter-spacing: -.03em; color: var(--ink); }
.home .hm-why-badge span { font-size: .8rem; line-height: 1.35; color: var(--muted); max-width: 110px; }

.home .hm-why-copy .hm-lead { max-width: 520px; }

.home .hm-why-points {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 48px;
    margin-top: 88px;
    padding-top: 48px;
    border-top: 1px solid var(--line);
}

.home .hm-why-points h3 { font-size: 1.02rem; font-weight: 700; letter-spacing: -.01em; margin-bottom: 8px; }
.home .hm-why-points p { font-size: .92rem; line-height: 1.6; color: var(--body); }

/* ==========================================================================
   REVIEWS
   ========================================================================== */
.home .hm-reviews { background: var(--bg-soft); }

.home .hm-reviews .testimonial-slider { max-width: 820px; }

.home .hm-reviews .testimonial-card {
    border: 1px solid var(--hm-hair);
    border-radius: 20px;
    box-shadow: none;
    padding: 48px 52px;
}

.home .hm-reviews .testimonial-card::before { display: none; }
.home .hm-reviews .testimonial-rating { margin-bottom: 20px; font-size: .82rem; color: var(--hm-accent); }

.home .hm-reviews .testimonial-text {
    font-family: var(--font-head);
    font-size: 1.28rem;
    font-weight: 500;
    line-height: 1.55;
    letter-spacing: -.015em;
    color: var(--ink);
    margin-bottom: 28px;
}

.home .hm-reviews .testimonial-author h4 { font-size: .95rem; font-weight: 700; }
.home .hm-reviews .testimonial-author span { font-size: .82rem; color: var(--muted); }

.home .hm-reviews .review-videos-section { margin-top: 96px; }

.home .hm-reviews .review-videos-title {
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 28px;
}

.home .hm-reviews .review-video-card {
    background: linear-gradient(160deg, #1d2431 0%, #0e131b 100%);
    border-radius: 16px;
}

.home .hm-reviews .review-video-overlay i {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, .28);
    font-size: .95rem;
    padding-left: 3px;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.home .hm-faq-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 80px;
    align-items: start;
}

.home .hm-faq-intro { position: sticky; top: calc(var(--nav-h) + 40px); }
.home .hm-faq-intro .hm-lead a { color: var(--ink); font-weight: 600; white-space: nowrap; border-bottom: 1px solid var(--line-2); }

.home .hm-faq-list { max-width: none; margin: 0; gap: 0; border-top: 1px solid var(--line); }

.home .hm-faq-list .faq-item {
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.home .hm-faq-list .faq-question {
    padding: 24px 0;
    font-size: 1.02rem;
    font-weight: 600;
    gap: 24px;
}

.home .hm-faq-list .faq-question i {
    background: transparent;
    border: 1px solid var(--line-2);
    color: var(--ink-2);
}

.home .hm-faq-list .faq-answer p { padding: 0 48px 24px 0; font-size: .95rem; line-height: 1.7; color: var(--body); }

/* ==========================================================================
   CONTACT — dark closing section with the callback form
   ========================================================================== */
.home .hm-contact { background: var(--bg-deep); color: rgba(255, 255, 255, .72); }

.home .hm-contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
    gap: 80px;
    align-items: start;
}

.home .hm-contact h2 { color: #fff; }
.home .hm-contact .hm-lead { color: rgba(255, 255, 255, .68); max-width: 480px; }

.home .hm-contact-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px 32px;
    margin: 44px 0 36px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.home .hm-contact-list dt {
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .45);
    margin-bottom: 6px;
}

.home .hm-contact-list dd { font-size: .95rem; line-height: 1.55; color: #fff; }
.home .hm-contact-list a { color: #fff; }
.home .hm-contact-list a:hover { color: var(--hm-accent); }

.home .hm-contact .contact-social a {
    background: transparent;
    border-color: rgba(255, 255, 255, .18);
    color: rgba(255, 255, 255, .8);
}

.home .hm-contact .contact-social a:hover { background: #fff; border-color: #fff; color: var(--ink); }

.home .hm-contact .contact-form {
    border: 0;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .6);
}

.home .hm-contact .contact-form h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em; }
.home .hm-contact .contact-form > p { color: var(--muted); }

.home .hm-contact .form-group input,
.home .hm-contact .form-group select {
    background: #fff;
    border: 1px solid var(--line-2);
    border-radius: 10px;
}

.home .hm-contact .form-group input[readonly] { background: var(--bg-soft); }

.home .hm-contact .form-group input:focus,
.home .hm-contact .form-group select:focus {
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(16, 25, 43, .08);
}

.home .hm-contact .form-group input:focus ~ label,
.home .hm-contact .form-group input:not(:placeholder-shown) ~ label,
.home .hm-contact .form-group select:focus ~ label,
.home .hm-contact .form-group select:valid ~ label { color: var(--ink-2); }

.home .hm-contact .checkbox-label {
    /* flex turned each text run and link into its own item, leaving wide gaps */
    display: block;
    position: relative;
    padding-left: 28px;
    line-height: 1.55;
}

.home .hm-contact .checkbox-label input[type="checkbox"] { position: absolute; left: 0; top: 1px; margin: 0; accent-color: var(--ink); }
.home .hm-contact .checkbox-label a { color: var(--ink); }

.home .hm-contact .contact-form button[type="submit"] {
    gap: 10px;
    background: var(--ink);
    box-shadow: none;
    border-radius: 12px;
}

.home .hm-contact .contact-form button[type="submit"]:hover { background: #000; box-shadow: 0 10px 24px rgba(16, 25, 43, .22); }
.home .hm-contact .contact-form button[type="submit"] i { font-size: .85em; }

.home .hm-contact .form-note { font-size: .78rem; color: var(--muted); }
.home .hm-contact .form-note i { color: var(--muted); }

/* the dark contact block runs straight into the dark footer — separate them */
.home .footer { border-top: 1px solid rgba(255, 255, 255, .08); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
    .home { --hm-section-y: 96px; }

    .home .hm-hero-stats li { padding: 0 20px; }

    .home .hm-products-grid { grid-template-columns: 1fr 1fr; }

    .home .hm-steps { grid-template-columns: 1fr 1fr; }
    .home .hm-steps li:nth-child(3) { padding-left: 0; border-left: 0; }
    .home .hm-steps li:nth-child(n+3) { border-top: 1px solid var(--line-2); margin-top: 28px; }

    .home .hm-why-grid { grid-template-columns: 1fr; gap: 48px; }
    .home .hm-why-media { max-width: 560px; }
    .home .hm-why-badge { right: 16px; }
    .home .hm-why-points { grid-template-columns: 1fr 1fr; margin-top: 64px; }

    .home .hm-faq-grid { grid-template-columns: 1fr; gap: 40px; }
    .home .hm-faq-intro { position: static; }

    .home .hm-contact-grid { grid-template-columns: 1fr; gap: 48px; }
    .home .hm-contact .contact-form-wrapper { max-width: 620px; }
}

@media (max-width: 768px) {
    .home { --hm-section-y: 72px; }

    .home .container { padding: 0 20px; }

    .home .hm-head { margin-bottom: 40px; }
    .home .hm-section h2 { font-size: 1.75rem; }
    .home .hm-lead { font-size: .97rem; margin-top: 12px; }
    .home .hm-eyebrow { font-size: .68rem; margin-bottom: 12px; }

    /* hero */
    .home .hm-hero { min-height: auto; padding: calc(var(--nav-h) + 44px) 0 48px; }
    .home .hm-hero .hero-overlay {
        background: linear-gradient(180deg, rgba(0, 0, 0, .7) 0%, rgba(0, 0, 0, .8) 50%, rgba(0, 0, 0, .94) 100%);
    }
    .home .hm-hero .hm-eyebrow { margin-bottom: 16px; }
    .home .hm-hero h1 { font-size: 2.3rem; line-height: 1.08; margin-bottom: 18px; }
    .home .hm-hero-sub { font-size: 1rem; margin-bottom: 30px; }
    .home .hm-hero-actions { flex-direction: column; align-items: stretch; gap: 18px; margin-bottom: 22px; }
    .home .hm-hero-actions .btn { width: 100%; justify-content: center; padding: 16px 24px; }
    .home .hm-hero-link { align-self: center; font-size: .9rem; }
    .home .hm-hero-assure { justify-content: center; font-size: .78rem; margin-bottom: 36px; }
    .home .hm-hero-assure { gap: 4px 16px; }
    .home .hm-hero-assure li + li::before { display: none; }
    .home .hm-hero-stats { grid-template-columns: 1fr 1fr; row-gap: 22px; padding-top: 24px; }
    .home .hm-hero-stats li,
    .home .hm-hero-stats li:first-child { padding: 0 0 0 16px; border-left: 1px solid rgba(255, 255, 255, .18); }
    .home .hm-hero-stats strong { font-size: 1.2rem; }
    .home .hm-hero-stats li > span { font-size: .76rem; }

    .home .hm-trusted .trusted-label { font-size: .64rem; }

    /* products: single column, compact */
    .home .hm-products-grid { grid-template-columns: 1fr; }
    .home .hm-product { padding: 26px 22px 24px; }
    .home .hm-product h3 { font-size: 1.15rem; }
    .home .hm-product-figure { margin-bottom: 16px; }
    .home .hm-product ul { padding-top: 16px; margin-bottom: 22px; gap: 8px; }
    .home .hm-product li { font-size: .88rem; }

    /* steps: vertical list */
    .home .hm-steps { grid-template-columns: 1fr; border-top: 0; }
    .home .hm-steps li,
    .home .hm-steps li + li,
    .home .hm-steps li:nth-child(n+3) {
        display: grid;
        grid-template-columns: 44px 1fr;
        column-gap: 8px;
        padding: 20px 0;
        margin: 0;
        border-left: 0;
        border-top: 1px solid var(--line-2);
    }
    .home .hm-steps li:last-child { border-bottom: 1px solid var(--line-2); }
    .home .hm-step-num { grid-row: span 2; margin: 3px 0 0; }
    .home .hm-steps h3 { font-size: 1rem; margin-bottom: 4px; }
    .home .hm-steps p { font-size: .88rem; }

    /* why */
    .home .hm-why-grid { gap: 36px; }
    .home .hm-why-video { aspect-ratio: 4 / 3; border-radius: 16px; }
    .home .hm-why-badge { right: 12px; bottom: -18px; padding: 12px 16px; }
    .home .hm-why-badge strong { font-size: 1.3rem; }
    .home .hm-why-copy { margin-top: 8px; }
    .home .hm-why-points { grid-template-columns: 1fr; gap: 22px; margin-top: 48px; padding-top: 32px; }
    .home .hm-why-points h3 { font-size: .98rem; margin-bottom: 4px; }
    .home .hm-why-points p { font-size: .88rem; }

    /* reviews */
    .home .hm-reviews .testimonial-card { padding: 28px 22px; border-radius: 16px; }
    .home .hm-reviews .testimonial-text { font-size: 1.05rem; margin-bottom: 22px; }
    .home .hm-reviews .review-videos-section { margin-top: 56px; }
    .home .hm-reviews .review-videos-title { font-size: .66rem; margin-bottom: 20px; }

    /* faq */
    .home .hm-faq-list .faq-question { padding: 20px 0; font-size: .95rem; gap: 16px; }
    .home .hm-faq-list .faq-answer p { padding: 0 0 20px; font-size: .9rem; }

    /* contact */
    .home .hm-contact-list { grid-template-columns: 1fr 1fr; gap: 22px 20px; margin: 32px 0 28px; padding-top: 26px; }
    .home .hm-contact-list dd { font-size: .88rem; }
    .home .hm-contact .contact-form { padding: 28px 20px 24px; border-radius: 16px; }
    .home .hm-contact .form-group input,
    .home .hm-contact .form-group select { font-size: 16px; }

    /* footer: explore + legal side by side instead of one long column */
    .home .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
    .home .footer-brand,
    .home .footer-contact { grid-column: 1 / -1; }
}

@media (max-width: 380px) {
    .home .container { padding: 0 16px; }
    .home .hm-hero h1 { font-size: 2rem; }
    .home .hm-section h2 { font-size: 1.55rem; }
    .home .hm-contact-list { grid-template-columns: 1fr; }
}
