/*
 * Public /inkas page chrome: header, hero, how-it-works, state blocks, aside
 * and footer.
 *
 * The application form itself is styled by step-form.css, which the Pro panel
 * loads too, so the form looks identical in both places. Everything here is
 * the public page's own shell and is prefixed ikp- to stay clear of the
 * shared ik-. Colour tokens are inherited from step-form.css (--ik-blue etc.)
 * so the chrome and the form cannot drift apart.
 */

.ikp-body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--ik-ink, #1b2a4a);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

.ikp-container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.ikp-skip {
    position: absolute;
    left: -9999px;
}

.ikp-skip:focus {
    left: 20px;
    top: 20px;
    z-index: 100;
    background: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .18);
}

/* ---- Buttons --------------------------------------------------------- */

.ikp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ik-blue, #1E9BD0);
    color: #fff;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 12px 22px;
    font-size: .95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
    box-shadow: 0 1px 2px rgba(16, 36, 64, .08);
}

.ikp-btn:hover {
    background: var(--ik-blue-dark, #1576a6);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(30, 155, 208, .28);
}

.ikp-btn:focus-visible {
    outline: 3px solid rgba(30, 155, 208, .45);
    outline-offset: 2px;
}

.ikp-btn-lg {
    padding: 15px 28px;
    font-size: 1.02rem;
    border-radius: 12px;
}

.ikp-btn-sm {
    padding: 9px 16px;
    font-size: .88rem;
}

.ikp-btn-outline {
    background: #fff;
    color: var(--ik-blue-dark, #1576a6);
    border-color: #cfe3f0;
    box-shadow: none;
}

.ikp-btn-outline:hover {
    background: var(--ik-blue-wash, #f4fafd);
    color: var(--ik-blue-dark, #1576a6);
    box-shadow: none;
}

.ikp-btn-ghost {
    display: inline-flex;
    align-items: center;
    font-size: .92rem;
    font-weight: 600;
    color: var(--ik-blue-dark, #1576a6);
    text-decoration: none;
    padding: 12px 4px;
    border-bottom: 1px solid transparent;
}

.ikp-btn-ghost:hover {
    color: var(--ik-blue-dark, #1576a6);
    border-bottom-color: currentColor;
}

/* ---- Header ---------------------------------------------------------- */

.ikp-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid #e9eff5;
}

.ikp-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 72px;
}

/* The full wordmark is 690x131; height drives it and width follows. */
.ikp-brand img {
    display: block;
    height: 34px;
    width: auto;
}

.ikp-header-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ikp-header-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 600;
    font-size: .92rem;
    color: #44536b;
    text-decoration: none;
    padding: 9px 12px;
    border-radius: 9px;
}

.ikp-header-link:hover {
    color: var(--ik-blue-dark, #1576a6);
    background: var(--ik-blue-wash, #f4fafd);
}

/* ---- Hero ------------------------------------------------------------ */

.ikp-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(1100px 420px at 88% -12%, rgba(30, 155, 208, .16), transparent 62%),
        linear-gradient(180deg, #f6fbfe 0%, #fff 100%);
    padding: 56px 0 52px;
    border-bottom: 1px solid #eef4f9;
}

.ikp-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
    align-items: center;
}

/* Partner lockup: two real logos, not icons, separated by a small x.
   max-width keeps the two wide wordmarks from setting a floor wider than a
   phone screen, which would push the whole page into horizontal scroll. */
.ikp-lockup {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    max-width: 100%;
    background: #fff;
    border: 1px solid #e4edf4;
    border-radius: 999px;
    padding: 10px 20px;
    margin-bottom: 22px;
    box-shadow: 0 2px 10px rgba(16, 36, 64, .05);
}

.ikp-lockup img {
    display: block;
    width: auto;
    min-width: 0;
    max-width: 100%;
    object-fit: contain;
}

.ikp-lockup-mh {
    height: 30px;
}

/* The Inkas mark is a dense crest + three-line wordmark in a 3:1 box, so it
   needs noticeably more height than the MEINHAUS wordmark before its text is
   legible at all. */
.ikp-lockup-inkas {
    height: 46px;
}

.ikp-lockup-x {
    display: inline-flex;
    color: #b4c3d4;
}

.ikp-eyebrow {
    text-transform: uppercase;
    letter-spacing: .09em;
    font-size: .74rem;
    font-weight: 700;
    color: var(--ik-blue-dark, #1576a6);
    margin: 0 0 10px;
}

.ikp-hero-title {
    font-size: clamp(1.75rem, 4.4vw, 2.7rem);
    font-weight: 800;
    line-height: 1.14;
    letter-spacing: -.02em;
    margin: 0 0 16px;
    max-width: 18ch;
}

.ikp-hero-body {
    font-size: 1.04rem;
    line-height: 1.65;
    color: #4a5567;
    margin: 0 0 26px;
    max-width: 56ch;
}

.ikp-cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 22px;
    margin-bottom: 26px;
}

.ikp-trust {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    margin: 0;
    padding: 0;
    font-size: .88rem;
    color: #5b6778;
}

.ikp-trust li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.ikp-trust i {
    color: var(--ik-blue, #1E9BD0);
    font-size: 1rem;
}

/* ---- Hero side: benefits --------------------------------------------- */

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

.ikp-benefits li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid #e4edf4;
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: 0 1px 3px rgba(16, 36, 64, .04);
}

.ikp-benefit-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: var(--ik-blue-tint, #eaf6fb);
    color: var(--ik-blue-dark, #1576a6);
    font-size: 1.15rem;
}

.ikp-benefits span:not(.ikp-benefit-icon) {
    display: block;
    font-size: .9rem;
    color: #5b6778;
    line-height: 1.5;
}

.ikp-benefits strong {
    display: block;
    color: var(--ik-ink, #1b2a4a);
    font-size: .97rem;
    margin-bottom: 3px;
}

.ikp-tagline {
    font-size: .82rem;
    line-height: 1.55;
    color: #8290a3;
    margin: 0;
    padding-left: 14px;
    border-left: 3px solid #e2ebf3;
}

/* ---- How it works ---------------------------------------------------- */

.ikp-steps-strip {
    background: #fbfdfe;
    border-bottom: 1px solid #eef4f9;
    padding: 34px 0;
}

.ikp-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    counter-reset: ikp-step;
}

.ikp-steps li {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 14px;
    align-items: center;
}

.ikp-step-num {
    grid-row: 1 / span 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--ik-blue, #1E9BD0);
    color: #fff;
    font-weight: 700;
    font-size: .95rem;
}

.ikp-steps strong {
    font-size: .98rem;
    color: var(--ik-ink, #1b2a4a);
}

.ikp-steps span:not(.ikp-step-num) {
    font-size: .88rem;
    color: #5b6778;
    line-height: 1.5;
}

/* ---- Main / state blocks --------------------------------------------- */

.ikp-main {
    padding: 44px 20px 64px;
    scroll-margin-top: 84px;
}

.ikp-notice {
    max-width: 620px;
    margin: 24px auto;
    text-align: center;
    background: #fff;
    border: 1px solid #e4edf4;
    border-radius: 16px;
    padding: 36px 28px;
    box-shadow: 0 2px 14px rgba(16, 36, 64, .05);
}

.ikp-notice h2 {
    font-size: 1.28rem;
    font-weight: 800;
    margin: 0 0 10px;
}

.ikp-notice p {
    font-size: .95rem;
    color: #5b6778;
    line-height: 1.6;
    margin: 0 0 18px;
}

.ikp-notice p:last-child {
    margin-bottom: 0;
}

.ikp-notice-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--ik-blue-tint, #eaf6fb);
    color: var(--ik-blue-dark, #1576a6);
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.ikp-notice-icon-ok {
    background: #e8f6ed;
    color: #2e7d4f;
}

.ikp-notice-icon-warn {
    background: #fdf1e3;
    color: #b06a12;
}

/* ---- Thank-you page -------------------------------------------------- */

.ikp-thanks {
    max-width: 680px;
    margin: 32px auto;
}

/* Centred on its own line: inline-flex (the hero's default) would let the
   success tick sit beside it instead of under it. */
.ikp-thanks .ikp-lockup {
    display: flex;
    width: max-content;
    max-width: 100%;
    margin: 0 auto 22px;
}

.ikp-thanks h1 {
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 12px;
}

.ikp-thanks-privacy {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    text-align: left;
    background: var(--ik-blue-wash, #f4fafd);
    border: 1px solid #d8e9f3;
    border-radius: 12px;
    padding: 14px 16px;
    margin: 0 0 18px;
    font-size: .88rem;
    line-height: 1.55;
    color: #4a5567;
}

.ikp-thanks-privacy i {
    color: var(--ik-blue-dark, #1576a6);
    font-size: 1.05rem;
    line-height: 1.4;
}

.ikp-thanks-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
}

/* The invitation a guest gets instead of a dashboard link they cannot use. */
.ikp-signup {
    text-align: left;
    background: var(--ik-blue-wash, #f4fafd);
    border: 1px solid #d8e9f3;
    border-radius: 14px;
    padding: 22px;
    margin-top: 26px;
}

.ikp-signup h2 {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0 0 8px;
    color: var(--ik-ink, #1b2a4a);
}

.ikp-signup h2 i {
    color: var(--ik-blue, #1E9BD0);
}

.ikp-signup > p {
    font-size: .92rem;
    line-height: 1.6;
    color: #4a5567;
    margin: 0 0 14px;
}

.ikp-signup-list {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
    display: grid;
    gap: 8px;
}

.ikp-signup-list li {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    font-size: .89rem;
    line-height: 1.5;
    color: #4a5567;
}

.ikp-signup-list i {
    color: #2e7d4f;
    font-size: .95rem;
    line-height: 1.5;
}

.ikp-signup .ikp-thanks-actions {
    justify-content: flex-start;
    margin-top: 0;
}

.ikp-signup-login {
    font-size: .88rem;
    color: #5b6778;
    margin: 14px 0 0;
}

.ikp-signup-login a {
    color: var(--ik-blue-dark, #1576a6);
    font-weight: 600;
}

@media (max-width: 575.98px) {
    .ikp-signup .ikp-thanks-actions .ikp-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ---- Loading skeleton ------------------------------------------------ */

.ikp-skeleton {
    max-width: 760px;
    margin: 0 auto;
}

.ikp-skeleton-card {
    background: #fff;
    border: 1px solid #e9eff5;
    border-radius: 16px;
    padding: 26px;
    margin-top: 16px;
}

.ikp-skeleton-bar {
    height: 14px;
    border-radius: 7px;
    margin-bottom: 16px;
    background: linear-gradient(90deg, #eef3f8 25%, #f7fafc 37%, #eef3f8 63%);
    background-size: 400% 100%;
    animation: ikp-shimmer 1.3s ease-in-out infinite;
}

.ikp-skeleton-bar-wide {
    height: 44px;
    border-radius: 12px;
    margin-bottom: 0;
}

.ikp-skeleton-bar-short {
    width: 58%;
}

.ikp-skeleton-card .ikp-skeleton-bar:last-child {
    margin-bottom: 0;
}

@keyframes ikp-shimmer {
    0% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

@media (prefers-reduced-motion: reduce) {
    .ikp-skeleton-bar { animation: none; }
    .ikp-btn:hover { transform: none; }
}

/* ---- Form layout ----------------------------------------------------- */

.ikp-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    align-items: start;
}

/* A grid item defaults to min-width:auto, so a long unbroken string (an
   uploaded file name, a pasted URL) would stretch the column and push the
   aside off-screen instead of wrapping. */
.ikp-form-main,
.ikp-aside {
    min-width: 0;
}

.ikp-prompt {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    background: var(--ik-blue-wash, #f4fafd);
    border: 1px solid #d4e9f5;
    border-radius: 12px;
    padding: 13px 16px;
    margin-bottom: 18px;
    font-size: .92rem;
    line-height: 1.55;
    color: #30475e;
}

.ikp-prompt i {
    color: var(--ik-blue-dark, #1576a6);
    font-size: 1.08rem;
    line-height: 1.4;
}

.ikp-prompt a {
    color: var(--ik-blue-dark, #1576a6);
    font-weight: 600;
}

.ikp-prompt-ok {
    background: #f2faf5;
    border-color: #cfe9d6;
}

.ikp-prompt-ok i {
    color: #2e7d4f;
}

.ikp-captcha {
    margin-bottom: 16px;
}

/* ---- Aside ----------------------------------------------------------- */

.ikp-aside-card {
    background: #fff;
    border: 1px solid #e4edf4;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 16px;
}

.ikp-aside-card h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .95rem;
    font-weight: 700;
    margin: 0 0 14px;
    color: var(--ik-ink, #1b2a4a);
}

.ikp-aside-card h3 i {
    color: var(--ik-blue, #1E9BD0);
}

.ikp-onfile,
.ikp-need {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ikp-onfile li {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 9px 0;
    border-top: 1px solid #f0f5f9;
}

.ikp-onfile li:first-child {
    border-top: 0;
    padding-top: 0;
}

.ikp-onfile span {
    font-size: .77rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #8290a3;
}

.ikp-onfile strong {
    font-size: .9rem;
    color: var(--ik-ink, #1b2a4a);
    font-weight: 600;
    word-break: break-word;
}

.ikp-need li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: .88rem;
    line-height: 1.5;
    color: #5b6778;
    padding: 8px 0;
}

.ikp-need i {
    color: var(--ik-blue, #1E9BD0);
    font-size: 1rem;
    line-height: 1.35;
}

.ikp-aside-privacy {
    background: var(--ik-blue-wash, #f4fafd);
    border-color: #d8e9f3;
}

.ikp-aside-privacy p {
    font-size: .85rem;
    line-height: 1.55;
    color: #4a5567;
    margin: 0;
}

/* ---- Footer ---------------------------------------------------------- */

.ikp-footer {
    border-top: 1px solid #e9eff5;
    background: #fafcfe;
    padding: 30px 0 22px;
    font-size: .86rem;
    color: #6b7280;
}

.ikp-footer-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
    padding-bottom: 18px;
    border-bottom: 1px solid #eef3f8;
}

.ikp-footer-logo {
    display: block;
    height: 26px;
    width: auto;
    margin-bottom: 10px;
    opacity: .75;
}

.ikp-footer p {
    margin: 0;
    line-height: 1.6;
    max-width: 62ch;
}

.ikp-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.ikp-footer-links a {
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
}

.ikp-footer-links a:hover {
    color: var(--ik-blue-dark, #1576a6);
    text-decoration: underline;
}

.ikp-copyright {
    padding-top: 16px;
    font-size: .8rem;
    color: #93a1b3;
}

/* ---- Small screens --------------------------------------------------- */

@media (max-width: 575.98px) {
    .ikp-header-nav .ikp-btn-sm {
        display: none;
    }

    .ikp-brand img {
        height: 28px;
    }

    .ikp-hero {
        padding: 32px 0 36px;
    }

    /* Both wordmarks are wide; at phone widths they have to shrink or the
       lockup alone is wider than the screen. */
    .ikp-lockup {
        gap: 10px;
        padding: 8px 14px;
    }

    .ikp-lockup-mh {
        height: 22px;
    }

    .ikp-lockup-inkas {
        height: 34px;
    }

    .ikp-cta-row {
        gap: 4px;
    }

    .ikp-cta-row .ikp-btn {
        width: 100%;
        justify-content: center;
    }

    .ikp-trust {
        gap: 8px 18px;
        font-size: .84rem;
    }

    .ikp-notice {
        padding: 28px 20px;
    }
}

/* ---- md up: how-it-works in a row ------------------------------------ */

@media (min-width: 768px) {
    .ikp-steps {
        grid-template-columns: repeat(3, 1fr);
        gap: 28px;
    }

    .ikp-footer-inner {
        grid-template-columns: 1.6fr 1fr;
    }

    .ikp-footer-links {
        justify-content: flex-end;
    }
}

/* ---- lg up: hero side by side, form beside the aside ----------------- */

@media (min-width: 992px) {
    .ikp-hero-grid {
        grid-template-columns: 1.15fr .85fr;
        gap: 56px;
    }

    .ikp-form-grid {
        grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
        gap: 30px;
    }

    /* The aside tracks the form on long steps. */
    .ikp-aside {
        position: sticky;
        top: 96px;
    }
}
