/* ============================================
   AcademyOS — Public Website Styles
   Bootstrap 5.3.2 overrides + custom components
   ============================================ */

:root {
    --ws-primary: #2563eb;
    --ws-primary-dark: #1d4ed8;
    --ws-primary-light: #dbeafe;
    --ws-secondary: #6366f1;
    --ws-accent: #10b981;
    --ws-dark: #0f172a;
    --ws-gray-50: #f8fafc;
    --ws-gray-100: #f1f5f9;
    --ws-gray-200: #e2e8f0;
    --ws-gray-600: #475569;
    --ws-gray-900: #0f172a;
    --ws-gradient: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #6366f1 100%);
    --ws-gradient-subtle: linear-gradient(135deg, #eff6ff 0%, #eef2ff 100%);
    --ws-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --ws-radius: 12px;
    --ws-radius-lg: 20px;
    --ws-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
    --ws-shadow-lg: 0 4px 24px rgba(0,0,0,0.08), 0 12px 48px rgba(0,0,0,0.04);
    --ws-shadow-hover: 0 8px 32px rgba(37,99,235,0.12), 0 4px 16px rgba(0,0,0,0.06);
}

body {
    font-family: var(--ws-font);
    color: var(--ws-gray-900);
    overflow-x: hidden;
}

/* ── Navbar ── */
.ws-navbar {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding: 0.6rem 0;
    transition: box-shadow 0.3s ease;
}

.ws-navbar.scrolled {
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}

.ws-navbar .navbar-brand {
    font-size: 1.25rem;
    color: var(--ws-dark);
}

.ws-navbar .nav-link {
    font-weight: 500;
    color: var(--ws-gray-600);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.ws-navbar .nav-link:hover,
.ws-navbar .nav-link.active {
    color: var(--ws-primary);
    background: var(--ws-primary-light);
}

.ws-btn-login {
    border-radius: 8px;
    font-weight: 500;
}

.ws-btn-cta {
    border-radius: 8px;
    font-weight: 600;
    background: var(--ws-primary);
    border-color: var(--ws-primary);
}

.ws-btn-cta:hover {
    background: var(--ws-primary-dark);
    border-color: var(--ws-primary-dark);
}

.lang-switch {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    border-radius: 6px;
    min-width: 36px;
}

/* ── Hero ── */
.ws-hero {
    background: var(--ws-gradient);
    padding: 8rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.ws-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(255,255,255,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.min-vh-75 { min-height: 55vh; }

.ws-hero-title {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.ws-hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.7;
    max-width: 540px;
}

.ws-btn-hero {
    border-radius: 12px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    background: #fff !important;
    color: var(--ws-primary) !important;
    border: none !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.ws-btn-hero:hover {
    background: #f0f4ff !important;
    color: var(--ws-primary-dark) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.2);
}

.ws-btn-hero-outline {
    border-radius: 12px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.4);
}

.ws-btn-hero-outline:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: rgba(255,255,255,0.7);
}

/* ── Bootstrap btn overrides (use theme colors) ── */
.btn-primary {
    background-color: var(--ws-primary) !important;
    border-color: var(--ws-primary) !important;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--ws-primary-dark) !important;
    border-color: var(--ws-primary-dark) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-outline-primary {
    color: var(--ws-primary) !important;
    border-color: var(--ws-primary) !important;
    background: transparent !important;
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
    background-color: var(--ws-primary) !important;
    border-color: var(--ws-primary) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.ws-hero-img {
    max-height: 420px;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.25));
    border-radius: var(--ws-radius-lg);
}

.ws-hero-placeholder {
    width: 280px;
    height: 280px;
    margin: 0 auto;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    color: rgba(255,255,255,0.3);
}

.ws-hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
}

.ws-hero-wave svg {
    width: 100%;
    height: 80px;
}

/* ── Page Hero (sub-pages) ── */
.ws-page-hero {
    background: var(--ws-gradient);
    padding: 8rem 0 4rem;
    position: relative;
}

.ws-page-hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, transparent, #fff);
}

