

/* Key Topics Ribbon */
.key-topics-ribbon {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    background: var(--card-surface-subtle);
    border-top: 1px solid var(--box-border);
}

.topics-label {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
}

.topics-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.topic-tag {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: 6px;
    background: rgba(99, 102, 241, 0.10);
    color: var(--accent-indigo);
    font-family:'Outfit', sans-serif;
    font-size: 0.6875rem;
    font-weight: 700;
}

/* Pane Footer */
.pane-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    border-top: 1.5px solid var(--box-border);
    background: var(--input-bg);
}

.telemetry-chips-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.telemetry-item {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    font-size: 0.75rem;
}

.telemetry-val {
    font-family:'JetBrains Mono', monospace;
    font-weight: 700;
    color: var(--text-primary);
}

.telemetry-lbl {
    color: var(--text-muted);
    font-weight: 500;
}

.telemetry-divider {
    width: 1px;
    height: 14px;
    background: var(--box-border);
}

.undo-redo-group {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.icon-tool-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--box-border);
    background: var(--card-surface-subtle);
    color: var(--text-body);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-standard);
}

.icon-tool-btn .material-symbols-outlined {
    font-size: 16px;
}

.icon-tool-btn:hover:not(:disabled) {
    color: var(--accent-indigo);
    border-color: var(--accent-indigo);
    background: var(--glass-card-hover);
}

.icon-tool-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.export-actions-group {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

@media (max-width: 959px) {
    .export-actions-group {
        flex-wrap: wrap;
    }
}

.btn-export-icon {
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    border-radius: 8px;
    border: 1px solid var(--box-border);
    background: var(--card-surface-subtle);
    color: var(--text-body);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    transition: var(--transition-standard);
}

.btn-export-icon .material-symbols-outlined {
    font-size: 16px;
    line-height: 1;
}

.btn-export-icon:hover {
    color: var(--accent-indigo);
    border-color: var(--accent-indigo);
    background: var(--glass-card-hover);
}

.btn-export-icon.speaking {
    color: #10B981;
    border-color: #10B981;
    background: rgba(16, 185, 129, 0.12);
    animation: pulseSpeaking 1.5s infinite;
}

@keyframes pulseSpeaking {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.btn-export-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 12px;
    height: 32px;
    min-height: 32px;
    border-radius: 8px;
    background: #FFFFFF;
    border: 1px solid var(--box-border);
    color: var(--text-body);
    font-family:'Outfit', sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    box-sizing: border-box;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: var(--transition-standard);
}

.btn-export-pill .material-symbols-outlined {
    font-size: 16px;
    line-height: 1;
}

.btn-export-pill:hover {
    color: var(--accent-indigo);
    border-color: var(--accent-indigo);
    background: rgba(99, 102, 241, 0.08);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.15);
}

.btn-export-primary {
    background: var(--accent-gradient) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 2px 8px var(--accent-glow) !important;
}

.btn-export-primary:hover {
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 14px var(--accent-glow) !important;
}

@media (max-width: 640px) {
    .pane-header {
        padding: 0.6rem 0.8rem;
    }
    .pane-title-group {
        gap: 0.35rem;
    }
    .pane-heading {
        font-size: 0.85rem;
    }
    .pane-actions-group {
        gap: 0.25rem;
    }
    .pane-action-btn {
        padding: 0.25rem 0.45rem;
        font-size: 0.7rem;
    }
    .pane-footer {
        padding: 0.6rem 0.8rem;
        gap: 0.5rem;
    }
    .telemetry-chips-row {
        gap: 0.4rem;
    }
    .telemetry-item {
        font-size: 0.7rem;
    }
    .export-actions-group {
        gap: 0.3rem;
    }
    .btn-export-pill {
        padding: 0.3rem 0.65rem;
        font-size: 0.72rem;
    }
}

/* ==========================================================================
   BLOCK 4: EDUCATIONAL CONTENT & SEO SECTION
   ========================================================================== */
.educational-section {
    margin-bottom: 4rem;
}

.section-header {
    text-align: center;
    margin-bottom: 2.25rem;
}

.section-tag {
    display: inline-block;
    font-family:'Outfit', sans-serif;
    font-size: 0.8125rem;
    font-weight: 800;
    color: var(--accent-indigo);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.4rem;
}

.section-title {
    font-family:'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.section-desc {
    font-size: 0.9375rem;
    color: var(--text-muted);
    max-width: 36rem;
    margin: 0 auto;
}

/* 3-Step Guide Grid */
.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3.5rem;
}

@media (min-width: 768px) {
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.step-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition-standard);
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(99, 102, 241, 0.35);
}

.step-number-badge {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--accent-gradient);
    color: #ffffff;
    font-family:'Outfit', sans-serif;
    font-size: 1.125rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px var(--accent-glow);
}

.step-title {
    font-family:'Outfit', sans-serif;
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--text-primary);
}

.step-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* 4-Feature Grid */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3.5rem;
}

@media (min-width: 640px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition-standard);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(99, 102, 241, 0.35);
}

.feature-icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(99, 102, 241, 0.12);
    color: var(--accent-indigo);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon-badge .material-symbols-outlined {
    font-size: 24px;
}

.feature-title {
    font-family:'Outfit', sans-serif;
    font-size: 1.0625rem;
    font-weight: 800;
    color: var(--text-primary);
}

.feature-desc {
    font-size: 0.84375rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* FAQ Accordion */
.faq-accordion {
    max-width: 50rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.faq-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-standard);
}

.faq-question-btn {
    width: 100%;
    padding: 1.15rem 1.5rem;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-family:'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    cursor: pointer;
    transition: var(--transition-standard);
}

.faq-question-btn:hover {
    color: var(--accent-indigo);
}

.faq-arrow {
    font-size: 20px;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.faq-item.open .faq-arrow {
    transform: rotate(180deg);
    color: var(--accent-indigo);
}

.faq-answer-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0, 1, 0, 1);
}

.faq-answer-text {
    padding: 0 1.5rem 1.25rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ==========================================================================
   BLOCK 5: GLOBAL FOOTER
   ========================================================================== */
.global-footer {
    background: rgba(255, 255, 255, 0.80);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--glass-border);
    padding: 3.5rem 0 2rem;
    margin-top: auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--box-border);
}

@media (min-width: 640px) {
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-top {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    font-family:'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.85rem;
}

.footer-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 22rem;
}

.footer-col-title {
    font-family:'Outfit', sans-serif;
    font-size: 0.9375rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-links-list a {
    text-decoration: none;
    font-size: 0.84375rem;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.footer-links-list a:hover {
    color: var(--accent-indigo);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.75rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

@media (min-width: 640px) {
    .footer-bottom {
        flex-direction: row;
    }
}

.footer-badges {
    display: flex;
    gap: 0.75rem;
}

.badge-item {
    padding: 0.2rem 0.65rem;
    border-radius: 9999px;
    background: var(--card-surface-subtle);
    border: 1px solid var(--box-border);
    font-family:'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
}

/* ==========================================================================
   TOAST NOTIFICATION SYSTEM
   ========================================================================== */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.toast {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 1.35rem;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(12px);
    color: #ffffff;
    font-family:'Outfit', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    pointer-events: auto;
    animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast-success .toast-icon { color: #10B981; }
.toast-error .toast-icon { color: #F43F5E; }
.toast-info .toast-icon { color: #6366F1; }

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
