/* Features page (/funktsioonid): same system as the frontpage, own namespace. */

.ft-body {
    background: #eef3fb;
    overflow-x: hidden;
}

.ft {
    --ft-blue: #004bc5;
    --ft-blue-dark: #003087;
    --ft-navy: #0b2554;
    --ft-sky: #eef3fb;
    --ft-wash: #e6eef9;
    --ft-snow: #ffffff;
    --ft-ink: #0b2554;
    --ft-mist: #586a86;
    --ft-line: #d4deee;
    --ft-ok: #004bc5;
    --ft-due: #8a4568;
    font-family: "Hanken Grotesk", "Quicksand", sans-serif;
    color: var(--ft-ink);
    background: var(--ft-sky);
}

.ft .rs-logo {
    font-family: "Quicksand", sans-serif;
}

.ft .public-navbar {
    background: rgba(238, 243, 251, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 0;
    padding: 1.25rem 0;
}

.ft .public-navbar .nav-link {
    font-family: inherit;
    font-weight: 500;
    color: var(--ft-ink);
}

.ft .public-navbar .nav-link:hover {
    color: var(--ft-blue);
}

.ft .public-nav-cta,
.ft .public-navbar .btn-primary {
    border-radius: 14px;
    font-family: inherit;
}

.ft-body .public-footer {
    border-top: 0;
}

.ft-shell {
    width: min(1120px, calc(100% - 2.5rem));
    margin-inline: auto;
}

.ft h1,
.ft h2 {
    font-weight: 500;
    letter-spacing: -0.04em;
    color: var(--ft-ink);
    text-wrap: balance;
}

.ft h1 {
    font-size: clamp(2.35rem, 5.6vw, 3.9rem);
    line-height: 1.05;
    margin: 0 0 1.5rem;
}

.ft h2 {
    font-size: clamp(1.7rem, 3vw, 2.45rem);
    line-height: 1.18;
    margin: 0 0 1.25rem;
    scroll-margin-top: 6rem;
}

.ft-lead {
    max-width: 34em;
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--ft-mist);
    margin: 0 0 1.75rem;
}

.ft-textlink {
    display: inline-block;
    font-weight: 600;
    color: var(--ft-blue);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
}

.ft-textlink:hover {
    color: var(--ft-blue-dark);
}

.ft-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.25rem;
    padding: 0.75rem 1.5rem;
    border-radius: 14px;
    font-family: inherit;
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-decoration: none;
    border: 0;
    line-height: 1;
}

.ft-btn--solid {
    background: var(--ft-blue);
    color: #fff;
}

.ft-btn--solid:hover {
    background: var(--ft-blue-dark);
    color: #fff;
}

.ft-btn--quiet {
    background: var(--ft-snow);
    color: var(--ft-ink);
    box-shadow: inset 0 0 0 1.5px var(--ft-line);
}

.ft-btn--quiet:hover {
    background: var(--ft-wash);
    color: var(--ft-ink);
}

.ft-btn--on-dark {
    background: #fff;
    color: var(--ft-blue);
}

.ft-btn--on-dark:hover {
    background: var(--ft-wash);
    color: var(--ft-blue-dark);
}

.ft-btn--ghost {
    background: transparent;
    color: #e8eef8;
    box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.32);
}

.ft-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.ft-btn:focus-visible,
.ft-tab:focus-visible,
.ft-textlink:focus-visible {
    outline: 2px solid var(--ft-blue);
    outline-offset: 3px;
}

.ft-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 2rem;
}

.ft-hero {
    position: relative;
    overflow-x: clip;
    padding: 2rem 0 3.5rem;
}

.ft-hero::before {
    content: "";
    position: absolute;
    width: 44rem;
    height: 44rem;
    right: -10rem;
    top: -8rem;
    background: radial-gradient(circle at center, rgba(0, 75, 197, 0.08) 0%, transparent 68%);
    pointer-events: none;
}

.ft-hero__grid {
    position: relative;
    display: grid;
    gap: 3rem;
}