.ws-page-hero-title {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
}

.ws-page-hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    max-width: 640px;
    margin: 0 auto;
}

/* ── Sections ── */
.ws-section {
    padding: 5rem 0;
}

.ws-section-alt {
    background: var(--ws-gray-50);
}

.ws-section--has-wave {
    position: relative;
    padding-bottom: 7rem;
}

.ws-section-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
}

.ws-section-wave svg {
    width: 100%;
    height: 80px;
}

.ws-section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--ws-dark);
    margin-bottom: 0.5rem;
}

.ws-section-subtitle {
    font-size: 1.1rem;
    color: var(--ws-gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* ── Benefit Cards ── */
.ws-benefit-card {
    background: #fff;
    border-radius: var(--ws-radius);
    padding: 1.75rem;
    border: 1px solid var(--ws-gray-200);
    transition: all 0.3s ease;
    text-align: center;
}

.ws-benefit-card[role="button"] {
    cursor: pointer;
}

@media (hover: hover) {
    .ws-benefit-card:hover {
        border-color: var(--ws-primary-light);
        box-shadow: var(--ws-shadow-hover);
        transform: translateY(-4px);
    }
}

.ws-benefit-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--ws-gradient-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--ws-primary);
    margin: 0 auto 1rem;
}

.ws-benefit-img {
    width: 128px;
    height: 128px;
    object-fit: contain;
    border-radius: 16px;
    display: block;
    margin: 0 auto;
}

.ws-benefit-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Feature Cards (homepage overview) ── */
.ws-feature-card {
    background: #fff;
    border-radius: var(--ws-radius);
    padding: 1.5rem;
    border: 1px solid var(--ws-gray-200);
    transition: all 0.3s ease;
}

@media (hover: hover) {
    .ws-feature-card:hover {
        border-color: var(--ws-primary-light);
        box-shadow: var(--ws-shadow-hover);
        transform: translateY(-2px);
    }
}

.ws-feature-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--ws-gradient-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--ws-primary);
    margin: 0 auto 1rem;
}

.ws-feature-card-img {
    width: 128px;
    height: 128px;
    object-fit: contain;
    border-radius: 16px;
}

.ws-feature-card[role="button"] {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (hover: hover) {
    .ws-feature-card[role="button"]:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    }
}

/* Feature Detail Modal */
.ws-feature-detail-modal {
    border: none;
    border-radius: 16px;
    overflow: hidden;
}

.ws-feature-modal-img {
    width: 160px;
    height: 160px;
    object-fit: contain;
    border-radius: 16px;
}

.ws-feature-modal-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: var(--ws-gradient-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--ws-primary);
    margin: 0 auto 0.75rem;
}

.ws-feature-modal-detail {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--ws-gray-600);
}

/* Flip card front image */
.ws-flip-front-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 16px;
    margin-bottom: 0.75rem;
    background: rgba(255,255,255,0.95);
    padding: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* ── Feature Detail Cards (features page) ── */
.ws-feature-detail-card {
    background: #fff;
    border-radius: var(--ws-radius);
    padding: 1.75rem;
    border: 1px solid var(--ws-gray-200);
    transition: all 0.3s ease;
}

@media (hover: hover) {
    .ws-feature-detail-card:hover {
        box-shadow: var(--ws-shadow-lg);
        transform: translateY(-2px);
    }
}

.ws-feature-detail-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--ws-gradient-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--ws-primary);
    flex-shrink: 0;
}

/* ── Feature Category Tabs ── */
.ws-feature-category-tabs {
    gap: 0.5rem;
}

.ws-feature-category-tabs .nav-link {
    color: var(--ws-gray-600) !important;
    background: var(--ws-gray-50) !important;
    border: 1px solid var(--ws-gray-200) !important;
    border-radius: 50px !important;
    padding: 0.5rem 1.25rem !important;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}

.ws-feature-category-tabs .nav-link:hover {
    background: var(--ws-primary-light) !important;
    color: var(--ws-primary-dark) !important;
    border-color: var(--ws-primary-light) !important;
}

