:root {
    color-scheme: light;
    --background: #f6f8fb;
    --surface: #ffffff;
    --surface-soft: #eefaf0;
    --primary: #00a30e;
    --primary-dark: #007a0a;
    --accent: #ffbe2e;
    --text: #122033;
    --muted: #65758b;
    --border: #dce5f2;
    --shadow: 0 24px 70px rgba(0, 163, 14, 0.12);
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px clamp(20px, 5vw, 72px);
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    text-decoration: none;
}

.brand-logo {
    display: block;
    width: auto;
    height: 42px;
}

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), #43d454);
    color: #ffffff;
    font-size: 0.85rem;
}

.main-nav {
    display: flex;
    gap: 22px;
    color: var(--muted);
    font-weight: 600;
}

.main-nav a,
.product-card a,
.loan-card a,
.quick-grid a {
    text-decoration: none;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    background: var(--primary);
    color: #ffffff;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 14px 30px rgba(0, 163, 14, 0.24);
}

.button-small {
    min-height: 42px;
    padding-inline: 18px;
}

.button-secondary {
    background: #ffffff;
    color: var(--primary-dark);
    box-shadow: none;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 36px;
    align-items: center;
    padding: clamp(56px, 9vw, 112px) clamp(20px, 5vw, 72px);
    background:
        radial-gradient(circle at top left, rgba(255, 190, 46, 0.24), transparent 32%),
        linear-gradient(135deg, #eef5ff 0%, #ffffff 48%, #eaf3ff 100%);
}

.hero h1,
.section h2 {
    margin: 0;
    color: var(--text);
    line-height: 1.05;
}

.hero h1 {
    max-width: 820px;
    font-size: clamp(2.8rem, 7vw, 5.8rem);
    letter-spacing: -0.07em;
}

.hero-copy {
    max-width: 640px;
    margin: 24px 0;
    color: var(--muted);
    font-size: 1.2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.trust-note {
    color: var(--muted);
    font-size: 0.95rem;
}

.hero-card {
    position: relative;
    min-height: 420px;
    overflow: hidden;
    padding: 34px;
    border: 1px solid var(--border);
    border-radius: 34px;
    background:
        radial-gradient(circle at 74% 24%, rgba(0, 163, 14, 0.16), transparent 32%),
        var(--surface);
    box-shadow: var(--shadow);
}

.hero-card-copy {
    position: relative;
    z-index: 2;
    max-width: 250px;
}

.hero-card strong {
    display: block;
    margin: 14px 0;
    font-size: 1.7rem;
    line-height: 1.15;
}

.hero-person {
    position: absolute;
    right: -86px;
    bottom: 0px;
    z-index: 1;
    width: min(410px, 94%);
    max-width: none;
    pointer-events: none;
}

.loan-hero {
    background:
        radial-gradient(circle at top right, rgba(255, 190, 46, 0.28), transparent 32%),
        linear-gradient(135deg, #f2f7ff 0%, #ffffff 44%, #e8f1ff 100%);
}

.loan-calculator-card {
    display: grid;
    gap: 14px;
    padding: 34px;
    border: 1px solid var(--border);
    border-radius: 34px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.loan-calculator-card label {
    color: var(--muted);
    font-weight: 800;
}

.loan-calculator-card input[type="range"] {
    width: 100%;
    accent-color: var(--primary);
    cursor: pointer;
}

.amount-display {
    font-size: 1.7rem;
    font-weight: 800;
}

.range-labels {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 0.86rem;
}

.hero-card-label,
.eyebrow {
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section {
    padding: clamp(54px, 8vw, 92px) clamp(20px, 5vw, 72px);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 34px;
}

.section h2 {
    font-size: clamp(2rem, 4vw, 3.4rem);
    letter-spacing: -0.05em;
}

.section-heading p:not(.eyebrow),
.split p,
.intro-split p,
.quick-access p,
.about p,
.site-footer p {
    color: var(--muted);
}

.card-grid,
.loan-grid,
.tip-grid,
.quick-grid,
.mini-feature-grid {
    display: grid;
    gap: 22px;
}

.card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-card,
.loan-card,
.tip-grid article,
.about-panel,
.faq-list details,
.mini-feature-grid article {
    border: 1px solid var(--border);
    border-radius: 28px;
    background: var(--surface);
}

.product-card {
    display: flex;
    min-height: 360px;
    flex-direction: column;
    padding: 28px;
    box-shadow: 0 18px 45px rgba(18, 32, 51, 0.06);
}

.credit-card-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 120px;
    margin-bottom: 22px;
    padding: 8px 0;
    overflow: hidden;
}

.credit-card-logo img {
    display: block;
    width: 100%;
    max-width: 260px;
    max-height: 82px;
    object-fit: contain;
}

.credit-card-logo img[src$="klar.png"] {
    max-width: 230px;
    max-height: 90px;
}

.credit-card-logo span {
    color: var(--primary-dark);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.rating {
    align-self: flex-start;
    padding: 6px 12px;
    border-radius: 999px;
    background: #fff6d8;
    color: #8a5a00;
    font-weight: 800;
}

.product-card h3 {
    margin: 22px 0 8px;
    font-size: 1.45rem;
    line-height: 1.2;
}

.product-card p,
.product-card li {
    color: var(--muted);
}

.product-card ul {
    display: grid;
    gap: 8px;
    margin: 18px 0;
    padding-left: 20px;
}

.product-card a {
    margin-top: auto;
    color: var(--primary);
    font-weight: 800;
}

.intro-split {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 40px;
    align-items: start;
}

.intro-copy {
    display: grid;
    gap: 20px;
}

.mini-feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mini-feature-grid article {
    padding: 22px;
    color: var(--primary-dark);
    font-weight: 800;
}

.loan-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.loan-card {
    display: flex;
    min-height: 390px;
    flex-direction: column;
    padding: 26px;
    box-shadow: 0 18px 45px rgba(18, 32, 51, 0.06);
}

.provider-logo {
    display: grid;
    width: 100%;
    height: 98px;
    place-items: center;
    margin-bottom: 8px;
    color: #ffffff;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.provider-logo img {
    display: block;
    width: auto;
    max-width: 180px;
    max-height: 64px;
    object-fit: contain;
}

.provider-logo img[src$="credito365.webp"],
.provider-logo img[src$="moneyman.svg"] {
    max-width: 250px;
    max-height: 88px;
}

.provider-logo img[src$="credi-like-me.webp"] {
    max-width: 220px;
    max-height: 82px;
}

.provider-logo span {
    display: grid;
    width: 72px;
    height: 72px;
    place-items: center;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--primary), #43d454);
}

.loan-card h3 {
    margin: 22px 0 8px;
    font-size: 1.35rem;
}

.loan-card p,
.loan-card li {
    color: var(--muted);
}

.loan-card ul {
    display: grid;
    gap: 8px;
    margin: 18px 0;
    padding-left: 20px;
}

.loan-card a {
    margin-top: auto;
    color: var(--primary);
    font-weight: 800;
}

.process-cards {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.process-cards li {
    display: flex;
    gap: 16px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--surface);
}

.process-cards span {
    display: grid;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 15px;
    background: var(--primary);
    color: #ffffff;
    font-weight: 800;
}

.process-cards strong {
    display: block;
    margin-bottom: 4px;
}

.process-cards p {
    margin: 0;
}

.split,
.quick-access {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 40px;
    align-items: start;
}

.steps {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.steps li {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 18px;
    border-radius: 22px;
    background: var(--surface);
    border: 1px solid var(--border);
}

.steps span,
.tip-grid span {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 14px;
    background: var(--primary);
    color: #ffffff;
    font-weight: 800;
}

.approval {
    background: #0f2340;
    color: #ffffff;
}

.approval h2 {
    color: #ffffff;
}

.approval .section-heading p:not(.eyebrow) {
    color: #b8c7da;
}

.tip-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tip-grid article {
    padding: 24px;
}

.tip-grid p {
    margin-bottom: 0;
    color: var(--muted);
}

.quick-access {
    background: var(--surface-soft);
}

.quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quick-grid a {
    padding: 28px;
    border-radius: 28px;
    background: var(--surface);
    color: var(--primary-dark);
    font-size: 1.2rem;
    font-weight: 800;
    box-shadow: 0 12px 35px rgba(18, 32, 51, 0.05);
}

.about-panel {
    max-width: 980px;
    padding: clamp(28px, 5vw, 54px);
    background:
        linear-gradient(135deg, rgba(0, 163, 14, 0.08), transparent),
        var(--surface);
}

.faq-list {
    display: grid;
    gap: 14px;
}

.faq-list details {
    padding: 20px 24px;
}

.faq-list summary {
    cursor: pointer;
    font-weight: 800;
}

.faq-list p {
    margin-bottom: 0;
    color: var(--muted);
}

.site-footer {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 32px;
    padding: 42px clamp(20px, 5vw, 72px);
    background: #0b1728;
    color: #ffffff;
}

.site-footer p {
    margin-bottom: 0;
    font-size: 0.92rem;
}

.registration-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(0, 163, 14, 0.12), transparent 34%),
        var(--background);
}

.registration-shell {
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
    gap: 34px;
    align-items: start;
    padding: clamp(32px, 7vw, 84px) clamp(20px, 5vw, 72px);
}

.registration-shell.results-mode {
    grid-template-columns: 1fr;
}

.registration-shell.results-mode .registration-summary {
    display: none;
}

.registration-shell.results-mode .wizard-progress,
.registration-shell.results-mode .wizard-actions {
    display: none;
}

.registration-summary,
.wizard-card,
.results-section {
    border: 1px solid var(--border);
    border-radius: 34px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.registration-summary {
    position: sticky;
    top: 96px;
    padding: 34px;
}

.registration-summary h1 {
    margin: 0;
    font-size: clamp(2.2rem, 4vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.registration-summary p {
    color: var(--muted);
}

.comparison-count {
    display: inline-flex;
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--primary-dark);
    font-weight: 800;
}

.wizard-card {
    padding: clamp(24px, 4vw, 42px);
}

.wizard-progress {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 28px;
}

.wizard-progress span {
    display: grid;
    height: 42px;
    place-items: center;
    border-radius: 999px;
    background: #edf2fa;
    color: var(--muted);
    font-weight: 800;
}

.wizard-progress span.active {
    background: var(--primary);
    color: #ffffff;
}

.wizard-step {
    display: none;
}

.wizard-step.active {
    display: block;
}

.wizard-step h2,
.results-heading h2 {
    margin: 0 0 12px;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.wizard-step p,
.results-heading p {
    color: var(--muted);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.form-grid-compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-grid label,
.slider-field,
.radio-group {
    display: grid;
    gap: 8px;
    color: var(--text);
    font-weight: 800;
}

.form-grid input,
.form-grid select,
.phone-input {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #ffffff;
    color: var(--text);
    font: inherit;
}

.form-grid input,
.form-grid select {
    padding: 0 14px;
}

.phone-input {
    display: flex;
    align-items: center;
    overflow: hidden;
}

.phone-input strong {
    display: grid;
    align-self: stretch;
    place-items: center;
    padding: 0 14px;
    background: var(--surface-soft);
    color: var(--primary-dark);
}

.phone-input input {
    min-height: 46px;
    border: 0;
    border-radius: 0;
}

.checkbox-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 20px;
    color: var(--muted);
    font-weight: 600;
}

.checkbox-row input {
    margin-top: 5px;
}

.slider-field strong {
    font-size: 1.7rem;
}

.slider-field input[type="range"] {
    min-height: auto;
    padding: 0;
    accent-color: var(--primary);
    cursor: pointer;
}

.radio-group {
    margin: 22px 0 0;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 20px;
}

.radio-group legend {
    padding: 0 8px;
    font-weight: 800;
}

.radio-group label {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin-right: 18px;
    color: var(--muted);
}

.wizard-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 28px;
}

.wizard-actions button {
    border: 0;
    cursor: pointer;
}

.results-loader {
    display: grid;
    min-height: 360px;
    place-items: center;
    align-content: center;
    gap: 14px;
    text-align: center;
}

.results-loader h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.results-loader p {
    max-width: 520px;
    margin: 0;
    color: var(--muted);
}

.loader-spinner {
    width: 58px;
    height: 58px;
    border: 5px solid var(--surface-soft);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.85s linear infinite;
}

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

.results-section {
    margin: clamp(32px, 7vw, 84px) clamp(20px, 5vw, 72px);
    padding: clamp(24px, 4vw, 42px);
}

.results-heading h2 span {
    color: var(--primary);
}

.best-offers-label {
    display: flex;
    gap: 12px;
    align-items: center;
    margin: 28px 0;
    color: var(--primary);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.best-offers-label::after {
    content: "";
    height: 2px;
    flex: 1;
    background: #c8c8d4;
}

.offer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.offer-card {
    display: grid;
    gap: 12px;
    justify-items: center;
    padding: 28px;
    border: 3px solid #ffd814;
    border-radius: 18px;
    background: #f2f0ff;
    text-align: center;
}

.offer-logo {
    display: grid;
    width: 100%;
    min-height: 100px;
    place-items: center;
    border-radius: 22px;
    background: #ffffff;
    color: var(--primary);
    font-weight: 800;
    box-shadow: 0 10px 25px rgba(18, 32, 51, 0.08);
}

.offer-logo img {
    display: block;
    width: auto;
    max-width: 190px;
    max-height: 60px;
    object-fit: contain;
}

.offer-logo img[src$="credito365.webp"],
.offer-logo img[src$="moneyman.svg"] {
    max-width: 260px;
    max-height: 88px;
}

.offer-logo img[src$="credi-like-me.webp"] {
    max-width: 230px;
    max-height: 84px;
}

.offer-card h3 {
    margin: 0;
    font-size: 1.5rem;
}

.offer-stars {
    color: #ffca28;
    letter-spacing: 0.08em;
}

.offer-card small,
.offer-card p {
    color: var(--muted);
}

.offer-amount {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
}

.offer-card dl {
    display: grid;
    width: 100%;
    gap: 8px;
    margin: 0;
}

.offer-card dl div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    text-align: left;
}

.offer-card dt {
    color: var(--muted);
}

.offer-card dd {
    margin: 0;
    font-weight: 800;
}

.offer-rank {
    padding: 8px 14px;
    border: 1px solid #d8d5ef;
    border-radius: 999px;
    background: #ffffff;
    color: var(--muted);
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .main-nav {
        display: none;
    }

    .hero,
    .intro-split,
    .registration-shell,
    .split,
    .quick-access,
    .site-footer {
        grid-template-columns: 1fr;
    }

    .card-grid,
    .loan-grid,
    .offer-grid,
    .form-grid,
    .form-grid-compact,
    .mini-feature-grid,
    .tip-grid {
        grid-template-columns: 1fr;
    }

    .registration-summary {
        position: static;
    }

    .hero-card {
        min-height: 420px;
    }

    .hero-card-copy {
        max-width: 320px;
    }

    .hero-person {
        right: -60px;
        width: min(380px, 82%);
    }
}

@media (max-width: 560px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero-actions,
    .hero-actions .button,
    .quick-grid {
        width: 100%;
    }

    .quick-grid {
        grid-template-columns: 1fr;
    }
}
