/* ============================================================
   Sofiinvest landing — main-v4.css
   Design tokens extracted from Figma (node 2002-3357)
   ============================================================ */

:root {
    --cyan: #00b6e0;
    --cyan-dark: #00a2c7;
    --ink: #0b071d;
    --muted: #9f9fa9;
    --white: #ffffff;
    --card-border: #eaf7fa;
    --icon-bg: rgba(0, 162, 199, 0.08);
    --hero-sub: #f0f0f0;
    --accent: #00ff95;

    --font-head: "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-ui: "Urbanist", "Helvetica Neue", Arial, sans-serif;

    --radius-card: 15px;
    --radius-btn: 12px;
    --shadow-card: 0 8px 24px rgba(11, 7, 29, 0.06);

    --maxw: 1200px;
    --gutter: 120px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 84px;
}

body {
    margin: 0;
    font-family: var(--font-head);
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    line-height: 1.4;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

h1,
h2,
h3,
h4,
p {
    margin: 0;
}

.container {
    width: 100%;
    max-width: calc(var(--maxw) + var(--gutter) * 2);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-ui);
    font-weight: 900;
    font-size: 16px;
    line-height: 24px;
    padding: 12px 24px;
    border-radius: var(--radius-btn);
    cursor: pointer;
    border: none;
    white-space: nowrap;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

.btn--dark {
    background: var(--ink);
    color: var(--white);
}

.btn--lg {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 20px;
    height: 60px;
    padding: 18px 32px;
    width: 100%;
    max-width: 343px;
}

/* ---------- Header ---------- */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--cyan);
    border-bottom: 1px solid var(--white);
    transition: box-shadow 0.2s ease;
}

.header.is-stuck {
    box-shadow: 0 6px 20px rgba(11, 7, 29, 0.12);
}

