/* Shared theme for Features, Pricing, Blog — matches homepage / landing pages */

/* ─── Page hero ─── */
.pg-hero {
    position: relative;
    padding: 7.5rem 0 4.5rem;
    background: linear-gradient(145deg, #0f172a 0%, #1e1b4b 45%, #4c1d95 100%);
    color: #fff;
    overflow: hidden;
}

.pg-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 45% at 15% 30%, rgba(236, 72, 153, 0.22) 0%, transparent 55%),
        radial-gradient(ellipse 45% 40% at 90% 70%, rgba(99, 102, 241, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.pg-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.pg-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: rgba(236, 72, 153, 0.2);
    border: 1px solid rgba(236, 72, 153, 0.35);
    font-size: 0.8rem;
    font-weight: 600;
    color: #fbcfe8;
    margin-bottom: 1.25rem;
}

.pg-hero h1 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 1rem;
}

.pg-hero-lead {
    font-size: 1.1rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.82);
    max-width: 36rem;
}

/* ─── Section backgrounds ─── */
.pg-section-alt {
    background: linear-gradient(180deg, #fef3f9 0%, #fff 100%);
}

.pg-section-dark {
    background: linear-gradient(145deg, #1a0a2e 0%, #2d1b4e 50%, #4a1942 100%);
    color: #fff;
}

.pg-section-dark .hp-label {
    color: #f9a8d4;
}

.pg-section-dark .hp-h2 {
    color: #fff;
}

.pg-section-dark .hp-h2 em {
    background: linear-gradient(135deg, #f472b6, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
}

.pg-section-dark .hp-lead {
    color: rgba(255, 255, 255, 0.75);
}

/* ─── Feature cards ─── */
.feat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.feat-grid-2 {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.feat-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 1.75rem;
    transition: transform 0.25s, box-shadow 0.25s;
}

.feat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(236, 72, 153, 0.1);
}

.pg-section-dark .feat-card {
    background: rgba(255, 255, 255, 0.97);
}

.feat-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--gradient-vibrant);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin-bottom: 1rem;
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.25);
}

.feat-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.65rem;
    line-height: 1.3;
}

.feat-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 0.5rem;
}

.feat-card ul {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0;
}

.feat-card ul li {
    font-size: 0.84rem;
    color: var(--text-secondary);
    padding: 0.25rem 0;
    display: flex;
    gap: 0.45rem;
}

.feat-card ul li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: 700;
    flex-shrink: 0;
}

.feat-mini {
    text-align: center;
    padding: 1.5rem 1.25rem;
}

.feat-mini .feat-icon {
    margin-left: auto;
    margin-right: auto;
}

/* ─── Role / admin cards ─── */
.role-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.role-card-new {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 18px;
    padding: 1.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.role-card-new .feat-icon {
    margin-bottom: 0.85rem;
}

.role-card-new h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.role-card-new ul {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0;
    text-align: left;
}

.role-card-new ul li {
    font-size: 0.84rem;
    color: var(--text-secondary);
    padding: 0.3rem 0;
}

.role-card-new ul li::before {
    content: '✓ ';
    color: var(--primary-color);
    font-weight: 700;
}

/* ─── Tech grid ─── */
.tech-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.tech-item {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: box-shadow 0.2s;
}

.tech-item:hover {
    box-shadow: var(--shadow-md);
}

.tech-item .feat-icon {
    margin: 0 auto 0.85rem;
}

.tech-item h4 {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
}

.tech-item p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0;
}

/* ─── Pricing ─── */
.prc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
    align-items: start;
}

.prc-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s;
}

.prc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(236, 72, 153, 0.12);
}

.prc-card.featured {
    border: 2px solid var(--primary-color);
    box-shadow: 0 20px 50px rgba(236, 72, 153, 0.15);
    position: relative;
}

.prc-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gradient-vibrant);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
}