.ft-hero__copy p {
    max-width: 32em;
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--ft-mist);
    margin: 0;
}

.ft-hero__copy p.ft-hero__note {
    margin-top: 1.25rem;
    font-size: 0.95rem;
    max-width: 30em;
}

.ft-hero__stage {
    display: flex;
    justify-content: center;
}

.ft-phone {
    width: min(19.25rem, 100%);
    background: var(--ft-navy);
    border-radius: 2rem;
    padding: 0.75rem 0.7rem 1.05rem;
    box-shadow: 0 28px 56px rgba(0, 75, 197, 0.14);
}

.ft-phone__chrome {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #9eb0cc;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.9rem 0.6rem;
}

.ft-phone__marks {
    width: 2.1rem;
    height: 0.35rem;
    border-radius: 999px;
    background: #9eb0cc;
    opacity: 0.7;
}

.ft-screen {
    background: #f5f8fc;
    border-radius: 1.35rem;
    padding: 1.25rem 1.15rem 1.35rem;
    min-height: 24.5rem;
    color: var(--ft-ink);
}

.ft-screen__group {
    margin: 0;
    font-weight: 600;
    font-size: 0.95rem;
}

.ft-screen__label {
    margin: 1.25rem 0 0;
    font-size: 0.8rem;
    color: var(--ft-mist);
}

.ft-screen__sum {
    margin: 0.2rem 0 0;
    font-size: 2.35rem;
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.ft-screen__sum.is-credit {
    color: var(--ft-ok);
}

.ft-screen__hint {
    margin: 0.45rem 0 1.25rem;
    font-size: 0.82rem;
    color: var(--ft-mist);
    line-height: 1.45;
}

.ft-screen__event {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0 0 0.4rem;
    font-weight: 600;
    font-size: 0.92rem;
}

.ft-rows {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ft-rows li {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-top: 1px solid var(--ft-line);
    font-size: 0.92rem;
    font-variant-numeric: tabular-nums;
}

.ft-rows .is-ok,
.ft-screen__event .is-ok {
    color: var(--ft-ok);
    font-weight: 600;
}

.ft-rows .is-due {
    color: var(--ft-due);
    font-weight: 600;
}

.ft-block {
    background: var(--ft-snow);
    padding: 4.75rem 0;
}

.ft-block--tint {
    background: var(--ft-wash);
}

.ft-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 2rem;
}

.ft-tab {
    appearance: none;
    border: 0;
    background: var(--ft-wash);
    color: var(--ft-mist);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.6rem 1.05rem;
    border-radius: 999px;
    cursor: pointer;
}

.ft-block--tint .ft-tab {
    background: var(--ft-snow);
}

.ft-tab.is-on {
    background: var(--ft-blue);
    color: #fff;
}

.ft-panel[hidden] {
    display: none;
}

.ft-panel__h {
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.25;
    margin: 0 0 0.75rem;
    text-wrap: balance;
}

.ft-panel__lead {
    max-width: 34em;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--ft-mist);
    margin: 0 0 1.5rem;
}

.ft-plist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.85rem;
    max-width: 34em;
}

.ft-plist li {
    position: relative;
    padding-left: 1.85rem;
    color: var(--ft-mist);
    line-height: 1.55;
}

.ft-plist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 999px;
    background: var(--ft-blue);
}

.ft-phoneband {
    display: grid;
    gap: 2.5rem;
    align-items: center;
}

.ft-card {
    width: min(24rem, 100%);
    margin-inline: auto;
    background: var(--ft-snow);
    border-radius: 1.5rem;
    padding: 1.6rem 1.5rem 1.5rem;
    box-shadow: 0 24px 48px rgba(0, 75, 197, 0.1), inset 0 0 0 1px var(--ft-line);
}

.ft-block .ft-card {
    box-shadow: 0 24px 48px rgba(0, 75, 197, 0.08), inset 0 0 0 1px var(--ft-line);
}

.ft-card--compact {
    padding: 1.25rem 1.3rem 1.3rem;
}