.header__inner {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.brand__name {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 28px;
    line-height: 32px;
    color: var(--white);
}

.brand__mark {
    width: 32px;
    height: 32px;
    flex: none;
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav__link {
    font-family: var(--font-ui);
    font-weight: 500;
    font-size: 16px;
    letter-spacing: -0.48px;
    color: var(--ink);
    transition: opacity 0.15s ease;
}

.nav__link:hover {
    opacity: 0.7;
}

.nav__btn {
    padding: 12px 20px;
}

.nav__toggle {
    display: none;
    width: 40px;
    height: 40px;
    padding: 8px;
    border: none;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.nav__toggle svg {
    width: 24px;
    height: 24px;
}

/* ---------- Hero ---------- */
.hero {
    background: var(--cyan);
    overflow: hidden;
}

.hero__inner {
    display: grid;
    grid-template-columns: 1fr 468px;
    gap: 40px;
    align-items: center;
    min-height: 744px;
    padding: 60px 0;
}

.hero__content {
    max-width: 615px;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.hero__copy {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.hero__eyebrow {
    font-family: var(--font-head);
    font-size: 16px;
    line-height: 20px;
    text-transform: uppercase;
    color: var(--white);
}

.hero__title {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 72px;
    line-height: 78px;
    text-transform: capitalize;
    color: var(--ink);
}

.hero__amount {
    display: flex;
    align-items: baseline;
    gap: 10px;
    color: var(--white);
    font-family: var(--font-head);
    font-weight: 700;
    margin-top: 4px;
}

.hero__amount-small {
    font-size: 36px;
    line-height: 40px;
}

.hero__amount-big {
    font-size: 80px;
    line-height: 84px;
}

.hero__text {
    font-family: var(--font-head);
    font-size: 16px;
    line-height: 24px;
    color: var(--hero-sub);
}

.hero__badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero__badge img {
    height: 55px;
    width: auto;
}

.hero__visual {
    justify-self: end;
}

.hero__visual img {
    width: 468px;
    max-width: 100%;
}

/* ---------- Feature strip ---------- */
.feature-strip {
    padding: 48px 0;
}

.feature-strip__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    text-align: center;
}

.feature-strip__item {
    padding: 16px;
}

.feature-strip__title {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 28px;
    line-height: 32px;
    color: var(--ink);
    margin-bottom: 12px;
}

.feature-strip__desc {
    font-family: var(--font-head);
    font-size: 18px;
    line-height: 20px;
    color: var(--muted);
}

/* ---------- Section heading ---------- */
.section {
    padding: 72px 0;
}

.section__head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 40px;
}

.section__title {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 48px;
    line-height: 48px;
    color: var(--ink);
}

.section__subtitle {
    font-family: var(--font-head);
    font-size: 18px;
    line-height: 24px;
    color: var(--ink);
    margin-top: 16px;
}

/* Reviews heading uses Urbanist (per Figma) */
.reviews .section__title {
    font-family: var(--font-ui);
}

.reviews .section__subtitle {
    font-family: var(--font-ui);
}

/* ---------- Benefits ---------- */
.benefits__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.benefit {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: var(--white);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-card);
    padding: 16px;
}

.benefit__icon {
    flex: none;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: var(--icon-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyan-dark);
}

.benefit__icon svg {
    width: 24px;
    height: 24px;
}

.benefit__title {
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 24px;
    line-height: 28px;
    color: var(--ink);
    text-transform: capitalize;
    margin-bottom: 8px;
}

.benefit__desc {
    font-family: var(--font-head);
    font-size: 14px;
    line-height: 20px;
    color: var(--muted);
}

/* ---------- CTA banner ---------- */
.cta-banner {
    background: var(--cyan);
    text-align: center;
    padding: 40px 0;
}

.cta-banner__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.cta-banner__title {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 32px;
    line-height: 36px;
    color: var(--ink);
    max-width: 460px;
}

.cta-banner__text {
    font-family: var(--font-head);
    font-size: 18px;
    line-height: 28px;
    color: var(--ink);
    max-width: 524px;
}

/* ---------- Steps ---------- */
.steps__heading {
    font-family: var(--font-head);
    font-weight: 400;
    font-size: 36px;
    line-height: 42px;
    color: var(--ink);
    text-align: center;
}

.steps__heading strong {
    font-weight: 700;
}

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

.step {
    position: relative;
    background: var(--white);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-card);
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
}

.step__num {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--cyan);
    color: var(--white);
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step__img {
    height: 192px;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.step__img img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.step__title {
    font-family: var(--font-head);
    font-size: 24px;
    line-height: 28px;
    color: var(--ink);
}

.step__title strong {
    font-weight: 700;
}

.step__title span {
    font-weight: 300;
}

.step__desc {
    font-family: var(--font-head);
    font-size: 18px;
    line-height: 20px;
    color: var(--muted);
}

/* ---------- Partners ---------- */
.partners {
    text-align: center;
}

.partners__list {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 16px;
    align-items: center;
}

.partners__logo {
    height: 60px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--white);
    border: 1px solid #edeff3;
    box-shadow: 0 2px 8px rgba(11, 7, 29, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
}

.partners__logo--dark {
    background: var(--ink);
    border-color: var(--ink);
}

.partners__logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* ---------- APR disclosure ---------- */
.apr__title {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 32px;
    line-height: 40px;
    color: var(--ink);
    max-width: 700px;
    margin-bottom: 32px;
}

.apr__cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.apr__col-title {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 24px;
    line-height: 32px;
    color: var(--ink);
    margin-bottom: 16px;
}

.apr__col-text {
    font-family: var(--font-head);
    font-weight: 300;
    font-size: 18px;
    line-height: 28px;
    color: var(--ink);
}

.apr__col-text strong {
    color: var(--ink);
}

.apr__col-text li {
    list-style: disc;
    margin-left: 20px;
    margin-top: 6px;
}

/* ---------- Testimonials ---------- */
.reviews__track {
    overflow: hidden;
}

.reviews__viewport {
    display: flex;
    transition: transform 0.4s ease;
}

.reviews__slide {
    flex: 0 0 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.review {
    border: 1px solid var(--card-border);
    border-radius: var(--radius-card);
    padding: 16px;
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.review__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.review__avatar {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    overflow: hidden;
    flex: none;
}

.review__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review__name {
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 18px;
    line-height: 20px;
    color: var(--ink);
}

.review__loc {
    font-family: var(--font-ui);
    font-weight: 400;
    font-size: 14px;
    line-height: 18px;
    letter-spacing: -0.42px;
    color: var(--muted);
    margin-top: 4px;
}

.review__text {
    font-family: var(--font-ui);
    font-weight: 300;
    font-size: 18px;
    line-height: 28px;
    color: var(--ink);
}

.reviews__controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    margin-top: 32px;
}

.reviews__dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.reviews__dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    border: none;
    background: var(--card-border);
    cursor: pointer;
    padding: 0;
    transition: width 0.2s ease, background 0.2s ease;
}

.reviews__dot.is-active {
    width: 24px;
    background: var(--cyan);
}

.reviews__arrows {
    display: flex;
    gap: 16px;
}

.reviews__arrow {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid var(--card-border);
    background: var(--white);
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.reviews__arrow:hover {
    background: var(--cyan);
    color: var(--white);
    border-color: var(--cyan);
}

/* ---------- Contact form ---------- */
.contact {
    background: var(--cyan);
    padding: 96px 0;
    position: relative;
    overflow: hidden;
}

.contact__inner {
    display: grid;
    grid-template-columns: 314px 447px;
    gap: 24px;
    justify-content: center;
    align-items: start;
    position: relative;
    z-index: 2;
}

.contact__intro-title {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 48px;
    line-height: 52px;
    color: var(--ink);
    margin-bottom: 18px;
}

.contact__intro-text {
    font-family: var(--font-head);
    font-size: 18px;
    line-height: 24px;
    color: var(--ink);
}

.contact__decor {
    position: absolute;
    left: max(0px, calc((100% - (var(--maxw))) / 2));
    bottom: 40px;
    width: 343px;
    z-index: 1;
    pointer-events: none;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

/* Honeypot anti-bot field — visually hidden, off-screen (not display:none) */
.form__hp {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-ui);
    font-size: 16px;
    line-height: 24px;
    color: var(--ink);
}

.form__label svg {
    width: 16px;
    height: 16px;
}

.form__input,
.form__textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--white);
    border-radius: var(--radius-btn);
    padding: 16px;
    font-family: var(--font-head);
    font-size: 14px;
    color: var(--white);
    outline: none;
}

.form__input::placeholder,
.form__textarea::placeholder {
    color: rgba(255, 255, 255, 0.75);
}

.form__input:focus,
.form__textarea:focus {
    border-color: var(--ink);
    background: rgba(255, 255, 255, 0.18);
}

.form__textarea {
    min-height: 96px;
    resize: vertical;
    line-height: 20px;
}

.form__submit {
    width: 100%;
    height: 56px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 22px;
    background: var(--ink);
    color: var(--white);
    border: none;
    border-radius: var(--radius-btn);
    cursor: pointer;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.form__submit:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

.form__submit:disabled {
    opacity: 0.6;
    cursor: default;
    transform: none;
}

.form__note {
    text-align: center;
    font-family: var(--font-head);
    font-size: 16px;
    line-height: 24px;
    color: var(--ink);
}

.form__status {
    text-align: center;
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 15px;
    min-height: 20px;
}

.form__status.is-error {
    color: #b3001b;
}

.form__status.is-ok {
    color: #044d34;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--cyan);
    border-top: 1px solid var(--white);
    padding: 40px 0;
}

.footer__grid {
    display: grid;
    grid-template-columns: 332px 1fr 1fr;
    gap: 35px;
    align-items: start;
}

.footer__brand-row {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 8px;
}

.footer__copyright {
    font-family: var(--font-head);
    font-weight: 300;
    font-size: 14px;
    letter-spacing: 0.28px;
    color: var(--white);
    margin-bottom: 8px;
}

.footer__site {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-head);
    font-weight: 300;
    font-size: 15px;
    color: var(--white);
}

.footer__site svg {
    width: 22px;
    height: 22px;
}

.footer__col-title {
    font-family: var(--font-head);
    font-size: 19px;
    line-height: 21px;
    color: var(--ink);
    margin-bottom: 12px;
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__link {
    font-family: var(--font-head);
    font-weight: 300;
    font-size: 15px;
    color: var(--ink);
    text-decoration: underline;
}

.footer__disclaimer {
    font-family: var(--font-head);
    font-weight: 300;
    font-size: 12px;
    line-height: 18px;
    color: var(--ink);
}

/* ---------- Legal pages ---------- */
.legal {
    padding: 64px 0 80px;
}

.legal__title {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 40px;
    line-height: 46px;
    margin-bottom: 24px;
}

.legal h2 {
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 22px;
    margin: 32px 0 12px;
    color: var(--ink);
}

.legal p {
    font-size: 16px;
    line-height: 26px;
    color: #3a3746;
    margin-bottom: 14px;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1200px) {
    :root {
        --gutter: 40px;
    }

    .hero__inner {
        grid-template-columns: 1fr 400px;
        min-height: 0;
    }

    .hero__visual img {
        width: 400px;
    }
}

@media (max-width: 900px) {
    .hero__inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero__content {
        gap: 40px;
    }

    .hero__visual {
        justify-self: center;
    }

    .hero__title {
        font-size: 52px;
        line-height: 58px;
    }

    .hero__amount-big {
        font-size: 64px;
        line-height: 68px;
    }

    .feature-strip__grid,
    .benefits__grid,
    .steps__grid,
    .apr__cols {
        grid-template-columns: 1fr;
    }

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

    .contact__inner {
        grid-template-columns: 1fr;
        max-width: 480px;
    }

    .contact__decor {
        display: none;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    :root {
        --gutter: 16px;
    }

    /* Mobile nav: burger + dropdown panel */
    .nav__toggle {
        display: inline-flex;
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 8px 16px 16px;
        background: var(--cyan);
        border-bottom: 1px solid var(--white);
        box-shadow: 0 10px 24px rgba(11, 7, 29, 0.14);
        transform: translateY(-8px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    }

    .nav.is-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav__link {
        padding: 12px 4px;
        font-size: 18px;
    }

    .nav__btn {
        margin-top: 8px;
        padding: 14px 20px;
    }

    .hero__inner {
        padding: 48px 0;
        gap: 48px;
    }

    .section {
        padding: 48px 0;
    }

    .section__head {
        margin-bottom: 28px;
    }

    .section__title,
    .apr__title {
        font-size: 32px;
        line-height: 36px;
    }

    .steps__heading {
        font-size: 28px;
        line-height: 34px;
    }

    .hero__copy > div {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .hero__title {
        font-size: 44px;
        line-height: 78px;
    }

    .hero__amount {
        margin-top: 0;
    }

    .hero__amount-small {
        font-size: 36px;
        line-height: 40px;
    }

    .hero__amount-big {
        font-size: 56px;
        line-height: 60px;
    }

    .hero__text {
        font-size: 14px;
        line-height: 18px;
    }

    .hero__badges {
        flex-wrap: nowrap;
        justify-content: center;
    }

    .hero__badge {
        flex: 1 1 0;
        min-width: 0;
        display: flex;
        justify-content: center;
    }

    .hero__badge img {
        width: auto;
        height: 52px;
        max-width: 100%;
    }

    .cta-banner__title {
        font-size: 26px;
        line-height: 32px;
    }

    .btn--lg,
    .form__submit {
        width: 100%;
        max-width: none;
    }

    .reviews__arrows {
        display: none;
    }

    .contact {
        padding: 56px 0;
    }

    .contact__intro-title {
        font-size: 36px;
        line-height: 40px;
    }

    .partners__list {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px 24px;
    }

    .partners__logo:last-child {
        grid-column: 1 / -1;
        justify-self: center;
        width: calc(50% - 12px);
    }
}

@media (max-width: 420px) {
    .brand__name {
        font-size: 22px;
    }

    .hero__amount-big {
        font-size: 52px;
        line-height: 56px;
    }

    .hero__badge img {
        height: 46px;
    }
}
