/* FIN_CONVERT_BLUE - CRO Optimized Style (Banking/Strict) */

:root {
    --primary: #2563eb; /* Royal Blue */
    --primary-hover: #1d4ed8;
    --primary-light: #dbeafe;
    --bg-color: #f1f5f9; /* Slate 100 */
    --card-bg: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #cbd5e1;
    --accent: #e11d48; /* Rose/Red */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.fin-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    padding-bottom: 70px; /* Space for sticky mobile CTA */
}

.fin-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 16px;
}

/* HEADER */
.fin-header {
    background: var(--primary);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.fin-logo img {
    height: 32px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.header-btn {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.4);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}

.header-btn:hover {
    background-color: #ffffff;
    color: var(--primary);
}

/* HERO */
.fin-hero {
    text-align: center;
    padding: 36px 0 24px;
}

.fin-hero h1 {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 12px;
    color: var(--text-main);
}

.fin-hero h1 span {
    color: var(--accent);
}

.hero-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.hero-subtitle strong {
    color: var(--primary);
}

.trust-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    background: var(--card-bg);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.badge img {
    height: 20px;
}

.badge-text {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
}

/* STEPS */
.fin-steps {
    padding: 0 0 24px;
}

.steps-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.step-item {
    display: flex;
    align-items: center;
    background: var(--card-bg);
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.step-number {
    background: var(--primary-light);
    color: var(--primary-hover);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    margin-right: 16px;
    flex-shrink: 0;
}

.step-text {
    font-size: 14px;
    font-weight: 600;
}

@media(min-width: 640px) {
    .steps-wrapper {
        flex-direction: row;
    }
    .step-item {
        flex: 1;
        flex-direction: column;
        text-align: center;
    }
    .step-number {
        margin-right: 0;
        margin-bottom: 8px;
    }
}

/* OFFERS SECTION */
.fin-offers {
    padding: 16px 0 32px;
}

.section-title {
    font-size: 18px;
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-main);
    letter-spacing: 0.5px;
}

.offers-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.offer-card {
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    position: relative;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.top-offer {
    border-top: 4px solid var(--primary);
    box-shadow: var(--shadow-md);
}

.offer-ribbon {
    background: var(--accent);
    color: #fff;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    padding: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.offer-card-top {
    padding: 16px 16px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--bg-color);
}

.offer-logo img {
    height: 65px;
    max-width: 180px;
    object-fit: contain;
}

.offer-rating {
    text-align: right;
}

.rating-count {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.offer-details {
    display: flex;
    justify-content: space-between;
    padding: 16px;
    background: var(--card-bg);
}

.detail-item {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.detail-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.detail-val {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
}

.accent-val {
    color: var(--accent);
}

.offer-cta {
    padding: 16px;
    background: var(--bg-color);
}

.btn-main {
    display: block;
    width: 100%;
    background: var(--primary);
    color: #fff;
    text-align: center;
    padding: 14px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, transform 0.1s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-main:active {
    transform: scale(0.98);
}

/* COMPACT OFFERS (Регулярні) */
.offer-details-compact {
    text-align: right;
}

.d-val {
    font-size: 16px;
    color: var(--text-main);
}

.d-lbl {
    font-size: 12px;
    color: var(--text-muted);
}

.offer-details-row {
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-color);
}

.rate-info {
    font-size: 13px;
    color: var(--text-muted);
}

.rate-info strong {
    color: var(--text-main);
}

.btn-small {
    background: var(--card-bg);
    color: var(--primary-hover);
    border: 1px solid var(--primary);
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    text-transform: uppercase;
}

/* LINKS */
.offer-links {
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: var(--bg-color);
}

.offer-links a {
    font-size: 11px;
    color: #94a3b8;
    text-decoration: none;
}
.offer-links a:hover {
    text-decoration: underline;
}

.compact-links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 16px;
    background: transparent;
    padding: 8px 16px 12px;
}

/* LEGAL ACCORDION */
.fin-legal {
    padding: 24px 0;
}

.accordion-btn {
    width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.accordion-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.legal-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 12px;
}

.legal-card {
    background: var(--card-bg);
    padding: 16px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    font-size: 12px;
    color: var(--text-muted);
    border-left: 3px solid var(--border-color);
}

.legal-card h4 {
    color: var(--text-main);
    font-size: 14px;
    margin-bottom: 8px;
}

.legal-card p {
    margin-bottom: 4px;
}

.legal-card a {
    color: var(--primary);
}

/* FOOTER */
.fin-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 32px 0;
    font-size: 12px;
}

.footer-top {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
}

.btn-outline {
    background: transparent;
    border: 1px solid #334155;
    color: #cbd5e1;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    width: 100%;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 24px;
    text-align: center;
}

.footer-bottom a {
    color: #cbd5e1;
}

@media(min-width: 640px) {
    .footer-top {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    .btn-outline {
        width: auto;
    }
}

/* MOBILE STICKY CTA */
.mobile-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card-bg);
    padding: 12px 16px;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
    z-index: 100;
    border-top: 1px solid var(--border-color);
}

@media(min-width: 768px) {
    .mobile-sticky-cta {
        display: none; /* Hide on desktop */
    }
    body.fin-body {
        padding-bottom: 0;
    }
}

/* PWA Download block */
.download.download3 {
    position: fixed;
    bottom: 80px; 
    right: 16px;
    background: var(--accent);
    color: #fff;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 14px;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    z-index: 90;
    display: none;
}

@media(max-width: 767px) {
    .download.download3 {
        left: 50%;
        transform: translateX(-50%);
        right: auto;
        bottom: 75px; 
        width: max-content;
    }
}
