/* ===========================
   EROIDAN — MAIN STYLESHEET
   =========================== */

:root {
    --primary: #4f46e5;
    --primary-dark: #3730a3;
    --secondary: #06b6d4;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #0f172a;
    --gray: #64748b;
    --light-gray: #f1f5f9;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    line-height: 1.6;
}

/* ---- NAVBAR ---- */
.navbar {
    padding: 1rem 0;
    background: var(--white) !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary) !important;
    letter-spacing: -0.5px;
}

.navbar-brand span {
    color: var(--secondary);
}

.nav-link {
    font-weight: 500;
    color: var(--dark) !important;
    margin: 0 0.25rem;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--primary) !important;
}

/* ---- BUTTONS ---- */
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-1px);
}

.btn-lg {
    padding: 0.85rem 2rem;
    font-size: 1rem;
}

/* ---- HERO SECTION ---- */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 100px 0 60px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    letter-spacing: -1px;
}

.hero-title span {
    color: #fcd34d;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.85);
    margin: 1.5rem 0 2.5rem;
    line-height: 1.7;
}

.hero-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.hero-badge {
    background: rgba(255,255,255,0.15);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-hero-primary {
    background: var(--white);
    color: var(--primary);
    font-weight: 700;
    padding: 0.85rem 2rem;
    border-radius: 10px;
    border: none;
    font-size: 1rem;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-hero-primary:hover {
    background: #f8fafc;
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.btn-hero-secondary {
    background: transparent;
    color: var(--white);
    font-weight: 700;
    padding: 0.85rem 2rem;
    border-radius: 10px;
    border: 2px solid rgba(255,255,255,0.5);
    font-size: 1rem;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-hero-secondary:hover {
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border-color: white;
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    margin-top: 0.25rem;
}

.hero-image-wrapper {
    position: relative;
    z-index: 1;
}

.hero-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

.hero-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.hero-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.hero-card-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--dark);
}

.hero-card-subtitle {
    font-size: 0.75rem;
    color: var(--gray);
}

.progress-item {
    margin-bottom: 0.85rem;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 0.4rem;
}

.progress {
    height: 8px;
    border-radius: 50px;
    background: var(--light-gray);
}

.progress-bar {
    border-radius: 50px;
}

/* ---- SECTION STYLES ---- */
.section-badge {
    display: inline-block;
    background: #ede9fe;
    color: var(--primary);
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    line-height: 1.7;
}

/* ---- HOW IT WORKS ---- */
.how-section {
    padding: 100px 0;
    background: var(--light-gray);
}

.step-card {
    text-align: center;
    padding: 2rem 1.5rem;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0 auto 1.5rem;
}

.step-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.step-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.step-desc {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ---- MARKET CARDS ---- */
.market-section {
    padding: 100px 0;
}

.market-card {
    border-radius: 20px;
    padding: 3rem;
    height: 100%;
    transition: transform 0.3s;
    border: none;
}

.market-card:hover {
    transform: translateY(-5px);
}

.market-card-individual {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.market-card-school {
    background: linear-gradient(135deg, #06b6d4 0%, #0284c7 100%);
    color: white;
}

.market-card-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.market-card-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.market-card-desc {
    opacity: 0.9;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.market-feature-list {
    list-style: none;
    padding: 0;
    margin-bottom: 2.5rem;
}

.market-feature-list li {
    padding: 0.4rem 0;
    font-size: 0.95rem;
    opacity: 0.9;
}

.market-feature-list li i {
    margin-right: 0.5rem;
}

.btn-market {
    background: white;
    border: none;
    font-weight: 700;
    padding: 0.85rem 2rem;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-market-individual {
    color: var(--primary);
}

.btn-market-school {
    color: #0284c7;
}

.btn-market:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* ---- PRICING ---- */
.pricing-section {
    padding: 100px 0;
    background: var(--light-gray);
}

.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.pricing-toggle-label {
    font-weight: 600;
    color: var(--dark);
}

.pricing-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    border: 2px solid transparent;
    transition: all 0.3s;
    position: relative;
}

.pricing-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.1);
}

.pricing-card.popular {
    border-color: var(--primary);
    transform: scale(1.03);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 0.25rem 1.25rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

.pricing-plan-name {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1;
    margin: 1rem 0 0.25rem;
}

.pricing-price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray);
}

.pricing-desc {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.pricing-features li {
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pricing-features li i {
    color: var(--success);
    font-size: 1rem;
    flex-shrink: 0;
}

.pricing-features li.disabled {
    color: var(--gray);
    text-decoration: line-through;
}

.pricing-features li.disabled i {
    color: #cbd5e1;
}

/* ---- FOOTER ---- */
.footer {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 30px;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
}

.footer-brand span {
    color: var(--secondary);
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 300px;
}

.footer-heading {
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

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

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

.footer-links a:hover {
    color: white;
}

.footer-divider {
    border-color: rgba(255,255,255,0.1);
    margin: 2.5rem 0 1.5rem;
}

.footer-bottom {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-stats {
        gap: 1.5rem;
    }
    .section-title {
        font-size: 1.9rem;
    }
    .market-card {
        padding: 2rem;
        margin-bottom: 1.5rem;
    }
    .pricing-card.popular {
        transform: none;
    }
}
/* ---- AUTH PAGES ---- */
.auth-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, #f0f4ff 0%, #faf5ff 100%);
    display: flex;
    align-items: center;
    padding: 100px 0 60px;
}

.auth-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
}

.auth-card-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

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

.auth-subtitle {
    color: var(--gray);
    font-size: 0.95rem;
}

.form-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--dark);
    margin-bottom: 0.4rem;
}

.form-control, .form-select {
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.auth-divider {
    text-align: center;
    position: relative;
    margin: 1.5rem 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e2e8f0;
}

.auth-divider span {
    background: white;
    padding: 0 1rem;
    color: var(--gray);
    font-size: 0.85rem;
    position: relative;
}

.auth-benefits {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.auth-benefit-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--gray);
    font-weight: 500;
}

/* ---- FORM SECTIONS ---- */
.form-section {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-section-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--dark);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-section-title i {
    color: var(--primary);
}

.invalid-feedback {
    font-size: 0.8rem;
    color: var(--danger);
    margin-top: 0.25rem;
}
/* ---- SCHOOL PORTAL LAYOUT ---- */
.school-layout {
    display: flex;
    min-height: 100vh;
}

.school-sidebar {
    width: 250px;
    background: var(--dark);
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1000;
    overflow-y: auto;
}

.sidebar-brand {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-brand a {
    font-size: 1.4rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
}

.sidebar-brand a span {
    color: var(--secondary);
}

.sidebar-school-name {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-nav {
    padding: 1rem 0;
    flex: 1;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.sidebar-link:hover {
    color: white;
    background: rgba(255,255,255,0.08);
}

.sidebar-link.active {
    color: white;
    background: rgba(255,255,255,0.1);
    border-left-color: var(--secondary);
}

.sidebar-footer {
    padding: 1rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.school-main {
    margin-left: 250px;
    flex: 1;
    background: #f8fafc;
    min-height: 100vh;
}

.school-topbar {
    background: white;
    padding: 1.25rem 2rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.school-content {
    padding: 2rem;
}

.school-stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.school-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.school-stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1;
}

.school-stat-label {
    font-size: 0.8rem;
    color: var(--gray);
    margin-top: 0.25rem;
}

.quick-action-card {
    display: block;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    transition: all 0.2s;
    color: var(--dark);
}

.quick-action-card:hover {
    border-color: var(--primary);
    background: #f5f3ff;
    transform: translateY(-2px);
    color: var(--dark);
}

/* Mobile sidebar */
@media (max-width: 768px) {
    .school-sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    .school-main {
        margin-left: 0;
    }
}
/* ---- FORM SECTIONS ---- */
.form-section {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e2e8f0;
}

.form-section-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
/* ---- SUbMenu ---- */
.sidebar-submenu {
    display: none !important;
    border-left: 2px solid rgba(255, 255, 255, 0.15);
    margin-left: 1rem;
    margin-bottom: 0.25rem;
}

.sidebar-submenu.open {
    display: block !important;
}

.sidebar-sublink {
    font-size: 0.85rem !important;
    padding-top: 0.35rem !important;
    padding-bottom: 0.35rem !important;
    opacity: 0.85;
}

.sidebar-sublink:hover {
    opacity: 1;
}

.sidebar-chevron {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.sidebar-toggle.open .sidebar-chevron {
    transform: rotate(90deg);
}
/* ---- LEGAL PAGES (terms.html, privacy.html) ---- */
.legal-page { padding-top: 72px; }

.legal-hero {
    padding: 72px 0 60px;
    position: relative;
    overflow: hidden;
}
.legal-hero::before {
    content: '';
    position: absolute;
    top: -40%; right: -15%;
    width: 500px; height: 500px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}
.legal-hero-purple { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.legal-hero-cyan    { background: linear-gradient(135deg, #06b6d4 0%, #0284c7 100%); }

.legal-hero-tag {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    color: white;
    font-size: 0.72rem; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase;
    padding: 5px 16px; border-radius: 100px;
    margin-bottom: 18px;
}
.legal-hero h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800; color: white;
    line-height: 1.15; letter-spacing: -0.5px;
    margin-bottom: 14px;
}
.legal-hero-meta {
    display: flex; gap: 24px; flex-wrap: wrap;
    font-size: 0.88rem; color: rgba(255,255,255,0.75);
}

.legal-layout {
    max-width: 960px; margin: 0 auto;
    padding: 56px 24px 96px;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 56px;
    align-items: start;
}

.legal-toc {
    position: sticky; top: 88px;
    background: var(--light-gray);
    border: 1px solid #e2e8f0;
    border-radius: 14px; padding: 22px;
}
.legal-toc-heading {
    font-size: 0.68rem; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase;
    color: #94a3b8; margin-bottom: 14px;
}
.legal-toc a {
    display: block; font-size: 0.82rem; color: var(--gray);
    text-decoration: none;
    padding: 5px 0 5px 12px;
    border-left: 2px solid #e2e8f0;
    line-height: 1.4; margin-bottom: 3px;
    transition: all 0.15s;
}
.legal-toc a:hover         { color: var(--primary); border-left-color: var(--primary); }
.legal-toc a.active        { color: var(--primary); border-left-color: var(--primary); font-weight: 600; }
.legal-toc-cyan a:hover    { color: #0284c7; border-left-color: #0284c7; }
.legal-toc-cyan a.active   { color: #0284c7; border-left-color: #0284c7; font-weight: 600; }

.legal-content section {
    margin-bottom: 48px; padding-bottom: 48px;
    border-bottom: 1px solid #f1f5f9;
}
.legal-content section:last-child { border-bottom: none; margin-bottom: 0; }

.legal-eyebrow {
    font-size: 0.68rem; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase;
    margin-bottom: 7px;
}
.legal-eyebrow-purple { color: var(--primary); }
.legal-eyebrow-cyan   { color: #0284c7; }

.legal-content h2 {
    font-size: 1.2rem; font-weight: 800;
    color: var(--dark); margin-bottom: 16px; letter-spacing: -0.3px;
}
.legal-content p {
    font-size: 0.93rem; line-height: 1.85;
    color: #475569; margin-bottom: 14px;
}
.legal-content p:last-child { margin-bottom: 0; }
.legal-content ul  { margin: 0 0 14px 0; padding-left: 22px; }
.legal-content li  { font-size: 0.93rem; line-height: 1.85; color: #475569; margin-bottom: 6px; }
.legal-content strong { color: var(--dark); font-weight: 600; }
.legal-content a   { color: var(--primary); text-decoration: none; }
.legal-content a:hover { text-decoration: underline; }

.legal-info-box {
    background: #ede9fe;
    border-left: 3px solid var(--primary);
    border-radius: 0 10px 10px 0;
    padding: 14px 20px; margin: 18px 0;
}
.legal-info-box p { margin: 0; color: #3730a3; font-size: 0.88rem; }

.legal-info-box-cyan {
    background: #ecfeff;
    border-left: 3px solid #06b6d4;
    border-radius: 0 10px 10px 0;
    padding: 14px 20px; margin: 18px 0;
}
.legal-info-box-cyan p { margin: 0; color: #0e7490; font-size: 0.88rem; }

.legal-warn-box {
    background: #fef2f2;
    border-left: 3px solid var(--danger);
    border-radius: 0 10px 10px 0;
    padding: 14px 20px; margin: 18px 0;
}
.legal-warn-box p { margin: 0; color: #b91c1c; font-size: 0.88rem; }

.legal-table {
    width: 100%; border-collapse: collapse;
    margin: 18px 0; font-size: 0.87rem;
    border: 1px solid #e2e8f0; border-radius: 10px;
    overflow: hidden;
}
.legal-table th {
    background: var(--light-gray); color: var(--gray);
    font-size: 0.72rem; font-weight: 700;
    letter-spacing: 1px; text-transform: uppercase;
    padding: 11px 16px; text-align: left;
    border-bottom: 1px solid #e2e8f0;
}
.legal-table td {
    padding: 11px 16px; color: #475569;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: top; line-height: 1.6;
}
.legal-table tr:last-child td { border-bottom: none; }
.legal-table tr:hover td { background: var(--light-gray); }

@media (max-width: 768px) {
    .legal-layout { grid-template-columns: 1fr; padding: 36px 16px 64px; }
    .legal-toc { display: none; }
    .legal-table { font-size: 0.78rem; }
    .legal-table td, .legal-table th { padding: 8px 10px; }
}
.faq-group { margin-bottom: 3rem; }
.faq-group-title {
    font-size: 1.1rem; font-weight: 800; color: #0f172a;
    margin-bottom: 1rem; padding-bottom: 0.75rem;
    border-bottom: 2px solid #f1f5f9;
}
.faq-item {
    border: 1px solid #e2e8f0; border-radius: 10px;
    margin-bottom: 0.75rem; overflow: hidden;
    transition: border-color 0.2s;
}
.faq-item:hover { border-color: #4f46e5; }
.faq-question {
    width: 100%; background: none; border: none;
    padding: 1rem 1.25rem; text-align: left;
    font-size: 0.95rem; font-weight: 600; color: #0f172a;
    cursor: pointer; display: flex; justify-content: space-between;
    align-items: center; gap: 1rem;
    transition: background 0.15s;
}
.faq-question:hover { background: #f8fafc; }
.faq-question.open { background: #f5f3ff; color: #4f46e5; }
.faq-chevron { font-size: 0.85rem; flex-shrink: 0; transition: transform 0.25s ease; color: #94a3b8; }
.faq-question.open .faq-chevron { transform: rotate(180deg); color: #4f46e5; }
.faq-answer {
    display: none; padding: 0 1.25rem 1rem;
    border-top: 1px solid #f1f5f9; background: #fafafa;
}
.faq-answer.open { display: block; }
.faq-answer p { font-size: 0.92rem; line-height: 1.8; color: #475569; margin: 0.75rem 0 0; }
.faq-answer a { color: #4f46e5; }

/* ---- TRUSTED BY ---- */
.trusted-section {
    padding: 32px 0;
    background: var(--white);
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.trusted-label {
    text-align: center;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 20px;
}

.trusted-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 28px;
}

.trusted-item {
    font-size: 0.88rem;
    font-weight: 600;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.trusted-item i {
    color: var(--primary);
    font-size: 0.9rem;
}

/* ---- TESTIMONIALS ---- */
.testimonials-section {
    padding: 100px 0;
    background: var(--white);
}

.testimonial-card {
    background: var(--light-gray);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s, box-shadow 0.2s;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.testimonial-card-featured {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
}

.testimonial-stars {
    color: #f59e0b;
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.testimonial-stars-white {
    color: #fcd34d;
}

.testimonial-text {
    font-size: 0.93rem;
    line-height: 1.75;
    color: #475569;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-card-featured .testimonial-text {
    color: rgba(255,255,255,0.9);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-size: 0.78rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.testimonial-avatar-white {
    background: rgba(255,255,255,0.25);
    color: white;
}

.testimonial-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--dark);
}

.testimonial-role {
    font-size: 0.78rem;
    color: var(--gray);
    margin-top: 2px;
}

/* ---- BOOK A DEMO BUTTON ---- */
.btn-market-demo {
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.5);
    color: white;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.btn-market-demo:hover {
    background: rgba(255,255,255,0.25);
    border-color: white;
    color: white;
    transform: translateY(-2px);
}

/* ---- MINI FAQ ---- */
.faq-mini-section {
    padding: 100px 0;
    background: var(--light-gray);
}

.faq-mini-list {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    background: white;
}

.faq-mini-item {
    border-bottom: 1px solid #f1f5f9;
}

.faq-mini-item:last-child {
    border-bottom: none;
}

.faq-mini-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.25rem 1.5rem;
    text-align: left;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: background 0.15s;
}

.faq-mini-question:hover {
    background: #f8fafc;
}

.faq-mini-item.open .faq-mini-question {
    color: var(--primary);
    background: #f5f3ff;
}

.faq-mini-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: transform 0.2s;
    color: var(--primary);
}

.faq-mini-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    font-size: 0.9rem;
    line-height: 1.75;
    color: #475569;
    padding: 0 1.5rem;
}

.faq-mini-item.open .faq-mini-answer {
    padding-bottom: 1.25rem;
}

@media (max-width: 768px) {
    .trusted-grid { gap: 10px 16px; }
    .trusted-item { font-size: 0.8rem; }
    .testimonial-card-featured { margin-bottom: 0; }
    .faq-mini-question { font-size: 0.88rem; padding: 1rem 1.25rem; }
    .faq-mini-answer { padding: 0 1.25rem; }
}