/* =========================
   V22 SIMPLICITY FUNNEL
   Simple front, strong engine behind
========================= */

.funnel-floating-cta {
    display: none;
}

/* =========================
   ROLE HOME
========================= */

.role-home-v19 {
    position: relative;
    max-width: 1180px;
    margin: 54px auto 70px;
    padding: 0 20px;
    overflow: hidden;
}

.role-home-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(26px);
    opacity: .45;
    pointer-events: none;
}

.role-home-glow-one {
    width: 280px;
    height: 280px;
    background: rgba(37,99,235,.15);
    top: 20px;
    left: -120px;
}

.role-home-glow-two {
    width: 320px;
    height: 320px;
    background: rgba(34,197,94,.12);
    right: -130px;
    bottom: 30px;
}

.role-home-top {
    position: relative;
    z-index: 1;
    max-width: 820px;
    margin: 0 auto 34px;
    text-align: center;
}

.role-home-badge,
.funnel-badge,
.funnel-mini-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #eff6ff, #ecfeff);
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .02em;
    border: 1px solid #bfdbfe;
    box-shadow: 0 8px 20px rgba(37,99,235,.10);
    margin-bottom: 16px;
}

.role-home-top h1 {
    margin: 0 0 14px;
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.04;
    letter-spacing: -0.055em;
    color: #0f172a;
}

.role-home-top p {
    margin: 0 auto;
    max-width: 760px;
    color: #475569;
    font-size: 18px;
    line-height: 1.72;
}

.role-home-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.role-home-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 390px;
    padding: 32px;
    border-radius: 34px;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 50px rgba(15,23,42,.07);
    transition: transform .22s ease, box-shadow .22s ease;
}

.role-home-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 28px 70px rgba(15,23,42,.12);
}

.role-home-card-patient {
    background: radial-gradient(circle at top right, rgba(37,99,235,.16), transparent 36%), linear-gradient(180deg,#ffffff,#eff6ff);
}

.role-home-card-dentist {
    background: radial-gradient(circle at top right, rgba(34,197,94,.12), transparent 38%), linear-gradient(180deg,#ffffff,#f8fafc);
}

.role-card-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.role-card-icon {
    font-size: 44px;
}

.role-card-label {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.78);
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 12px;
    font-weight: 900;
}

.role-home-card h2 {
    margin: 0 0 14px;
    font-size: 32px;
    line-height: 1.08;
    letter-spacing: -0.04em;
    color: #0f172a;
}

.role-home-card p {
    margin: 0 0 20px;
    color: #475569;
    font-size: 17px;
    line-height: 1.68;
}

.role-card-points {
    display: grid;
    gap: 10px;
    margin-bottom: 24px;
}

.role-card-points span {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 16px;
    background: rgba(255,255,255,.78);
    border: 1px solid #e2e8f0;
    color: #334155;
    font-weight: 800;
}

.role-card-cta {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 22px;
    border-radius: 18px;
    color: #fff;
    font-weight: 900;
}

.role-card-cta-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 14px 30px rgba(37,99,235,.22);
}

.role-card-cta-dark {
    background: #0f172a;
    box-shadow: 0 14px 30px rgba(15,23,42,.16);
}

.role-home-note {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 24px auto 0;
    padding: 14px 18px;
    text-align: center;
    border-radius: 999px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    font-weight: 800;
}

/* =========================
   FUNNEL PAGES
========================= */

.funnel-hero,
.funnel-section,
.funnel-final-cta {
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.funnel-hero {
    position: relative;
    overflow: hidden;
    margin-top: 34px;
    margin-bottom: 28px;
    padding-top: 44px;
    padding-bottom: 44px;
    border-radius: 34px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 22px 60px rgba(15,23,42,.08);
}

.funnel-hero-patient {
    background: radial-gradient(circle at top right, rgba(37,99,235,.18), transparent 38%), linear-gradient(180deg,#ffffff,#f8fbff);
}

.funnel-hero-dentist {
    background: radial-gradient(circle at top right, rgba(34,197,94,.14), transparent 38%), linear-gradient(180deg,#ffffff,#f8fafc);
}

.funnel-hero h1 {
    max-width: 850px;
    margin: 0 0 16px;
    font-size: clamp(36px, 4.4vw, 52px);
    line-height: 1.05;
    letter-spacing: -0.052em;
    color: #0f172a;
}

.funnel-hero p,
.funnel-section-head p,
.funnel-two-col p,
.funnel-final-cta p {
    max-width: 820px;
    margin: 0;
    color: #475569;
    font-size: 18px;
    line-height: 1.72;
}

.funnel-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 26px;
}

.funnel-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 24px;
    border-radius: 18px;
    text-decoration: none;
    font-weight: 900;
}

.funnel-btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    box-shadow: 0 14px 30px rgba(37,99,235,.20);
}

.funnel-btn-secondary {
    background: #f8fafc;
    color: #334155;
    border: 1px solid #e2e8f0;
}

.funnel-section {
    margin-top: 34px;
    margin-bottom: 34px;
}

