/* =========================================================
   FinTruction — Footer + Newsletter (2026 redesign)
   Scoped to .ftr on <footer>. Adopts the services / integration
   theme: Lexend display (900), Manrope body (600-800), brand teal.
   Functional class names used by the newsletter JS
   (.foot-news-form / -input / -btn / -btn-arrow / -spinner,
    .foot-news-toast) are preserved and simply restyled here.
   ========================================================= */

.ftr {
    --ftr-teal: #009282;
    --ftr-teal-bright: #0eafa0;
    --ftr-teal-glow: #00c5b0;
    --ftr-ink: #f1faf8;
    --ftr-muted: rgba(220, 240, 236, .82);
    --ftr-faint: rgba(220, 240, 236, .58);
    --ftr-line: rgba(255, 255, 255, .12);
    --ftr-surface: rgba(255, 255, 255, .05);

    position: relative;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(820px 420px at 10% -8%, rgba(0, 146, 130, .18), transparent 60%),
        linear-gradient(180deg, #00232f 0%, #001a23 52%, #00090d 100%);
    font-family: Manrope, 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* hairline of teal along the very top edge */
.ftr::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--ftr-teal) 18%, var(--ftr-teal-bright) 50%, var(--ftr-teal) 82%, transparent);
    opacity: .85;
    z-index: 3;
}

.ftr .ftr-inner {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 56px 24px 0;
}

/* ============================================
   Watermark wordmark
   ============================================ */
.ftr .ftr-watermark {
    position: absolute;
    left: 50%;
    bottom: 40px;
    transform: translateX(-50%);
    z-index: 0;
    margin: 0;
    /* soft, transparent filled wordmark — a faint blurred ghost that melts into
       the footer. No outline/stroke, so no hard edges or intersecting boxes. */
    font-family: Lexend, Manrope, system-ui, sans-serif;
    font-weight: 700;
    font-size: clamp(48px, 6.2vw, 92px);
    line-height: .9;
    letter-spacing: -.005em;
    white-space: nowrap;
    color: rgba(160, 224, 212, .06);
    -webkit-text-stroke: 0;
    filter: blur(0.8px);
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .85) 14%, transparent 96%);
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, .85) 14%, transparent 96%);
    pointer-events: none;
    user-select: none;
}

/* ============================================
   Newsletter — compact inline signup (lives in the contact column)
   ============================================ */
.ftr .ftr-news { margin-top: 16px; max-width: 340px; }

/* header row mirrors the contact-list items (icon + label) */
.ftr .ftr-news-head { display: flex; gap: 13px; align-items: center; margin-bottom: 13px; }
.ftr .ftr-news-head-txt {
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--ftr-ink);
}
.ftr .ftr-news-head-txt em { font-style: normal; font-weight: 600; color: var(--ftr-muted); }

/* indent so the field lines up with the header text, not under the icon (36px icon + 13px gap) */
.ftr .foot-news-form { display: flex; gap: 8px; margin-left: 49px; }

.ftr .foot-news-input {
    flex: 1;
    min-width: 0;
    padding: 11px 14px;
    background: rgba(0, 0, 0, .25);
    border: 1px solid var(--ftr-line);
    border-radius: 10px;
    color: #fff;
    font-family: Manrope, system-ui, sans-serif;
    font-size: 14px;
    font-weight: 600;
    outline: none;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
    box-sizing: border-box;
}

.ftr .foot-news-input::placeholder { color: var(--ftr-faint); font-weight: 500; }

.ftr .foot-news-input:focus {
    border-color: var(--ftr-teal-bright);
    background: rgba(0, 0, 0, .15);
    box-shadow: 0 0 0 3px rgba(14, 175, 160, .16);
}

/* compact square arrow button */
.ftr .foot-news-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(180deg, var(--ftr-teal-glow) 0%, #00a896 50%, var(--ftr-teal) 100%);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 8px 18px -8px rgba(0, 146, 130, .7), inset 0 1px 0 rgba(255, 255, 255, .25);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.ftr .foot-news-btn svg { width: 18px; height: 18px; transition: transform .18s ease; }

.ftr .foot-news-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
    box-shadow: 0 12px 22px -8px rgba(0, 146, 130, .85), inset 0 1px 0 rgba(255, 255, 255, .3);
}

