/* ===== TeacherCal Join Page - Conversion-Optimized Design ===== */
/* Color theme: primary #4361ee, accent #4cc9f0. No dark black. */

:root {
    --primary: #4361ee;
    --primary-dark: #3a56d4;
    --accent: #4cc9f0;
    --accent-dark: #2bb8e0;
    --text-dark: #2b2d42;
    --text-light: #4f5d75;
    --text-muted: #6c757d;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e9ecef;
    --success: #22c55e;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 15px 40px rgba(67, 97, 238, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

/* ===== Navbar ===== */
.navbar {
    background-color: var(--bg-white);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.navbar-brand img {
    height: 40px;
    transition: all 0.3s ease;
}

.navbar.scrolled .navbar-brand img {
    height: 35px;
}

.nav-link {
    position: relative;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.nav-link:before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary);
    transition: all 0.3s ease;
    opacity: 0;
}

.nav-link:hover:before {
    width: 100%;
    opacity: 1;
}

.nav-link:hover {
    color: var(--primary);
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    padding: 12px 28px;
    font-weight: 500;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(67, 97, 238, 0.4);
}

/* ===== Hero Section (preserved) ===== */
.hero-section {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 120px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    font-weight: 300;
    opacity: 0.9;
}

.btn-outline-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 11px 27px;
    font-weight: 500;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background-color: white;
    color: var(--primary);
    border-color: white;
    transform: translateY(-2px);
}

.hero-image {
    max-width: 90%;
}

.typing-container {
    display: inline-block;
    min-width: 300px;
    white-space: nowrap;
    overflow: visible;
    width: 300px;
}

/* ===== Trial Banner ===== */
.trial-banner {
    background: linear-gradient(135deg, #059669, #10b981);
    padding: 50px 0;
    position: relative;
}

.trial-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.trial-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.25);
    color: white;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.trial-banner-text h2 {
    color: white;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.trial-banner-text p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 1rem;
}

.btn-trial-cta {
    background: white;
    color: var(--primary);
    padding: 16px 36px;
    font-weight: 600;
    border-radius: 30px;
    border: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn-trial-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: var(--primary-dark);
}

/* ===== Stats Bar ===== */
.stats-bar {
    padding: 60px 0;
    background: var(--bg-white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-card {
    text-align: center;
    padding: 24px 16px;
    background: var(--bg-light);
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.stat-icon {
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 12px;
    display: block;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ===== Section Titles ===== */
.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.section-title:after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--primary);
    margin: 15px auto 0;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Infographics (What You Get) ===== */
.section-infographics {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-white) 50%, var(--bg-light) 100%);
}

.infographic-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.infographic-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.infographic-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(67, 97, 238, 0.15);
}

.infographic-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.1), rgba(76, 201, 240, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.75rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

.infographic-card:hover .infographic-icon {
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.2), rgba(76, 201, 240, 0.2));
}

.infographic-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.infographic-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
}

/* ===== How It Works ===== */
.section-how {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--bg-light) 0%, #e9ecef 100%);
    position: relative;
}

.how-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.how-step {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 40px 28px;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.how-step:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.step-number {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.35);
}

.step-icon {
    width: 90px;
    height: 90px;
    background: rgba(67, 97, 238, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 2.25rem;
    color: var(--primary);
}

.how-step h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.how-step p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
}

/* ===== Testimonials ===== */
.section-testimonials {
    padding: 80px 0;
    background: var(--bg-white);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    position: relative;
    transition: all 0.3s ease;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 24px;
    font-size: 72px;
    line-height: 1;
    color: rgba(67, 97, 238, 0.1);
    font-family: Georgia, serif;
}

.testimonial-text {
    font-style: italic;
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-left: 10px;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
}

/* ===== Pricing ===== */
.section-pricing {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-white) 50%, var(--bg-light) 100%);
    position: relative;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto 2rem;
}

.pricing-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    border: 2px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.35s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: rgba(67, 97, 238, 0.3);
    box-shadow: var(--shadow-hover);
}

.pricing-card-featured {
    border-color: var(--primary);
    background: linear-gradient(180deg, rgba(67, 97, 238, 0.04) 0%, var(--bg-white) 20%);
}

.pricing-card-featured:hover {
    transform: translateY(-10px) scale(1.02);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-trial-tag {
    display: block;
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 12px;
}

.pricing-card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.12), rgba(76, 201, 240, 0.12));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.pricing-card-featured .pricing-card-icon {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
}

.pricing-plan-name {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.pricing-price-wrap {
    display: flex;
    align-items: baseline;
    margin-bottom: 0.25rem;
}

.pricing-currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.pricing-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
}

.pricing-period {
    font-size: 1rem;
    color: var(--text-light);
    margin-left: 4px;
}