.funnel-section-head {
    text-align: center;
    max-width: 880px;
    margin: 0 auto 24px;
}

.funnel-section-head h2,
.funnel-two-col h2,
.funnel-final-cta h2 {
    margin: 0 0 14px;
    font-size: 36px;
    line-height: 1.12;
    letter-spacing: -0.04em;
    color: #0f172a;
}

.funnel-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.funnel-step-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 26px;
    padding: 24px;
    box-shadow: 0 14px 34px rgba(15,23,42,.055);
}

.funnel-step-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    font-weight: 900;
    margin-bottom: 14px;
}

.funnel-step-card h3 {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 20px;
}

.funnel-step-card p {
    margin: 0;
    color: #475569;
    line-height: 1.65;
}

.funnel-soft-section {
    padding-top: 32px;
    padding-bottom: 32px;
    border-radius: 30px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.funnel-two-col {
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    gap: 26px;
    align-items: center;
}

.funnel-benefits-list {
    display: grid;
    gap: 12px;
}

.funnel-benefits-list div {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 15px 16px;
    color: #334155;
    font-weight: 800;
    box-shadow: 0 10px 26px rgba(15,23,42,.035);
}

.funnel-final-cta {
    margin-top: 38px;
    margin-bottom: 60px;
    padding-top: 34px;
    padding-bottom: 34px;
    text-align: center;
    border-radius: 32px;
    background: linear-gradient(135deg,#0f172a,#1e40af);
    color: #fff;
    box-shadow: 0 22px 60px rgba(15,23,42,.16);
}

.funnel-final-cta h2 {
    color: #fff;
}

.funnel-final-cta p {
    margin-left: auto;
    margin-right: auto;
    color: rgba(255,255,255,.82);
}

.funnel-final-cta .funnel-btn {
    margin-top: 22px;
}

/* =========================
   TABLET / SMALL DESKTOP
========================= */

@media (max-width: 900px) {
    .role-home-grid,
    .funnel-steps-grid,
    .funnel-two-col {
        grid-template-columns: 1fr;
    }

    .role-home-card {
        min-height: auto;
        padding: 28px;
    }

    .funnel-hero {
        margin-left: 14px;
        margin-right: 14px;
        padding: 30px 22px;
        border-radius: 26px;
    }

    .funnel-section-head h2,
    .funnel-two-col h2,
    .funnel-final-cta h2 {
        font-size: 28px;
    }

    .role-home-note {
        border-radius: 20px;
    }
}

/* =========================
   REAL MOBILE APP-LIKE POLISH
========================= */

@media screen and (max-width: 768px) and (pointer: coarse) {
    body {
        background: #f8fafc;
        -webkit-tap-highlight-color: transparent;
        padding-bottom: 92px;
    }

    .role-home-v19,
    .funnel-hero,
    .funnel-section,
    .funnel-final-cta {
        padding-left: 16px;
        padding-right: 16px;
    }

    .role-home-v19 {
        margin-top: 26px;
        margin-bottom: 34px;
    }

    .role-home-top {
        margin-bottom: 22px;
    }

    .role-home-top h1,
    .funnel-hero h1 {
        font-size: 32px;
        line-height: 1.05;
    }

    .role-home-top p,
    .funnel-hero p,
    .funnel-section-head p,
    .funnel-two-col p,
    .funnel-final-cta p {
        font-size: 16px;
        line-height: 1.65;
    }

    .role-home-grid,
    .funnel-steps-grid,
    .funnel-two-col {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .role-home-card,
    .funnel-step-card,
    .funnel-final-cta {
        border-radius: 24px;
        padding: 22px;
        box-shadow: 0 14px 34px rgba(15,23,42,0.07);
    }

    .role-home-card:hover {
        transform: none;
    }

    .role-card-icon {
        font-size: 36px;
    }

    .role-home-card h2,
    .funnel-section-head h2,
    .funnel-two-col h2,
    .funnel-final-cta h2 {
        font-size: 26px;
    }

    .role-card-cta,
    .funnel-btn {
        width: 100%;
        min-height: 54px;
        border-radius: 18px;
        font-size: 15px;
        font-weight: 900;
        justify-content: center;
    }

    .funnel-section {
        margin-top: 24px;
        margin-bottom: 24px;
    }

    .funnel-soft-section {
        padding-top: 22px;
        padding-bottom: 22px;
        border-radius: 24px;
    }

    .funnel-floating-cta {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 12px;
        z-index: 999;
        display: flex;
        gap: 10px;
        padding: 10px;
        border-radius: 24px;
        background: rgba(255,255,255,0.94);
        backdrop-filter: blur(14px);
        border: 1px solid rgba(226,232,240,0.95);
        box-shadow: 0 18px 45px rgba(15,23,42,0.18);
    }

    .funnel-floating-cta a {
        flex: 1;
        min-height: 50px;
        border-radius: 16px;
        font-size: 14px;
        font-weight: 900;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
    }

    .funnel-floating-primary {
        background: #2563eb;
        color: #fff;
    }

    .funnel-floating-secondary {
        background: #f1f5f9;
        color: #0f172a;
    }
}
