/* ==========================================================================
   Components — Concentio Website
   Cards, badges, feature blocks, pricing, code snippets
   ========================================================================== */

/* --- Feature cards --- */
.feature-card {
    text-align: center;
    padding: 1.75rem 1.25rem;
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    background: var(--brand-50);
    color: var(--brand-600);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--neutral-900);
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.9375rem;
    color: var(--neutral-500);
    line-height: 1.6;
    margin-bottom: 0;
}

/* --- Step cards (How it works) --- */
.step-number {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--brand-600);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* --- Pricing cards --- */
.pricing-card {
    background: #fff;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-xl);
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: box-shadow 0.2s;
}

.pricing-card:hover {
    box-shadow: var(--shadow-md);
}

.pricing-card.featured {
    border-color: var(--brand-600);
    box-shadow: var(--shadow-md);
    position: relative;
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand-600);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    white-space: nowrap;
}

.pricing-card .plan-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--neutral-900);
    margin-bottom: 0.25rem;
}

.pricing-card .plan-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--neutral-950);
    line-height: 1.1;
}

.pricing-card .plan-price .currency {
    font-size: 1.25rem;
    font-weight: 600;
    vertical-align: super;
}

.pricing-card .plan-price .period {
    font-size: 0.9375rem;
    font-weight: 400;
    color: var(--neutral-400);
}

.pricing-card .plan-sessions {
    font-size: 0.875rem;
    color: var(--neutral-500);
    margin-bottom: 0.75rem;
}

.pricing-card .plan-description {
    font-size: 0.875rem;
    color: var(--neutral-400);
    line-height: 1.5;
    margin-bottom: 1.25rem;
    flex: 1;
}

.pricing-card .plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    flex: 1;
}

.pricing-card .plan-features li {
    padding: 0.375rem 0;
    font-size: 0.875rem;
    color: var(--neutral-600);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.pricing-card .plan-features li i {
    color: var(--success-500);
    margin-top: 2px;
    flex-shrink: 0;
}

/* --- Code snippet --- */
.code-snippet {
    background: var(--neutral-900);
    color: var(--neutral-200);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    font-family: "SF Mono", "Fira Code", "Fira Mono", Menlo, Consolas, monospace;
    font-size: 0.8125rem;
    line-height: 1.7;
    overflow-x: auto;
    position: relative;
}

.code-snippet .copy-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--neutral-700);
    color: var(--neutral-300);
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    cursor: pointer;
    transition: background 0.15s;
}

.code-snippet .copy-btn:hover { background: var(--neutral-600); }

/* --- Trust strip --- */
.trust-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    opacity: 0.5;
}

.trust-strip span {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--neutral-500);
    letter-spacing: 0.03em;
}

/* --- CTA banner --- */
.cta-banner {
    background: var(--neutral-950);
    color: #fff;
    border-radius: var(--radius-xl);
    padding: 3rem 2rem;
    text-align: center;
}

.cta-banner h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.cta-banner p {
    color: var(--neutral-400);
    margin-bottom: 1.5rem;
    font-size: 1.0625rem;
}

.cta-banner .btn-primary {
    --bs-btn-bg: #fff;
    --bs-btn-border-color: #fff;
    --bs-btn-color: var(--neutral-950);
    --bs-btn-hover-bg: var(--neutral-100);
    --bs-btn-hover-border-color: var(--neutral-100);
    --bs-btn-hover-color: var(--neutral-950);
    background-color: #fff;
    border-color: #fff;
    color: var(--neutral-950);
    font-weight: 600;
}

.cta-banner .btn-primary:hover {
    background-color: var(--neutral-100);
    border-color: var(--neutral-100);
    color: var(--neutral-950);
}

/* --- Language switcher --- */
.lang-switcher {
    position: relative;
    display: inline-block;
}

.lang-switcher-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.3rem 0.625rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--neutral-600);
    background: #fff;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
    white-space: nowrap;
    min-width: 140px;
}

.lang-switcher-btn:hover {
    border-color: var(--neutral-400);
}

.lang-switcher.open .lang-switcher-btn {
    border-color: var(--brand-500);
    box-shadow: 0 0 0 2px rgba(31, 55, 107, 0.1);
}

.lang-chevron {
    font-size: 0.625rem;
    margin-left: auto;
    transition: transform 0.15s;
}

.lang-switcher.open .lang-chevron {
    transform: rotate(180deg);
}

.lang-flag {
    display: inline-block;
    width: 1.25em;
    line-height: 1;
    border-radius: 2px;
}

.lang-name {
    flex: 1;
}

.lang-switcher-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 100%;
    background: #fff;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 0.25rem 0;
    z-index: 1050;
}