.ftr .foot-news-btn:hover svg { transform: translateX(2px); }

.ftr .foot-news-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2.5px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: foot-news-spin .6s linear infinite;
}

.ftr .foot-news-form.is-submitting .foot-news-btn { pointer-events: none; }
.ftr .foot-news-form.is-submitting .foot-news-btn-arrow { display: none; }
.ftr .foot-news-form.is-submitting .foot-news-spinner { display: inline-block; }

/* ============================================
   Main grid: brand | contact | links
   ============================================ */
.ftr .ftr-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.25fr 1fr 280px;
    column-gap: 56px;
    row-gap: 40px;
    align-items: start;
    padding-bottom: 48px;
}

.ftr .ftr-col-head {
    position: relative;
    font-family: Lexend, Manrope, system-ui, sans-serif;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 22px;
    padding-bottom: 13px;
}
/* teal accent rule — makes the label read as a designed heading, not a faint floating caption */
.ftr .ftr-col-head::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 28px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--ftr-teal-bright), var(--ftr-teal-glow));
}

/* ---- Brand column ---- */
/* Heavy geometric lockup echoing the FinTruction logo: chunky weight,
   tight tracking, teal-gradient "Truction", and a short teal foundation
   beam underneath. */
.ftr .ftr-wordmark {
    display: inline-block;
    position: relative;
    font-family: Lexend, Manrope, system-ui, sans-serif;
    font-weight: 900;
    font-size: 38px;
    letter-spacing: -.05em;
    line-height: .95;
    color: #fff;
    margin: 0 0 20px;
    padding-bottom: 12px;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}
.ftr .ftr-wordmark .tl {
    background: linear-gradient(95deg, var(--ftr-teal-glow) 0%, #2fe0cd 50%, var(--ftr-teal-bright) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
/* foundation beam */
.ftr .ftr-wordmark::after {
    content: "";
    position: absolute;
    left: 3px;
    bottom: 0;
    width: 52px;
    height: 5px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--ftr-teal-bright), var(--ftr-teal-glow));
    box-shadow: 0 0 16px -2px rgba(14, 175, 160, .6);
}

.ftr .ftr-blurb {
    color: var(--ftr-muted);
    font-size: 15.5px;
    font-weight: 600;
    line-height: 1.6;
    max-width: 340px;
    margin: 0 0 22px;
}

.ftr .ftr-trust {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px 12px 14px;
    border-radius: 14px;
    background: var(--ftr-surface);
    border: 1px solid var(--ftr-line);
    margin-bottom: 24px;
}
.ftr .ftr-trust-num {
    font-family: Lexend, Manrope, system-ui, sans-serif;
    font-weight: 900;
    font-size: 30px;
    line-height: 1;
    color: var(--ftr-teal-bright);
    letter-spacing: -.02em;
}
.ftr .ftr-trust-txt {
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--ftr-ink);
}
.ftr .ftr-trust-txt span { display: block; color: var(--ftr-muted); font-weight: 600; }

/* five-star rating inside the trust chip */
.ftr .ftr-stars {
    display: block !important;
    color: #ffc24b !important;
    font-size: 13px;
    letter-spacing: 2.5px;
    line-height: 1;
    margin-bottom: 5px;
    text-shadow: 0 1px 6px rgba(255, 184, 0, .35);
}