.ws-feature-category-tabs .nav-link.active {
    background: var(--ws-primary) !important;
    color: #fff !important;
    border-color: var(--ws-primary) !important;
}

/* ── Feature Pill (all features list) ── */
.ws-feature-pill {
    background: #fff;
    border: 1px solid var(--ws-gray-200);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

.ws-feature-pill:hover {
    border-color: var(--ws-primary-light);
    background: var(--ws-gray-50);
}

/* ── Audience Sections ── */
.ws-audience-placeholder {
    width: 100%;
    height: 300px;
    background: var(--ws-gradient-subtle);
    border-radius: var(--ws-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--ws-primary);
    opacity: 0.5;
}

.ws-audience-list {
    list-style: none;
    padding: 0;
}

.ws-audience-list li {
    padding: 0.5rem 0;
    font-size: 1.05rem;
    display: flex;
    align-items: flex-start;
}

/* ── Plan Cards ── */
.ws-plan-card {
    background: #fff;
    border-radius: var(--ws-radius-lg);
    padding: 2rem;
    border: 2px solid var(--ws-gray-200);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

@media (hover: hover) {
    .ws-plan-card:hover {
        border-color: var(--ws-primary-light);
        box-shadow: var(--ws-shadow-lg);
        transform: translateY(-4px);
    }
}

.ws-plan-card-full {
    display: flex;
    flex-direction: column;
}

.ws-plan-featured {
    border-color: var(--ws-primary);
    box-shadow: 0 4px 24px rgba(37,99,235,0.15);
}

.ws-plan-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--ws-primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    z-index: 2;
}

.ws-plan-price {
    margin: 1rem 0;
}

.ws-price-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--ws-dark);
    line-height: 1;
}

.ws-price-currency {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ws-gray-600);
    vertical-align: super;
}

.ws-price-period {
    font-size: 0.9rem;
    color: var(--ws-gray-600);
}

.ws-plan-limits li {
    padding: 0.35rem 0;
    font-size: 0.9rem;
}