.prc-head {
    padding: 2rem 1.75rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.prc-head h3 {
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
    background: var(--gradient-vibrant);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.prc-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.prc-price {
    padding: 1.25rem 1.75rem;
    display: flex;
    align-items: baseline;
    gap: 0.15rem;
}

.prc-currency {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.prc-amount {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text-primary);
}

.prc-period {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-left: 0.35rem;
}

.prc-features {
    list-style: none;
    padding: 0 1.75rem 1.5rem;
    margin: 0;
    max-height: 380px;
    overflow-y: auto;
}

.prc-features li {
    font-size: 0.82rem;
    color: var(--text-secondary);
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.prc-features li strong {
    color: var(--text-primary);
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

.prc-features li:first-child strong {
    margin-top: 0;
}

.prc-foot {
    padding: 0 1.75rem 1.75rem;
}

.prc-foot .hp-btn {
    width: 100%;
    justify-content: center;
}

.prc-foot .hp-btn-outline {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.prc-foot .hp-btn-outline:hover {
    background: var(--gradient-soft);
}

/* Comparison table */
.prc-table-wrap {
    overflow-x: auto;
    margin-top: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.prc-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 0.88rem;
}

.prc-table thead tr {
    background: var(--gradient-vibrant);
    color: #fff;
}

.prc-table th,
.prc-table td {
    padding: 1rem 1.25rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.prc-table th:first-child,
.prc-table td:first-child {
    text-align: left;
    font-weight: 600;
}

.prc-table tbody tr:hover {
    background: #fef3f9;
}

/* FAQ */
.faq-list {
    max-width: 760px;
    margin: 2.5rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem 1.75rem;
}

.faq-item h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.faq-item p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ─── Blog ─── */
.blog-page-hero {
    position: relative;
    padding: 7.5rem 0 4rem;
    background: linear-gradient(145deg, #0f172a 0%, #1e1b4e 45%, #4c1d95 100%);
    color: #fff;
    text-align: center;
    overflow: hidden;
}

.blog-page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 40% at 70% 20%, rgba(236, 72, 153, 0.2) 0%, transparent 55%),
        radial-gradient(ellipse 40% 35% at 20% 80%, rgba(99, 102, 241, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.blog-page-hero .hp-container {
    position: relative;
    z-index: 1;
}

.blog-page-hero .pg-hero-badge {
    margin-bottom: 1.25rem;
}

.blog-page-hero .hp-btn-primary {
    box-shadow: 0 8px 28px rgba(236, 72, 153, 0.45);
}

.blog-page-hero h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.blog-page-hero p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.82);
    max-width: 560px;
    margin: 0 auto 2rem;
    line-height: 1.65;
}

.blog-filter-bar {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 64px;
    z-index: 40;
    padding: 1rem 0;
}

.blog-filter-bar .blog-carousel-filters {
    margin-bottom: 0;
}

.blog-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.75rem;
    margin-top: 2.5rem;
}

.blog-page-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s, box-shadow 0.25s;
}

.blog-page-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-page-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(236, 72, 153, 0.12);
}

.blog-page-card:hover .blog-page-card-link {
    color: inherit;
}

.blog-page-card-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blog-page-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.blog-page-card:hover .blog-page-card-img img {
    transform: scale(1.05);
}

.blog-page-cat {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--gradient-vibrant);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
}

.blog-page-body {
    padding: 1.25rem 1.35rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-page-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.5rem;
}

.blog-page-excerpt {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.55;
    flex: 1;
    margin-bottom: 1rem;
}

.blog-page-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: var(--text-secondary);
    padding-top: 0.85rem;
    border-top: 1px solid var(--border-color);
}

.blog-page-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-page-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gradient-vibrant);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-newsletter {
    background: linear-gradient(135deg, #312e81 0%, #7c3aed 50%, #db2777 100%);
    padding: 4rem 0;
    text-align: center;
    color: #fff;
}

.blog-newsletter h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    margin-bottom: 0.75rem;
}

.blog-newsletter p {
    font-size: 1.05rem;
    opacity: 0.9;
    max-width: 520px;
    margin: 0 auto 1.75rem;
}

.blog-newsletter-form {
    display: flex;
    gap: 0.75rem;
    max-width: 480px;
    margin: 0 auto;
}

.blog-newsletter-input {
    flex: 1;
    padding: 0.85rem 1.15rem;
    border-radius: 12px;
    border: none;
    font-size: 0.95rem;
    outline: none;
}

.blog-newsletter-form .hp-btn-primary {
    background: #fff;
    color: #7c3aed;
    -webkit-text-fill-color: #7c3aed;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.blog-empty {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--text-secondary);
}

.blog-empty i {
    font-size: 3rem;
    opacity: 0.4;
    margin-bottom: 1rem;
    display: block;
}

/* ─── Shared CTA ─── */
.pg-cta {
    background: linear-gradient(135deg, #312e81 0%, #7c3aed 50%, #db2777 100%);
    padding: 4.5rem 0;
    text-align: center;
    color: #fff;
}

.pg-cta h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    margin-bottom: 1rem;
}

.pg-cta p {
    font-size: 1.05rem;
    opacity: 0.9;
    max-width: 520px;
    margin: 0 auto 2rem;
}

.pg-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.pg-cta .hp-btn-primary {
    background: #fff;
    color: #7c3aed;
    -webkit-text-fill-color: #7c3aed;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}

.pg-btn-secondary {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    box-shadow: none;
}

.pg-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
    color: #fff;
}

/* ─── Blog share buttons ─── */
.blog-share-block {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.blog-share-heading {
    font-size: 1rem;
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
}

.blog-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.blog-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
}

.blog-share-btn:hover {
    transform: translateY(-2px);
    color: #fff;
}

.blog-share-facebook { background: #1877f2; box-shadow: 0 4px 14px rgba(24, 119, 242, 0.35); }
.blog-share-whatsapp { background: #25d366; box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35); }
.blog-share-linkedin { background: #0a66c2; box-shadow: 0 4px 14px rgba(10, 102, 194, 0.35); }

.blog-share-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem 1rem;
    border-top: 1px solid var(--border-color);
    background: #fafafa;
}

.blog-share-inline-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.blog-share-inline .blog-share-buttons {
    gap: 0.45rem;
}

.blog-share-inline .blog-share-btn {
    width: 2.15rem;
    height: 2.15rem;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
}

.blog-share-inline .blog-share-btn i {
    font-size: 0.95rem;
}

/* ─── Responsive ─── */
@media (max-width: 992px) {
    .prc-grid {
        grid-template-columns: 1fr;
        max-width: 440px;
        margin-left: auto;
        margin-right: auto;
    }

    .prc-features {
        max-height: none;
    }
}

@media (max-width: 768px) {
    .blog-filter-bar {
        top: 56px;
    }

    .blog-page-grid {
        grid-template-columns: 1fr;
    }

    .blog-newsletter-form {
        flex-direction: column;
    }
}
