/* CKY_ENTRY_PAGE_POLISH_V1
   Dedicated homepage/entry-page layout. Presentation only. */

body.cky-entry-page {
    display: block !important;
    width: 100%;
    max-width: 100%;
    min-height: 100dvh;
    padding: 0 !important;
    overflow-x: hidden;
    color: #172033;
    background:
        radial-gradient(circle at 12% 8%, rgba(49, 130, 206, .10), transparent 32%),
        radial-gradient(circle at 90% 18%, rgba(14, 116, 144, .08), transparent 29%),
        linear-gradient(180deg, #f7faff 0%, #edf3f9 100%);
}

.cky-entry-page .cky-entry-shell {
    width: min(1240px, 100%);
    min-height: 100dvh;
    margin: 0 auto;
    padding: 22px clamp(18px, 3.4vw, 42px) 18px;
    display: flex;
    flex-direction: column;
}

.cky-entry-page .cky-entry-topbar {
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 4px 2px 14px;
}

.cky-entry-page .cky-entry-brand {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #172033;
    text-decoration: none;
}

.cky-entry-page .cky-entry-brand-mark {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: inline-grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, #2563a8, #0f766e);
    box-shadow: 0 10px 24px rgba(37, 99, 168, .22);
    font-size: .82rem;
    font-weight: 900;
    letter-spacing: .04em;
}

.cky-entry-page .cky-entry-brand-copy {
    min-width: 0;
    display: grid;
    gap: 2px;
    text-align: left;
}

.cky-entry-page .cky-entry-brand-copy strong {
    color: #172033;
    font-size: 1.02rem;
    line-height: 1.2;
}

.cky-entry-page .cky-entry-brand-copy small {
    color: #718096;
    font-size: .76rem;
    line-height: 1.25;
}

.cky-entry-page .lang-switch,
.cky-entry-page .cky-entry-lang-switch {
    position: static !important;
    inset: auto !important;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1;
}

.cky-entry-page .lang-switch button {
    min-width: 58px;
    min-height: 40px;
    padding: 8px 15px;
    border: 1px solid rgba(148, 163, 184, .48);
    border-radius: 999px;
    background: rgba(255, 255, 255, .88);
    color: #475569;
    box-shadow: 0 4px 13px rgba(15, 23, 42, .04);
}

.cky-entry-page .lang-switch button:hover,
.cky-entry-page .lang-switch button.active-lang {
    border-color: #2f80c8;
    background: #2f80c8;
    color: #fff;
    transform: none;
}

.cky-entry-page .cky-entry-main {
    flex: 1 0 auto;
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(20px, 5vh, 54px) 0 clamp(28px, 6vh, 68px);
}

.cky-entry-page.cky-entry-form-open .cky-entry-main {
    align-items: flex-start;
    padding-top: 20px;
}

.cky-entry-page .container.cky-entry-card {
    width: min(1080px, 100%);
    max-width: 1080px;
    margin: 0 auto;
    padding: clamp(30px, 5vw, 62px);
    border: 1px solid rgba(203, 213, 225, .78);
    border-radius: 24px;
    background: rgba(255, 255, 255, .94);
    box-shadow:
        0 28px 70px rgba(15, 23, 42, .10),
        0 4px 16px rgba(15, 23, 42, .04);
    text-align: center;
    backdrop-filter: blur(10px);
}

.cky-entry-page .cky-entry-heading {
    max-width: 790px;
    margin: 0 auto 34px;
}

.cky-entry-page .cky-entry-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    margin-bottom: 15px;
    padding: 6px 12px;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563a8;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .02em;
}

.cky-entry-page .title {
    max-width: 850px;
    margin: 0 auto 13px;
    color: #172033;
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.14;
    letter-spacing: -.035em;
    text-wrap: balance;
}