/* ── Vertical Tabs (pricing / comparison) ── */
.ws-vertical-tabs .nav-link {
    background: #fff !important;
    color: var(--ws-gray-600) !important;
    border: 2px solid var(--ws-gray-200);
    border-radius: var(--ws-radius) !important;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.7rem 1.75rem;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.ws-vertical-tabs .nav-link:hover {
    border-color: var(--ws-primary) !important;
    color: var(--ws-primary) !important;
    background: var(--ws-primary-light) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.ws-vertical-tabs .nav-link.active {
    background: var(--ws-primary) !important;
    color: #fff !important;
    border-color: var(--ws-primary) !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.ws-vertical-tabs .nav-link .ws-vtab-icon {
    font-size: 1.4rem;
}

.ws-vertical-tabs .nav-link.active .ws-vtab-icon {
    color: #fff;
}

/* ── Billing Toggle ── */
.ws-billing-switch .form-check-input {
    width: 3em;
    height: 1.5em;
    cursor: pointer;
}

.ws-billing-switch .form-check-input:checked {
    background-color: var(--ws-primary);
    border-color: var(--ws-primary);
}

/* ── Comparison Table ── */
.ws-comparison-table {
    font-size: 0.9rem;
}

.ws-comparison-table thead th {
    background: var(--ws-dark);
    color: #fff;
    font-weight: 600;
    padding: 1rem 0.75rem;
    border: none;
}

.ws-comparison-table thead th:first-child {
    border-radius: 12px 0 0 0;
}

.ws-comparison-table thead th:last-child {
    border-radius: 0 12px 0 0;
}

.ws-comparison-feature-col {
    min-width: 220px;
}

.ws-comparison-table tbody tr:hover {
    background: var(--ws-gray-50);
}

.ws-comparison-table td {
    padding: 0.75rem;
    vertical-align: middle;
    border-color: var(--ws-gray-200);
}

/* ── CTA Section ── */
.ws-cta-section {
    background: var(--ws-gradient);
    padding: 5rem 0;
    position: relative;
}

.ws-cta-section .lead {
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

/* ── Contact Form ── */
.ws-contact-form-card {
    background: #fff;
    border-radius: var(--ws-radius-lg);
    padding: 2.5rem;
    box-shadow: var(--ws-shadow-lg);
    border: 1px solid var(--ws-gray-200);
}

.ws-contact-info-card {
    background: var(--ws-dark);
    color: #fff;
    border-radius: var(--ws-radius-lg);
    padding: 2rem;
}

.ws-contact-info-card .text-muted,
.ws-contact-info-card a.text-muted {
    color: rgba(255,255,255,0.6) !important;
}

.ws-contact-info-card p {
    color: rgba(255,255,255,0.85);
}

.ws-contact-info-card a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
}

.ws-contact-info-card a:hover {
    color: #fff;
}

.ws-contact-info-card hr {
    border-color: rgba(255,255,255,0.15);
}

.ws-contact-info-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: var(--ws-primary-light);
    flex-shrink: 0;
}

.ws-contact-social {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.2s;
}

.ws-contact-social:hover {
    background: var(--ws-primary);
    color: #fff;
}

.ws-contact-benefits {
    background: var(--ws-gray-50);
    border-radius: var(--ws-radius);
    padding: 1.5rem;
}

/* ── Google Maps ── */
.ws-map-container {
    border-radius: var(--ws-radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}

.ws-map-container iframe {
    display: block;
    width: 100%;
    height: 280px;
    border: 0;
}

/* ── Flip Cards (Features Page) ── */
.ws-flip-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.ws-flip-card {
    perspective: 800px;
    height: 260px;
    cursor: pointer;
    outline: none;
}

.ws-flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease;
    transform-style: preserve-3d;
}

/* Flip on hover only for devices with hover capability (non-touch) */
@media (hover: hover) {
    .ws-flip-card:hover .ws-flip-card-inner {
        transform: rotateY(180deg);
    }
}

.ws-flip-card:focus .ws-flip-card-inner,
.ws-flip-card.is-flipped .ws-flip-card-inner {
    transform: rotateY(180deg);
}

.ws-flip-card-front,
.ws-flip-card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: var(--ws-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1.25rem;
}

.ws-flip-card-front {
    background: var(--ws-gradient);
    color: #fff;
    text-align: center;
    z-index: 2;
}

.ws-flip-card-front .ws-flip-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(255,255,255,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1rem;
    backdrop-filter: blur(4px);
}

.ws-flip-card-front h5 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.ws-flip-card-back {
    transform: rotateY(180deg);
    background: #fff;
    border: 1px solid var(--ws-gray-200);
    text-align: left;
    align-items: flex-start;
    justify-content: flex-start;
    box-shadow: var(--ws-shadow);
}

.ws-flip-back-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    width: 100%;
}

.ws-flip-card-back .ws-flip-back-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 8px;
    background: var(--ws-gradient-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--ws-primary);
}

.ws-flip-card-back h6 {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--ws-dark);
    margin: 0;
}

.ws-flip-card-back p {
    font-size: 0.82rem;
    color: var(--ws-gray-600);
    margin: 0;
    line-height: 1.55;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
}

.ws-flip-card-back .badge { margin-top: auto; }

@media (max-width: 991.98px) {
    .ws-flip-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767.98px) {
    .ws-flip-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .ws-flip-card { height: 220px; }
}

@media (max-width: 575.98px) {
    .ws-flip-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
    .ws-flip-card { height: 200px; }
    .ws-flip-card-front .ws-flip-icon { width: 44px; height: 44px; font-size: 1.2rem; }
    .ws-flip-card-front h5 { font-size: 0.85rem; }
}

/* ── Footer ── */
.ws-footer {
    background: var(--ws-gradient);
    padding: 2rem 0 0.5rem;
    position: relative;
}

.ws-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.15);
    pointer-events: none;
}

.ws-footer .container {
    position: relative;
    z-index: 1;
}

.ws-footer-links li {
    margin-bottom: 0.25rem;
}