.pricing-tagline {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.pricing-tagline.pricing-save {
    color: var(--primary);
    font-weight: 600;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.75rem 0;
    flex-grow: 1;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.pricing-features li i {
    color: var(--success);
    font-size: 0.9rem;
}

.btn-pricing {
    width: 100%;
    padding: 14px 24px;
    font-weight: 600;
    border-radius: 12px;
    background: var(--bg-light);
    color: var(--primary);
    border: 2px solid var(--primary);
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.btn-pricing:hover {
    background: var(--primary);
    color: white;
}

.btn-pricing-featured {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-pricing-featured:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.pricing-login-txt {
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-light);
}

.pricing-login-txt a {
    color: var(--primary);
    font-weight: 600;
}

/* ===== FAQ ===== */
.section-faq {
    padding: 80px 0;
    background: var(--bg-white);
}

.faq-list {
    max-width: 720px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-light);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    text-align: left;
    background: none;
    border: none;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s;
}

.faq-question:hover {
    background: rgba(67, 97, 238, 0.05);
}

.faq-chevron {
    font-size: 0.8rem;
    color: var(--primary);
    transition: transform 0.3s;
}

.faq-question[aria-expanded="true"] .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 24px 20px;
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== Final CTA ===== */
.section-cta {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
}

.section-cta h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-cta p {
    font-size: 1.15rem;
    opacity: 0.95;
    margin-bottom: 2rem;
}

.btn-cta {
    background: white;
    color: var(--primary);
    padding: 18px 40px;
    font-weight: 600;
    border-radius: 30px;
    border: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: var(--primary-dark);
}

/* ===== Footer ===== */
.footer {
    background: linear-gradient(to right, #3a3d5c, #4a4e6e);
    color: rgba(255, 255, 255, 0.85);
    padding: 60px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
}

.footer h5 {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-brand p,
.footer-contact p {
    font-size: 0.95rem;
    margin: 0;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link:hover {
    color: white;
}

.footer hr {
    border-color: rgba(255, 255, 255, 0.2);
    margin: 2rem 0 1rem;
}

.footer-copy {
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
}

/* ===== Roadmap Modal ===== */
.roadmap-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.roadmap-modal-inner {
    background: white;
    border-radius: var(--radius);
    width: 900px;
    max-width: 100%;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.roadmap-modal-header {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 20px 30px;
    position: relative;
}

.roadmap-modal-header h2 {
    margin: 0;
    font-size: 1.6rem;
}

.roadmap-modal-header p {
    margin: 6px 0 0 0;
    opacity: 0.9;
}

#close-roadmap-btn {
    position: absolute;
    top: 16px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.25rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
}

.roadmap-tabs {
    display: flex;
    background: var(--bg-light);
    border-bottom: 2px solid var(--border-color);
}

.roadmap-tab {
    flex: 1;
    padding: 14px 20px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
}

.roadmap-tab.active {
    background: white;
    color: var(--primary);
    border-bottom: 3px solid var(--primary);
}

.roadmap-content {
    overflow-y: auto;
    max-height: calc(85vh - 180px);
    padding: 24px 30px;
}

.roadmap-tab-header {
    text-align: center;
    margin-bottom: 24px;
}

.roadmap-tab-header h3 {
    color: var(--primary);
    font-size: 1.3rem;
    margin: 0 0 6px 0;
}

.roadmap-tab-header p {
    color: var(--text-muted);
    margin: 0;
}

.roadmap-features {
    display: grid;
    gap: 12px;
}

.feature-card-roadmap {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.feature-icon-roadmap {
    width: 45px;
    height: 45px;
    background: rgba(67, 97, 238, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-content-roadmap h4 {
    margin: 0 0 4px 0;
    font-size: 1.05rem;
}

.feature-content-roadmap p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.released-feature-home {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #e8f5e9;
    border-radius: 8px;
    border-left: 4px solid var(--success);
}

.released-icon-home {
    font-size: 1.1rem;
}

.roadmap-login-msg {
    background: #fff8e1;
    border: 1px solid #ffecb3;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.roadmap-login-msg h4 {
    margin: 0 0 8px 0;
    color: #e65100;
}

.roadmap-login-msg a {
    color: var(--primary);
    font-weight: 600;
}

/* ===== Video Modal ===== */
#videoModal .modal-body {
    position: relative;
}

#videoModal .btn-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    background: white;
    border-radius: 50%;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .infographic-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .how-grid {
        grid-template-columns: 1fr;
    }
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0 60px;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-subtitle {
        font-size: 1.15rem;
    }
    .trial-banner-inner {
        flex-direction: column;
        text-align: center;
    }
    .trial-banner-text h2 {
        font-size: 1.4rem;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .infographic-grid {
        grid-template-columns: 1fr;
    }
    .section-title {
        font-size: 1.75rem;
    }
    .section-cta h2 {
        font-size: 1.6rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .typing-container {
        width: 220px;
        min-width: 220px;
    }
}