.lang-switcher.open .lang-switcher-menu {
    display: block;
}

.lang-switcher-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.875rem;
    color: var(--neutral-700);
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.1s;
}

.lang-switcher-item:hover {
    background: var(--neutral-50);
    color: var(--neutral-900);
    text-decoration: none;
}

.lang-switcher-item.active {
    background: var(--brand-50);
    color: var(--brand-700);
    font-weight: 600;
}

/* --- Documentation layout --- */
.docs-layout {
    display: flex;
    gap: 0;
    min-height: calc(100vh - 200px);
}

.docs-sidebar {
    width: 260px;
    flex-shrink: 0;
    border-right: 1px solid var(--neutral-200);
    background: var(--neutral-50);
    position: sticky;
    top: 64px;
    height: calc(100vh - 64px);
    overflow-y: auto;
    padding: 1.5rem 0;
    scrollbar-width: thin;
    scrollbar-color: var(--neutral-300) transparent;
}

.docs-sidebar::-webkit-scrollbar { width: 4px; }
.docs-sidebar::-webkit-scrollbar-track { background: transparent; }
.docs-sidebar::-webkit-scrollbar-thumb { background: var(--neutral-300); border-radius: 2px; }

.docs-nav { list-style: none; padding: 0; margin: 0; }

.docs-nav-group {
    padding: 0.25rem 1.25rem;
    margin-top: 1rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--neutral-400);
}

.docs-nav-group:first-child { margin-top: 0; }

.docs-nav-link {
    display: block;
    padding: 0.375rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--neutral-600);
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.docs-nav-link:hover {
    color: var(--neutral-900);
    background: rgba(0, 0, 0, 0.02);
    text-decoration: none;
}

.docs-nav-link.active {
    color: var(--brand-600);
    border-left-color: var(--brand-600);
    background: var(--brand-50);
    font-weight: 600;
}

.docs-content {
    flex: 1;
    min-width: 0;
    max-width: 800px;
    padding: 2.5rem 3rem;
}

.docs-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin-top: 0;
    margin-bottom: 0.75rem;
    padding-top: 1.5rem;
}

.docs-content h2:first-child { padding-top: 0; }

.docs-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--neutral-800);
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
}

.docs-content p {
    font-size: 0.9375rem;
    color: var(--neutral-600);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.docs-content ul,
.docs-content ol {
    font-size: 0.9375rem;
    color: var(--neutral-600);
    line-height: 1.8;
    margin-bottom: 1rem;
    padding-left: 1.25rem;
}

.docs-content li { margin-bottom: 0.25rem; }

.docs-section {
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--neutral-200);
}

.docs-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.docs-callout {
    background: var(--brand-50);
    border-left: 3px solid var(--brand-600);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 1rem 1.25rem;
    margin: 1rem 0 1.5rem;
    font-size: 0.875rem;
    color: var(--neutral-700);
    line-height: 1.6;
}

.docs-callout strong {
    color: var(--neutral-900);
}

.docs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    margin: 1rem 0 1.5rem;
}

.docs-table th {
    text-align: left;
    padding: 0.625rem 0.75rem;
    background: var(--neutral-50);
    border-bottom: 2px solid var(--neutral-200);
    font-weight: 600;
    color: var(--neutral-700);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.docs-table td {
    padding: 0.625rem 0.75rem;
    border-bottom: 1px solid var(--neutral-100);
    color: var(--neutral-600);
    vertical-align: top;
}

.docs-table tr:last-child td { border-bottom: none; }

.docs-table code {
    background: var(--neutral-100);
    padding: 0.125rem 0.375rem;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    color: var(--neutral-800);
}

.docs-content .code-snippet {
    margin: 1rem 0 1.5rem;
}

.docs-mobile-nav {
    display: none;
}

@media (max-width: 991.98px) {
    .docs-sidebar { display: none; }
    .docs-content { padding: 1.5rem 1rem; max-width: 100%; }
    .docs-mobile-nav {
        display: block;
        background: var(--neutral-50);
        border-bottom: 1px solid var(--neutral-200);
        padding: 0.75rem 1rem;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .docs-mobile-nav::-webkit-scrollbar { display: none; }
    .docs-mobile-nav a {
        display: inline-block;
        padding: 0.375rem 0.75rem;
        font-size: 0.8125rem;
        font-weight: 500;
        color: var(--neutral-600);
        text-decoration: none;
        border-radius: var(--radius-md);
        white-space: nowrap;
    }
    .docs-mobile-nav a:hover { background: var(--neutral-100); color: var(--neutral-900); text-decoration: none; }
    .docs-mobile-nav a.active { background: var(--brand-50); color: var(--brand-600); font-weight: 600; }
}