.ws-footer-links a,
.ws-footer-links span {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 0.82rem;
    transition: color 0.2s;
}

.ws-footer-links a:hover {
    color: #fff;
}

.ws-footer-social {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s;
}

.ws-footer-social:hover {
    background: rgba(255,255,255,0.25);
    color: #fff;
    transform: translateY(-2px);
}

/* ── FAQ Accordion ── */
.accordion-item {
    border: 1px solid var(--ws-gray-200);
    border-radius: var(--ws-radius) !important;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.accordion-button {
    font-weight: 600;
    color: var(--ws-dark);
    padding: 1rem 1.25rem;
}

.accordion-button:not(.collapsed) {
    background: var(--ws-primary-light);
    color: var(--ws-primary-dark);
    box-shadow: none;
}

.accordion-button::after {
    transition: transform 0.2s;
}

/* ── Scroll Reveal Animation ── */
.ws-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.ws-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Legal Pages ── */
.ws-legal-content {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--ws-gray-600);
}

.ws-legal-content h2, .ws-legal-content h3, .ws-legal-content h4 {
    color: var(--ws-dark);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.ws-legal-content ul, .ws-legal-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.ws-legal-content a {
    color: var(--ws-primary);
}

/* ── 404 Page ── */
.ws-404-number {
    font-size: clamp(4rem, 15vw, 8rem);
}

/* ── Cookie Banner ── */
.ws-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--ws-dark);
    color: rgba(255,255,255,0.85);
    padding: 1.25rem 0;
    z-index: 9999;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.15);
    font-size: 0.9rem;
}

.ws-cookie-banner a {
    color: var(--ws-primary-light);
    text-decoration: underline;
}

.ws-cookie-banner .btn {
    white-space: nowrap;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

/* ── ANPC badges in footer ── */
.ws-anpc-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.ws-anpc-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: all 0.2s;
    min-height: 36px;
}

.ws-anpc-link:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

/* ── Trust Badges ── */
.ws-trust-badges-section {
    background: var(--ws-gray-50);
}
.ws-trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    opacity: 0.65;
    transition: opacity 0.3s;
}
.ws-trust-badge:hover {
    opacity: 1;
}
.ws-trust-badge-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}
.ws-trust-badge-icon {
    font-size: 1.75rem;
    color: var(--ws-primary);
}
.ws-trust-badge-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ws-gray-600, #6c757d);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ── Video Section ── */
.ws-video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: var(--ws-radius-lg);
    box-shadow: var(--ws-shadow-lg);
}
.ws-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--ws-radius-lg);
}

/* ── How It Works — Timeline ── */
.ws-hiw-timeline {
    position: relative;
    padding-top: 40px;
}
.ws-hiw-step {
    position: relative;
    text-align: center;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.ws-hiw-step.ws-hiw-visible {
    opacity: 1;
    transform: translateY(0);
}
.ws-hiw-dot-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    height: 48px;
}
.ws-hiw-dot {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: background 0.5s ease, color 0.5s ease, transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 3;
}
.ws-hiw-step.ws-hiw-visible .ws-hiw-dot {
    background: var(--ws-gradient);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(var(--ws-primary-rgb, 37,99,235), 0.35);
}
/* Connector lines between dots */
.ws-hiw-connector {
    position: absolute;
    top: 50%;
    height: 4px;
    margin-top: -2px;
    background: #e9ecef;
    border-radius: 2px;
    z-index: 1;
    overflow: hidden;
}
.ws-hiw-connector-left {
    right: calc(50% + 28px);
    left: 0;
}
.ws-hiw-connector-right {
    left: calc(50% + 28px);
    right: 0;
}
.ws-hiw-connector-fill {
    height: 100%;
    width: 0;
    background: var(--ws-primary);
    border-radius: 2px;
    transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.ws-hiw-connector-right .ws-hiw-connector-fill {
    float: left;
}
.ws-hiw-connector-left .ws-hiw-connector-fill {
    float: right;
}
.ws-hiw-step.ws-hiw-visible .ws-hiw-connector-fill {
    width: 100%;
}
.ws-hiw-card {
    padding: 2rem 1.5rem;
    border-radius: var(--ws-radius-lg);
    background: #fff;
    box-shadow: var(--ws-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}
.ws-hiw-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ws-shadow-hover);
}
.ws-hiw-icon {
    font-size: 2.5rem;
    color: var(--ws-primary);
}