/* socials */
.ftr .ftr-social {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.ftr .ftr-badge {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--ftr-surface);
    border: 1px solid var(--ftr-line);
    transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.ftr .ftr-badge img { width: 20px; height: 20px; display: block; }
.ftr .ftr-badge svg { width: 22px; height: 22px; display: block; }
.ftr .ftr-badge:hover {
    transform: translateY(-2px);
    background: rgba(14, 175, 160, .16);
    border-color: rgba(14, 175, 160, .4);
}

/* ---- Contact column ---- */
.ftr .ftr-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.ftr .ftr-contact-list li {
    display: flex;
    gap: 13px;
    align-items: center;
    color: var(--ftr-ink);
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.5;
}
.ftr .ftr-contact-ico {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: var(--ftr-surface);
    border: 1px solid var(--ftr-line);
    color: var(--ftr-teal-bright);
}
.ftr .ftr-contact-ico svg { width: 18px; height: 18px; }
.ftr .ftr-contact-list li > a,
.ftr .ftr-contact-list li > span:not(.ftr-contact-ico) { min-width: 0; overflow-wrap: anywhere; }
.ftr .ftr-contact-list a { color: var(--ftr-ink); text-decoration: none; transition: color .15s ease; }
.ftr .ftr-contact-list a:hover { color: var(--ftr-teal-bright); }

/* ---- Links column ---- */
.ftr .ftr-quick {
    width: 100%;
    background: linear-gradient(160deg, rgba(0, 70, 62, .5) 0%, rgba(0, 38, 50, .38) 100%);
    border: 1px solid rgba(14, 175, 160, .28);
    border-radius: 18px;
    padding: 22px 20px;
}
.ftr .ftr-quick .ftr-col-head { text-align: left; padding-bottom: 14px; margin-bottom: 16px; }
.ftr .ftr-quick .ftr-col-head::after { left: 0; transform: none; }
.ftr .ftr-quick-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ftr .ftr-quick-links a {
    position: relative;
    color: var(--ftr-ink);
    text-decoration: none;
    text-align: left;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15.5px;
    transition: background .15s ease, color .15s ease;
}
.ftr .ftr-quick-links a:hover,
.ftr .ftr-quick-links a.active {
    background: rgba(14, 175, 160, .12);
    color: #fff;
}

.ftr .ftr-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    margin-top: 14px;
    padding: 15px 18px;
    border-radius: 12px;
    color: #062b29;
    text-decoration: none;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: .2px;
    border: 1px solid rgba(143, 217, 205, .5);
    background: linear-gradient(180deg, #2fe0cd 0%, var(--ftr-teal-bright) 55%, #00a896 100%);
    box-shadow: 0 12px 26px -12px rgba(14, 175, 160, .7), inset 0 1px 0 rgba(255, 255, 255, .4);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.ftr .ftr-login svg { width: 17px; height: 17px; color: #063a35; }
.ftr .ftr-login:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow: 0 18px 34px -12px rgba(14, 175, 160, .85), inset 0 1px 0 rgba(255, 255, 255, .5);
}

/* ============================================
   Bottom bar
   ============================================ */
.ftr .ftr-bottom {
    position: relative;
    z-index: 2;
    border-top: 1px solid var(--ftr-line);
    padding: 22px 0 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}
.ftr .ftr-copy {
    margin: 0;
    color: var(--ftr-muted);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .2px;
}
.ftr .ftr-copy a { color: var(--ftr-teal-bright); font-weight: 700; text-decoration: none; }
.ftr .ftr-copy a:hover { text-decoration: underline; }

@keyframes foot-news-spin { to { transform: rotate(360deg); } }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1000px) {
    .ftr .ftr-grid {
        grid-template-columns: 1fr 1fr;
        column-gap: 40px;
    }
    .ftr .ftr-col-links { grid-column: 1 / -1; }
    .ftr .ftr-quick { max-width: 440px; }
    .ftr .foot-news-form { margin-left: 0; }
}

@media (max-width: 720px) {
    .ftr .ftr-inner { padding: 44px 18px 0; }

    /* Single column, but everything stays LEFT-aligned (centered contact rows
       read as ragged/ugly on phones). */
    .ftr .ftr-grid {
        grid-template-columns: 1fr;
        row-gap: 36px;
        text-align: left;
    }
    .ftr .ftr-blurb { max-width: none; margin-left: 0; margin-right: 0; }
    .ftr .ftr-social { justify-content: flex-start; }
    .ftr .ftr-contact-list li { justify-content: flex-start; text-align: left; }
    .ftr .ftr-quick { max-width: 440px; margin: 0; }
    .ftr .ftr-bottom { justify-content: space-between; text-align: left; }
    .ftr .ftr-news { max-width: 360px; margin-left: 0; margin-right: 0; }
    .ftr .ftr-news-head { justify-content: flex-start; }
    .ftr .foot-news-form { margin-left: 0; }
}

@media (max-width: 420px) {
    .ftr .ftr-wordmark { font-size: 26px; }
    .ftr .ftr-contact-list li { font-size: 14.5px; }
}