.ft-card__top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
}

.ft-card__who {
    margin: 0;
    font-weight: 600;
    font-size: 0.95rem;
}

.ft-card__meta,
.ft-card__k {
    margin: 0;
    font-size: 0.85rem;
    color: var(--ft-mist);
}

.ft-card__k {
    margin-bottom: 0.35rem;
}

.ft-card__due {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ft-due);
    white-space: nowrap;
}

.ft-card .ft-rows {
    margin-top: 1.15rem;
}

.ft-card__next {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.35rem 0.75rem;
    margin: 1.25rem 0 0;
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    background: var(--ft-wash);
    font-size: 0.92rem;
    font-variant-numeric: tabular-nums;
}

.ft-card__next span {
    color: var(--ft-mist);
}

.ft-card__next strong {
    font-weight: 600;
    white-space: nowrap;
}

.ft-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.ft-stats__n {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 500;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
    color: var(--ft-blue);
}

.ft-stats__l {
    margin: 0.2rem 0 0;
    font-size: 0.78rem;
    color: var(--ft-mist);
}

.ft-bar {
    height: 0.45rem;
    margin: 0.35rem 0 0;
    border-radius: 999px;
    background: var(--ft-wash);
    overflow: hidden;
}

.ft-bar__fill {
    display: block;
    height: 100%;
    width: 94.44%;
    border-radius: inherit;
    background: var(--ft-blue);
}

.ft-hand {
    display: grid;
    gap: 1rem;
    width: min(24rem, 100%);
    margin-inline: auto;
}

.ft-tiles {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    width: min(24rem, 100%);
    margin-inline: auto;
}

.ft-tiles li {
    background: var(--ft-snow);
    border-radius: 1.25rem;
    padding: 1.15rem 1.1rem 1.2rem;
    box-shadow: inset 0 0 0 1px var(--ft-line);
}

.ft-tiles i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    margin-bottom: 0.7rem;
    border-radius: 0.8rem;
    background: var(--ft-wash);
    color: var(--ft-blue);
}

.ft-tiles strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
}

.ft-caps {
    display: grid;
    gap: 1.75rem 2.5rem;
    margin: 0 0 1.75rem;
    padding: 0;
    list-style: none;
}

.ft-cap__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-bottom: 0.85rem;
    border-radius: 0.9rem;
    background: var(--ft-snow);
    color: var(--ft-blue);
    font-size: 1.05rem;
}

.ft-cap strong {
    display: block;
    font-size: 1.08rem;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 0.4rem;
}

.ft-cap__text {
    display: block;
    color: var(--ft-mist);
    line-height: 1.55;
}

.ft-live {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.ft-close {
    background: var(--ft-navy);
    color: #d9e3f2;
    padding: 5rem 0 5.25rem;
}

.ft-close h2 {
    color: #f4f7fc;
    max-width: 16em;
    margin-bottom: 1.75rem;
}

.ft-close .ft-cta {
    margin-top: 0;
}

@media (min-width: 900px) {
    .ft-shell {
        width: min(1120px, calc(100% - 4rem));
    }

    .ft-phoneband {
        grid-template-columns: minmax(0, 1.1fr) minmax(16rem, 0.9fr);
        gap: 4rem;
    }

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

    .ft-hand {
        position: relative;
    }

    .ft-hand::after {
        content: "";
        position: absolute;
        left: 1.6rem;
        top: 4.1rem;
        bottom: 4.1rem;
        border-left: 1px dashed var(--ft-line);
    }
}

@media (min-width: 1080px) {
    .ft-hero {
        padding: 3.25rem 0 5rem;
    }

    .ft-hero__grid {
        grid-template-columns: minmax(0, 1fr) 20rem;
        align-items: center;
        gap: 4.5rem;
    }

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

    .ft-block {
        padding-top: 6.5rem;
        padding-bottom: 6.5rem;
    }

    .ft-close {
        padding-top: 6.5rem;
        padding-bottom: 6.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ft-btn,
    .ft-tab {
        transition: none;
    }
}