/* ── Screenshots Gallery ── */
.ws-screenshot-card {
    border-radius: var(--ws-radius-lg);
    overflow: hidden;
    box-shadow: var(--ws-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    background: #fff;
}
.ws-screenshot-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ws-shadow-hover);
}
.ws-screenshot-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}
.ws-screenshot-caption {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    color: var(--ws-dark);
}

/* ── Counters Section ── */
.ws-counters-section {
    background: var(--ws-gradient);
    padding: 5rem 0;
}
.ws-counter-card {
    padding: 1.5rem;
}
.ws-counter-icon {
    font-size: 2.5rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 0.5rem;
}
.ws-counter-value {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
}
.ws-counter-label {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.75);
    font-weight: 500;
    margin-top: 0.25rem;
}

/* ��─ Sticky CTA Bar ── */
.ws-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--ws-primary);
    color: #fff;
    padding: 0.75rem 0;
    z-index: 9998;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.15);
    transition: transform 0.3s;
}
.ws-sticky-cta-text {
    font-size: 0.95rem;
    font-weight: 500;
}
.ws-sticky-cta .btn {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
}

/* ── Responsive ── */

/* -- Tablet (max-width: 991.98px) -- */
@media (max-width: 991.98px) {
    /* Navbar: mobile menu spacing when collapsed */
    .ws-navbar .navbar-collapse {
        padding: 1rem 0;
    }

    .ws-navbar .navbar-collapse .nav-link {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }

    .ws-navbar-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
        margin-top: 0.5rem;
    }

    .ws-navbar-actions .btn {
        width: 100%;
        text-align: center;
        padding: 0.625rem 1rem;
        min-height: 44px;
    }

    .ws-hero {
        padding: 7rem 0 5rem;
        text-align: center;
    }

    .ws-hero-subtitle {
        margin: 0 auto;
    }

    .ws-hero .d-flex {
        justify-content: center;
    }

    .ws-section {
        padding: 3.5rem 0;
    }

    .ws-section--has-wave {
        padding-bottom: 5rem;
    }

    .ws-plan-card {
        padding: 1.5rem;
    }

    /* Vertical tabs: scrollable on tablet */
    .ws-vertical-tabs {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        justify-content: flex-start !important;
        padding-bottom: 0.5rem;
    }
    .ws-vertical-tabs::-webkit-scrollbar { display: none; }
    .ws-vertical-tabs .nav-link {
        white-space: nowrap;
        flex-shrink: 0;
    }
}

