/* ── Interactive Try Section ── */
.try-section {
    padding: 56px 20px;
    background: var(--card-color);
    border-bottom: 1px solid var(--border-color);
}

.section-title {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0 0 8px;
    color: var(--text-color);
}

.section-sub {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.94rem;
    margin: 0 0 36px;
}

.try-card {
    max-width: 640px;
    margin: 0 auto;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px 24px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.try-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.try-paper {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.try-paper:empty { display: none; }

.try-question {
    font-size: 1.08rem;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.65;
    margin-bottom: 20px;
}

.try-question p { margin: 0 0 0.5em; }
.try-question p:last-child { margin-bottom: 0; }

.try-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.try-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--card-color);
    color: var(--text-color);
    cursor: pointer;
    font: inherit;
    font-size: 0.95rem;
    line-height: 1.55;
    text-align: left;
    transition: border-color 0.18s, background 0.18s, transform 0.12s, box-shadow 0.18s;
    -webkit-tap-highlight-color: transparent;
}

.try-option:hover:not(.answered) {
    border-color: var(--primary-color);
    background: var(--card-color-alt);
    transform: translateY(-1px);
}

.try-option:active:not(.answered) {
    transform: scale(0.98);
}

.try-opt-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--card-color-alt);
    color: var(--text-muted);
    font-weight: 800;
    font-size: 0.86rem;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s;
}

.try-option:hover:not(.answered) .try-opt-letter {
    background: var(--primary-color);
    color: #fff;
}

[data-theme="dark"] .try-option:hover:not(.answered) .try-opt-letter {
    color: #000;
}

.try-opt-text {
    flex: 1;
    min-width: 0;
    padding-top: 2px;
}

.try-opt-text p { margin: 0; }

.try-option.correct {
    border-color: var(--success-color);
    background: rgba(34, 197, 94, 0.12);
}

.try-option.correct .try-opt-letter {
    background: var(--success-color);
    color: #fff;
}

.try-option.wrong {
    border-color: var(--danger-color);
    background: rgba(239, 68, 68, 0.10);
}

.try-option.wrong .try-opt-letter {
    background: var(--danger-color);
    color: #fff;
}

.try-option.answered {
    cursor: default;
    opacity: 0.55;
}

.try-option.correct.answered,
.try-option.wrong.answered {
    opacity: 1;
}

.try-feedback {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
}

.try-feedback.is-correct {
    background: rgba(34, 197, 94, 0.12);
    color: var(--success-color);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.try-feedback.is-wrong {
    background: rgba(239, 68, 68, 0.10);
    color: var(--danger-color);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.try-feedback-icon {
    font-size: 1.4em;
    flex-shrink: 0;
}

.try-explanation {
    margin-top: 12px;
    padding: 14px 16px;
    border-radius: 10px;
    background: var(--card-color-alt);
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-color);
    line-height: 1.65;
}

.try-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
    align-items: center;
}

.try-next-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 30px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: #fff !important;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.28);
    transition: transform 0.18s, box-shadow 0.18s;
}

[data-theme="dark"] .try-next-btn {
    color: #000 !important;
}

.try-next-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.40);
}

.try-signup-btn {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
}

.try-signup-btn:hover {
    text-decoration: underline;
}

.try-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 48px 20px;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.try-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: try-spin 0.7s linear infinite;
}

@keyframes try-spin { to { transform: rotate(360deg); } }

.try-counter {
    text-align: center;
    margin-top: 14px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.try-counter:empty { display: none; }

/* ── Home-page Contact Card ── */
.home-contact-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 24px 0;
    padding: 20px 24px;
    background: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: var(--shadow);
}

.home-contact-copy h3 {
    margin: 0 0 4px;
    font-size: 1.1rem;
    font-weight: 700;
}

.home-contact-copy p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.home-contact-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.home-contact-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-color);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.home-contact-action:hover {
    background: var(--card-color-alt);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.home-contact-action.whatsapp {
    color: #fff;
    background: #25d366;
    border-color: #25d366;
}

.home-contact-action.whatsapp:hover {
    background: #1da851;
    border-color: #1da851;
}

@media (max-width: 640px) {
    .home-contact-card {
        align-items: stretch;
        flex-direction: column;
        gap: 16px;
    }
    .home-contact-actions {
        justify-content: stretch;
    }
    .home-contact-actions .home-contact-action {
        flex: 1;
        text-align: center;
    }
}