.cky-entry-page .subtitle {
    max-width: 720px;
    margin: 0 auto;
    color: #64748b;
    font-size: clamp(1rem, 1.5vw, 1.16rem);
    line-height: 1.7;
    text-wrap: balance;
}

.cky-entry-page .options.cky-entry-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin: 0;
}

.cky-entry-page .card.cky-entry-choice {
    position: relative;
    min-width: 0;
    min-height: 222px;
    margin: 0;
    padding: 26px 27px 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
    border: 1px solid #dbe4ee;
    border-radius: 18px;
    background: #fff;
    color: #172033;
    text-align: left;
    cursor: pointer;
    appearance: none;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .055);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease, background .2s ease;
}

.cky-entry-page .card.cky-entry-choice::after {
    content: "";
    position: absolute;
    width: 160px;
    height: 160px;
    right: -72px;
    bottom: -92px;
    border-radius: 50%;
    background: rgba(49, 130, 206, .08);
    pointer-events: none;
}

.cky-entry-page .card.cky-entry-choice-provider::after {
    background: rgba(15, 118, 110, .085);
}

.cky-entry-page .card.cky-entry-choice:hover,
.cky-entry-page .card.cky-entry-choice:focus-visible {
    border-color: #7cb5e7;
    background: #fafdff;
    box-shadow: 0 18px 38px rgba(37, 99, 168, .13);
    transform: translateY(-3px);
    outline: none;
}

.cky-entry-page .card.cky-entry-choice-provider:hover,
.cky-entry-page .card.cky-entry-choice-provider:focus-visible {
    border-color: #6bbeb4;
    background: #fbfffe;
    box-shadow: 0 18px 38px rgba(15, 118, 110, .13);
}

.cky-entry-page .cky-entry-choice-badge {
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #eaf4ff;
    color: #2563a8;
    font-size: .76rem;
    font-weight: 800;
}

.cky-entry-page .cky-entry-choice-provider .cky-entry-choice-badge {
    background: #e8f7f4;
    color: #0f766e;
}

.cky-entry-page .cky-entry-choice-title {
    margin-top: 4px;
    color: #1f68a9;
    font-size: clamp(1.35rem, 2vw, 1.7rem);
    font-weight: 850;
    line-height: 1.24;
}

.cky-entry-page .cky-entry-choice-provider .cky-entry-choice-title {
    color: #0f766e;
}

.cky-entry-page .cky-entry-choice-copy {
    max-width: 95%;
    color: #59677a;
    font-size: .96rem;
    line-height: 1.65;
}

.cky-entry-page .cky-entry-choice-action {
    margin-top: auto;
    padding-top: 13px;
    color: #1f68a9;
    font-size: .9rem;
    font-weight: 850;
}

.cky-entry-page .cky-entry-choice-action::after {
    content: "  →";
}

.cky-entry-page .cky-entry-choice-provider .cky-entry-choice-action {
    color: #0f766e;
}

.cky-entry-page .form-section {
    width: min(860px, 100%);
    margin: 30px auto 0;
    padding: clamp(20px, 4vw, 34px);
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #f8fafc;
    box-shadow: inset 0 1px 0 #fff;
}

.cky-entry-page .form-section.hidden {
    display: none;
}

.cky-entry-page .form-section:not(.hidden) {
    scroll-margin-top: 22px;
}

.cky-entry-page .cky-entry-footer {
    flex: 0 0 auto;
    width: 100%;
    margin: 0 auto;
    padding: 12px 0 4px;
    border: 0;
    background: transparent;
}

.cky-entry-page .cky-entry-footer .cky-platform-links {
    justify-content: center;
    gap: 10px 22px;
}

.cky-entry-page .cky-entry-footer .cky-platform-links a {
    color: #47709d;
    font-size: .84rem;
    text-decoration: none;
}

.cky-entry-page .cky-entry-footer .cky-platform-links a:hover {
    color: #1d5f9d;
    text-decoration: underline;
}