/* -- Mobile landscape / large phones (max-width: 767.98px) -- */
@media (max-width: 767.98px) {
    .ws-hero {
        padding: 6rem 0 4rem;
    }

    .ws-page-hero {
        padding: 6rem 0 3rem;
    }

    .ws-section {
        padding: 2.5rem 0;
    }

    .ws-section--has-wave {
        padding-bottom: 4rem;
    }

    .ws-cta-section {
        padding: 3rem 0;
    }

    /* Hero buttons: stack on small screens */
    .ws-hero .d-flex.flex-wrap {
        flex-direction: column;
        align-items: stretch;
    }

    .ws-btn-hero,
    .ws-btn-hero-outline {
        width: 100%;
        text-align: center;
        padding: 0.875rem 1.5rem;
    }

    /* CTA button: prevent overflow from px-5 */
    .ws-cta-section .btn-lg {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    /* Contact form: reduce padding */
    .ws-contact-form-card {
        padding: 1.5rem;
    }

    .ws-contact-info-card {
        padding: 1.5rem;
    }

    /* Testimonial cards: reduce padding */
    .ws-testimonial-card .card-body {
        padding: 1.25rem;
    }

    .ws-testimonial-quote {
        font-size: 0.95rem;
        padding-left: 1rem;
        min-height: auto;
    }

    .ws-testimonial-photo,
    .ws-testimonial-photo-placeholder {
        width: 44px;
        height: 44px;
    }

    /* Plan limits text */
    .ws-plan-limits li {
        font-size: 0.82rem;
    }

    /* Feature category tabs: horizontal scroll */
    .ws-feature-category-tabs {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        justify-content: flex-start !important;
        padding-bottom: 0.5rem;
    }
    .ws-feature-category-tabs::-webkit-scrollbar { display: none; }
    .ws-feature-category-tabs .nav-link {
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* Footer: social icons touch-friendly */
    .ws-footer-social {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }

    /* Contact social: touch-friendly */
    .ws-contact-social {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }

    /* Comparison table: freeze first column hint */
    .ws-comparison-feature-col {
        min-width: 160px;
    }
}

/* -- Small phones (max-width: 575.98px) -- */
@media (max-width: 575.98px) {
    .ws-hero {
        padding: 5.5rem 0 3.5rem;
    }

    .ws-hero-title {
        font-size: 1.75rem;
    }

    .ws-hero-subtitle {
        font-size: 1rem;
    }

    .ws-page-hero {
        padding: 5.5rem 0 2.5rem;
    }

    .ws-page-hero-title {
        font-size: 1.5rem;
    }

    .ws-page-hero-subtitle {
        font-size: 0.95rem;
    }

    .ws-section {
        padding: 2rem 0;
    }

    .ws-section-title {
        font-size: 1.5rem;
    }

    .ws-section-subtitle {
        font-size: 0.95rem;
    }

    .ws-contact-form-card {
        padding: 1.25rem;
    }

    .ws-price-amount {
        font-size: 2rem;
    }

    /* Benefit cards: reduce padding on small screens */
    .ws-benefit-card {
        padding: 1.25rem;
    }

    .ws-benefit-img {
        width: 80px;
        height: 80px;
    }

    /* Feature card images */
    .ws-feature-card-img {
        width: 80px;
        height: 80px;
    }

    /* CTA section */
    .ws-cta-section {
        padding: 2.5rem 0;
    }

    .ws-cta-section .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }

    .ws-cta-section h2 {
        font-size: 1.4rem;
    }

    .ws-cta-section .lead {
        font-size: 0.95rem;
    }

    /* Audience section */
    .ws-audience-list li {
        font-size: 0.95rem;
    }

    /* Plan card */
    .ws-plan-card {
        padding: 1.25rem;
    }

    .ws-plan-badge {
        font-size: 0.65rem;
        padding: 0.25rem 0.6rem;
    }

    /* Footer adjustments */
    .ws-footer {
        padding: 1.5rem 0 0.5rem;
    }

    /* Cookie banner: ensure text is readable */
    .ws-cookie-banner {
        font-size: 0.82rem;
        padding: 1rem 0;
    }

    /* Min-vh on mobile */
    .min-vh-75 {
        min-height: auto;
    }

    /* Legal content */
    .ws-legal-content {
        font-size: 0.9rem;
    }

    /* Feature pills: full width on xs */
    .ws-feature-pill {
        font-size: 0.8rem;
        padding: 0.625rem 0.75rem;
    }

    /* Vertical tabs: smaller on mobile */
    .ws-vertical-tabs .nav-link {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }

    .ws-vertical-tabs .nav-link .ws-vtab-icon {
        font-size: 1.1rem;
    }

    /* New sections mobile */
    .ws-counter-value {
        font-size: 2rem;
    }
    .ws-counter-icon {
        font-size: 1.75rem;
    }
    .ws-hiw-connector {
        display: none;
    }
    .ws-hiw-timeline {
        padding-top: 0;
    }
    .ws-hiw-card {
        padding: 1.5rem 1rem;
    }
    .ws-screenshot-img {
        height: 180px;
    }
    .ws-sticky-cta-text {
        font-size: 0.82rem;
    }
    .ws-trust-badge-img {
        height: 32px;
    }
}