/* Homepage contact control: compact and non-intrusive on all viewports. */
.cky-entry-page .cky-contact-widget {
    left: auto !important;
    right: 24px !important;
    top: auto !important;
    bottom: 24px !important;
    transform: none !important;
    z-index: 6000 !important;
}

.cky-entry-page .cky-contact-tab {
    width: 54px;
    height: 54px;
    min-height: 54px;
    padding: 0;
    border-radius: 50%;
}

.cky-entry-page .cky-contact-tab span:last-child {
    display: none;
}

.cky-entry-page .cky-contact-icon {
    font-size: 21px;
}

.cky-entry-page .cky-contact-panel {
    left: auto;
    right: 0;
    top: auto;
    bottom: 68px;
    border-radius: 18px;
    transform: translateY(14px);
}

.cky-entry-page .cky-contact-widget.is-open .cky-contact-panel {
    transform: translateY(0);
}

.cky-entry-page .cky-contact-widget.is-open .cky-contact-tab {
    transform: none;
}

@media (max-width: 760px) {
    .cky-entry-page .cky-entry-shell {
        padding: 12px 10px calc(20px + env(safe-area-inset-bottom));
    }

    .cky-entry-page .cky-entry-topbar {
        gap: 10px;
        padding: 2px 2px 10px;
    }

    .cky-entry-page .cky-entry-brand-mark {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
        border-radius: 12px;
        font-size: .72rem;
    }

    .cky-entry-page .cky-entry-brand-copy small {
        display: none;
    }

    .cky-entry-page .lang-switch {
        gap: 5px;
    }

    .cky-entry-page .lang-switch button {
        min-width: 0;
        min-height: 38px;
        padding: 7px 10px;
        font-size: .78rem;
    }

    .cky-entry-page .cky-entry-main {
        align-items: flex-start;
        padding: 12px 0 30px;
    }

    .cky-entry-page .container.cky-entry-card {
        padding: 25px 16px 20px;
        border-radius: 19px;
    }

    .cky-entry-page .cky-entry-heading {
        margin-bottom: 22px;
    }

    .cky-entry-page .cky-entry-eyebrow {
        margin-bottom: 11px;
        font-size: .7rem;
    }

    .cky-entry-page .title {
        font-size: clamp(1.72rem, 8vw, 2.18rem);
        letter-spacing: -.025em;
    }

    .cky-entry-page .subtitle {
        font-size: .94rem;
        line-height: 1.62;
    }

    .cky-entry-page .options.cky-entry-options {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .cky-entry-page .card.cky-entry-choice {
        min-height: 178px;
        padding: 20px 19px 18px;
        border-radius: 15px;
    }

    .cky-entry-page .cky-entry-choice-copy {
        max-width: 100%;
        font-size: .91rem;
    }

    .cky-entry-page .form-section {
        margin-top: 22px;
        padding: 17px 13px;
        border-radius: 15px;
    }

    .cky-entry-page .cky-entry-footer {
        padding-bottom: 82px;
    }

    .cky-entry-page .cky-entry-footer .cky-platform-links {
        gap: 8px 14px;
    }

    .cky-entry-page .cky-contact-widget {
        right: 14px !important;
        bottom: calc(18px + env(safe-area-inset-bottom)) !important;
    }

    .cky-entry-page .cky-contact-tab {
        width: 50px;
        height: 50px;
        min-height: 50px;
    }

    .cky-entry-page .cky-contact-panel {
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: calc(78px + env(safe-area-inset-bottom));
        width: auto;
        max-height: calc(100dvh - 112px);
        overflow-y: auto;
    }
}

@media (max-width: 390px) {
    .cky-entry-page .cky-entry-brand-copy strong {
        font-size: .9rem;
    }

    .cky-entry-page .lang-switch button {
        padding-inline: 8px;
    }

    .cky-entry-page .container.cky-entry-card {
        padding-inline: 13px;
    }
}
